1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
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.
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).
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.
26 ************************************************************************/
30 #define C2S(cChar) String::CreateFromAscii( cChar )
31 #define C2U(cChar) rtl::OUString::createFromAscii( cChar )
33 #define MID_MIRROR_VERT 0
34 #define MID_MIRROR_HORZ_EVEN_PAGES 1
35 #define MID_MIRROR_HORZ_ODD_PAGES 2
37 #define MID_PAGEDESC_PAGEDESCNAME 0
38 #define MID_PAGEDESC_PAGENUMOFFSET 1
40 #define MID_SURROUND_SURROUNDTYPE 0
41 #define MID_SURROUND_ANCHORONLY 1
42 #define MID_SURROUND_CONTOUR 2
43 #define MID_SURROUND_CONTOUROUTSIDE 3
45 #define MID_VERTORIENT_ORIENT 0
46 #define MID_VERTORIENT_RELATION 1
47 #define MID_VERTORIENT_POSITION 2
49 #define MID_HORIORIENT_ORIENT 0
50 #define MID_HORIORIENT_RELATION 1
51 #define MID_HORIORIENT_POSITION 2
52 #define MID_HORIORIENT_PAGETOGGLE 3
54 #define MID_ANCHOR_ANCHORTYPE 0
55 #define MID_ANCHOR_PAGENUM 1
56 #define MID_ANCHOR_ANCHORFRAME 2
58 #define MID_URL_HYPERLINKFORMAT 0
59 #define MID_URL_HYPERLINKNAME 1
60 #define MID_URL_CLIENTMAP 2
61 #define MID_URL_SERVERMAP 3
63 #define MID_URL_TARGET 5
64 #define MID_URL_VISITED_FMT 6
65 #define MID_URL_UNVISITED_FMT 7
66 #define MID_URL_HYPERLINKEVENTS 8
68 #define MID_CHAIN_PREVNAME 0
69 #define MID_CHAIN_NEXTNAME 1
71 #define MID_LINENUMBER_COUNT 0
72 #define MID_LINENUMBER_STARTVALUE 1
74 #define MID_DROPCAP_FORMAT 0
75 #define MID_DROPCAP_WHOLE_WORD 1
76 #define MID_DROPCAP_CHAR_STYLE_NAME 2
77 #define MID_DROPCAP_LINES 3
78 #define MID_DROPCAP_COUNT 4
79 #define MID_DROPCAP_DISTANCE 5
81 #define MID_FRMSIZE_SIZE 0
82 #define MID_FRMSIZE_REL_HEIGHT 1
83 #define MID_FRMSIZE_REL_WIDTH 2
85 #define MID_FRMSIZE_WIDTH 4
86 #define MID_FRMSIZE_HEIGHT 5
87 #define MID_FRMSIZE_SIZE_TYPE 6
88 #define MID_FRMSIZE_IS_AUTO_HEIGHT 7
90 #define MID_FRMSIZE_MIN_HEIGHT 8
91 #define MID_FRMSIZE_FIX_HEIGHT 9
92 #define MID_FRMSIZE_COL_WIDTH 10
93 #define MID_FRMSIZE_REL_COL_WIDTH 11
95 #define MID_FRMSIZE_IS_SYNC_WIDTH_TO_HEIGHT 12
96 #define MID_FRMSIZE_IS_SYNC_HEIGHT_TO_WIDTH 13
97 #define MID_FRMSIZE_WIDTH_TYPE 14
100 #define MID_COLUMN_SEPARATOR_LINE 1
103 #define MID_COLLECT 0
104 #define MID_RESTART_NUM 1
105 #define MID_NUM_START_AT 2
106 #define MID_OWN_NUM 3
107 #define MID_NUM_TYPE 4
111 //page style footnote
112 #define MID_FTN_HEIGHT 0
113 #define MID_LINE_WEIGHT 1
114 #define MID_LINE_COLOR 2
115 #define MID_LINE_RELWIDTH 3
116 #define MID_LINE_ADJUST 4
117 #define MID_LINE_TEXT_DIST 5
118 #define MID_LINE_FOOTNOTE_DIST 6
121 #define MID_RUBY_TEXT 0
122 #define MID_RUBY_ADJUST 1
123 #define MID_RUBY_CHARSTYLE 2
124 #define MID_RUBY_ABOVE 3
127 #define MID_GRID_COLOR 0
128 #define MID_GRID_LINES 1
129 #define MID_GRID_BASEHEIGHT 2
130 #define MID_GRID_RUBYHEIGHT 3
131 #define MID_GRID_TYPE 4
132 #define MID_GRID_RUBY_BELOW 5
133 #define MID_GRID_PRINT 6
134 #define MID_GRID_DISPLAY 7
135 #define MID_GRID_BASEWIDTH 8
136 #define MID_GRID_SNAPTOCHARS 9
137 #define MID_GRID_STANDARD_MODE 10
140 #define MID_ENV_ADDR_TEXT 1
141 #define MID_ENV_SEND 2
142 #define MID_SEND_TEXT 3
143 #define MID_ENV_ADDR_FROM_LEFT 4
144 #define MID_ENV_ADDR_FROM_TOP 5
145 #define MID_ENV_SEND_FROM_LEFT 6
146 #define MID_ENV_SEND_FROM_TOP 7
147 #define MID_ENV_WIDTH 8
148 #define MID_ENV_HEIGHT 9
149 #define MID_ENV_ALIGN 10
150 #define MID_ENV_PRINT_FROM_ABOVE 11
151 #define MID_ENV_SHIFT_RIGHT 12
152 #define MID_ENV_SHIFT_DOWN 13
154 // OD 2004-05-04 #i28701# - SwFmtWrapInfluenceOnObjPos
155 #define MID_WRAP_INFLUENCE 0