xref: /AOO41X/main/svx/inc/svx/flagsdef.hxx (revision 1ecadb572e7010ff3b3382ad9bf179dbc6efadbb)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 #ifndef _SVX_FLAGSDEF_HXX
28 #define _SVX_FLAGSDEF_HXX
29 
30 // defines ---------------------------------------------------------------
31 
32 //CHINA001 copy from border.hxx
33 // Border-Modes for paragraphs, textframes and tables
34 #define SW_BORDER_MODE_PARA 	0x01
35 #define SW_BORDER_MODE_TABLE    0x02
36 #define SW_BORDER_MODE_FRAME    0x04
37 
38 //CHINA001 flags for SvxBackgroundTabPage
39 #define SVX_SHOW_SELECTOR		0x01
40 #define SVX_SHOW_PARACTL		0x02
41 #define SVX_ENABLE_TRANSPARENCY		0x04
42 #define SVX_SHOW_TBLCTL			0x08
43 
44 //CHINA001 flags for SvxBorderTabPage
45 #define SVX_HIDESHADOWCTL	0x01
46 
47 //CHINA001 copy from chardlg.hxx
48 #define DISABLE_CASEMAP				((sal_uInt16)0x0001)
49 #define DISABLE_WORDLINE			((sal_uInt16)0x0002)
50 #define DISABLE_BLINK				((sal_uInt16)0x0004)
51 #define DISABLE_UNDERLINE_COLOR		((sal_uInt16)0x0008)
52 
53 #define DISABLE_LANGUAGE			((sal_uInt16)0x0010)
54 #define DISABLE_HIDE_LANGUAGE		((sal_uInt16)0x0020)
55 
56 //CHINA001 flags for SvxCharBasePage's child class
57 #define SVX_PREVIEW_CHARACTER 	0x01
58 //CHINA001 flags for SvxCharNamePage
59 #define SVX_RELATIVE_MODE		0x02
60 //CHINA001 flags for SvxCharEffectsPage
61 #define SVX_ENABLE_FLASH	0x04
62 
63 
64 //CHINA001 copy from numfmt.hxx
65 #define SVX_NUMVAL_STANDARD		-1234.12345678901234
66 #define SVX_NUMVAL_CURRENCY		-1234
67 #define SVX_NUMVAL_PERCENT		-0.1295
68 #define SVX_NUMVAL_TIME 		36525.5678935185
69 #define SVX_NUMVAL_DATE 		36525.5678935185
70 #define SVX_NUMVAL_BOOLEAN 		1
71 
72 //CHINA001 copy from page.hxx
73 // enum ------------------------------------------------------------------
74 
75 enum SvxModeType
76 {
77 	SVX_PAGE_MODE_STANDARD,
78 	SVX_PAGE_MODE_CENTER,
79 	SVX_PAGE_MODE_PRESENTATION
80 };
81 // define ----------------------------------------------------------------
82 
83 // 1/2 cm in TWIPS
84 // wird auch fuer Minimalgrosse der LayFrms aller Arten benutzt
85 #define MM50   283  //from original svx/inc/paragrph.hxx
86 
87 //--------------from original svx/inc/tabstpge.hxx
88 #define TABTYPE_LEFT		0x0001
89 #define TABTYPE_RIGHT		0x0002
90 #define TABTYPE_CENTER		0x0004
91 #define TABTYPE_DEZIMAL		0x0008
92 #define TABTYPE_ALL			0x000F
93 
94 #define TABFILL_NONE		0x0010
95 #define TABFILL_POINT		0x0020
96 #define TABFILL_DASHLINE 	0x0040
97 #define TABFILL_SOLIDLINE	0x0080
98 #define TABFILL_SPECIAL		0x0100
99 #define TABFILL_ALL			0x01F0
100 
101 //-----
102 
103 #endif
104