xref: /AOO41X/main/svx/inc/svx/flagsdef.hxx (revision 3334a7e6acdae9820fa1a6f556bb10129a8de6b2)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef _SVX_FLAGSDEF_HXX
24 #define _SVX_FLAGSDEF_HXX
25 
26 // defines ---------------------------------------------------------------
27 
28 //CHINA001 copy from border.hxx
29 // Border-Modes for paragraphs, textframes and tables
30 #define SW_BORDER_MODE_PARA     0x01
31 #define SW_BORDER_MODE_TABLE    0x02
32 #define SW_BORDER_MODE_FRAME    0x04
33 
34 //CHINA001 flags for SvxBackgroundTabPage
35 #define SVX_SHOW_SELECTOR       0x01
36 #define SVX_SHOW_PARACTL        0x02
37 #define SVX_ENABLE_TRANSPARENCY     0x04
38 #define SVX_SHOW_TBLCTL         0x08
39 
40 //CHINA001 flags for SvxBorderTabPage
41 #define SVX_HIDESHADOWCTL   0x01
42 
43 //CHINA001 copy from chardlg.hxx
44 #define DISABLE_CASEMAP             ((sal_uInt16)0x0001)
45 #define DISABLE_WORDLINE            ((sal_uInt16)0x0002)
46 #define DISABLE_BLINK               ((sal_uInt16)0x0004)
47 #define DISABLE_UNDERLINE_COLOR     ((sal_uInt16)0x0008)
48 
49 #define DISABLE_LANGUAGE            ((sal_uInt16)0x0010)
50 #define DISABLE_HIDE_LANGUAGE       ((sal_uInt16)0x0020)
51 
52 //CHINA001 flags for SvxCharBasePage's child class
53 #define SVX_PREVIEW_CHARACTER   0x01
54 //CHINA001 flags for SvxCharNamePage
55 #define SVX_RELATIVE_MODE       0x02
56 //CHINA001 flags for SvxCharEffectsPage
57 #define SVX_ENABLE_FLASH    0x04
58 
59 
60 //CHINA001 copy from numfmt.hxx
61 #define SVX_NUMVAL_STANDARD     -1234.12345678901234
62 #define SVX_NUMVAL_CURRENCY     -1234
63 #define SVX_NUMVAL_PERCENT      -0.1295
64 #define SVX_NUMVAL_TIME         36525.5678935185
65 #define SVX_NUMVAL_DATE         36525.5678935185
66 #define SVX_NUMVAL_BOOLEAN      1
67 
68 //CHINA001 copy from page.hxx
69 // enum ------------------------------------------------------------------
70 
71 enum SvxModeType
72 {
73     SVX_PAGE_MODE_STANDARD,
74     SVX_PAGE_MODE_CENTER,
75     SVX_PAGE_MODE_PRESENTATION
76 };
77 // define ----------------------------------------------------------------
78 
79 // 1/2 cm in TWIPS
80 // wird auch fuer Minimalgrosse der LayFrms aller Arten benutzt
81 #define MM50   283  //from original svx/inc/paragrph.hxx
82 
83 //--------------from original svx/inc/tabstpge.hxx
84 #define TABTYPE_LEFT        0x0001
85 #define TABTYPE_RIGHT       0x0002
86 #define TABTYPE_CENTER      0x0004
87 #define TABTYPE_DEZIMAL     0x0008
88 #define TABTYPE_ALL         0x000F
89 
90 #define TABFILL_NONE        0x0010
91 #define TABFILL_POINT       0x0020
92 #define TABFILL_DASHLINE    0x0040
93 #define TABFILL_SOLIDLINE   0x0080
94 #define TABFILL_SPECIAL     0x0100
95 #define TABFILL_ALL         0x01F0
96 
97 //-----
98 
99 #endif
100