SciDAVis
1.D4
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
scidavis
src
TeXTableSettings.h
Go to the documentation of this file.
1
/***************************************************************************
2
File : TeXTableSettings.h
3
Project : SciDAVis
4
--------------------------------------------------------------------
5
Copyright : (C) 2010 by Iurie Nistor
6
Email (use @ for *) : nistor*iurie.org
7
Description : TeX table settings
8
9
***************************************************************************/
10
11
/***************************************************************************
12
* *
13
* This program is free software; you can redistribute it and/or modify *
14
* it under the terms of the GNU General Public License as published by *
15
* the Free Software Foundation; either version 3 of the License, or *
16
* (at your option) any later version. *
17
* *
18
* This program is distributed in the hope that it will be useful, *
19
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
20
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
21
* GNU General Public License for more details. *
22
* *
23
* You should have received a copy of the GNU General Public License *
24
* along with this program; if not, write to the Free Software *
25
* Foundation, Inc., 51 Franklin Street, Fifth Floor, *
26
* Boston, MA 02110-1301 USA *
27
* *
28
***************************************************************************/
29
30
#ifndef TEX_TABLE_SETTINGS_H
31
#define TEX_TABLE_SETTINGS_H
32
34
enum
ColumAlignment
{
ALIGN_LEFT
= 0,
ALIGN_CENTER
= 1,
ALIGN_RIGHT
= 2 };
35
37
41
class
TeXTableSettings
42
{
43
public
:
44
45
TeXTableSettings
(
void
);
47
void
set_with_caption
(
bool
b =
false
){
table_caption
= b; }
49
void
set_with_labels
(
bool
b =
false
){
table_labels
= b; }
51
54
void
set_columnsAlignment
(
ColumAlignment
alignment =
ALIGN_CENTER
) {
columns_alignment
= alignment; }
56
bool
with_caption
(
void
){
return
table_caption
; }
58
bool
with_labels
(
void
){
return
table_labels
; }
60
63
ColumAlignment
columnsAlignment
(
void
){
return
columns_alignment
; }
64
65
private
:
67
bool
table_caption
;
69
bool
table_labels
;
71
74
ColumAlignment
columns_alignment
;
75
};
76
77
#endif // ifndef TEX_TABLE_SETTINGS_H
Generated by
1.8.1