1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: flagsdef.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org 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 Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _SVX_FLAGSDEF_HXX
31 #define _SVX_FLAGSDEF_HXX
33 // defines ---------------------------------------------------------------
35 //CHINA001 copy from border.hxx
36 // Border-Modes for paragraphs, textframes and tables
37 #define SW_BORDER_MODE_PARA 0x01
38 #define SW_BORDER_MODE_TABLE 0x02
39 #define SW_BORDER_MODE_FRAME 0x04
41 //CHINA001 flags for SvxBackgroundTabPage
42 #define SVX_SHOW_SELECTOR 0x01
43 #define SVX_SHOW_PARACTL 0x02
44 #define SVX_ENABLE_TRANSPARENCY 0x04
45 #define SVX_SHOW_TBLCTL 0x08
47 //CHINA001 flags for SvxBorderTabPage
48 #define SVX_HIDESHADOWCTL 0x01
50 //CHINA001 copy from chardlg.hxx
51 #define DISABLE_CASEMAP ((USHORT)0x0001)
52 #define DISABLE_WORDLINE ((USHORT)0x0002)
53 #define DISABLE_BLINK ((USHORT)0x0004)
54 #define DISABLE_UNDERLINE_COLOR ((USHORT)0x0008)
56 #define DISABLE_LANGUAGE ((USHORT)0x0010)
57 #define DISABLE_HIDE_LANGUAGE ((USHORT)0x0020)
59 //CHINA001 flags for SvxCharBasePage's child class
60 #define SVX_PREVIEW_CHARACTER 0x01
61 //CHINA001 flags for SvxCharNamePage
62 #define SVX_RELATIVE_MODE 0x02
63 //CHINA001 flags for SvxCharEffectsPage
64 #define SVX_ENABLE_FLASH 0x04
67 //CHINA001 copy from numfmt.hxx
68 #define SVX_NUMVAL_STANDARD -1234.12345678901234
69 #define SVX_NUMVAL_CURRENCY -1234
70 #define SVX_NUMVAL_PERCENT -0.1295
71 #define SVX_NUMVAL_TIME 36525.5678935185
72 #define SVX_NUMVAL_DATE 36525.5678935185
73 #define SVX_NUMVAL_BOOLEAN 1
75 //CHINA001 copy from page.hxx
76 // enum ------------------------------------------------------------------
80 SVX_PAGE_MODE_STANDARD
,
82 SVX_PAGE_MODE_PRESENTATION
84 // define ----------------------------------------------------------------
87 // wird auch fuer Minimalgrosse der LayFrms aller Arten benutzt
88 #define MM50 283 //from original svx/inc/paragrph.hxx
90 //--------------from original svx/inc/tabstpge.hxx
91 #define TABTYPE_LEFT 0x0001
92 #define TABTYPE_RIGHT 0x0002
93 #define TABTYPE_CENTER 0x0004
94 #define TABTYPE_DEZIMAL 0x0008
95 #define TABTYPE_ALL 0x000F
97 #define TABFILL_NONE 0x0010
98 #define TABFILL_POINT 0x0020
99 #define TABFILL_DASHLINE 0x0040
100 #define TABFILL_SOLIDLINE 0x0080
101 #define TABFILL_SPECIAL 0x0100
102 #define TABFILL_ALL 0x01F0