update dev300-m57
[ooovba.git] / sw / inc / unomid.h
blob60a78985c45187ab134ffa3c24eb4d931b8f30db
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: unomid.h,v $
10 * $Revision: 1.19 $
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 SW_UNOMID_HXX
31 #define SW_UNOMID_HXX
33 #define C2S(cChar) String::CreateFromAscii( cChar )
34 #define C2U(cChar) rtl::OUString::createFromAscii( cChar )
36 #define MID_MIRROR_VERT 0
37 #define MID_MIRROR_HORZ_EVEN_PAGES 1
38 #define MID_MIRROR_HORZ_ODD_PAGES 2
40 #define MID_PAGEDESC_PAGEDESCNAME 0
41 #define MID_PAGEDESC_PAGENUMOFFSET 1
43 #define MID_SURROUND_SURROUNDTYPE 0
44 #define MID_SURROUND_ANCHORONLY 1
45 #define MID_SURROUND_CONTOUR 2
46 #define MID_SURROUND_CONTOUROUTSIDE 3
48 #define MID_VERTORIENT_ORIENT 0
49 #define MID_VERTORIENT_RELATION 1
50 #define MID_VERTORIENT_POSITION 2
52 #define MID_HORIORIENT_ORIENT 0
53 #define MID_HORIORIENT_RELATION 1
54 #define MID_HORIORIENT_POSITION 2
55 #define MID_HORIORIENT_PAGETOGGLE 3
57 #define MID_ANCHOR_ANCHORTYPE 0
58 #define MID_ANCHOR_PAGENUM 1
59 #define MID_ANCHOR_ANCHORFRAME 2
61 #define MID_URL_HYPERLINKFORMAT 0
62 #define MID_URL_HYPERLINKNAME 1
63 #define MID_URL_CLIENTMAP 2
64 #define MID_URL_SERVERMAP 3
65 #define MID_URL_URL 4
66 #define MID_URL_TARGET 5
67 #define MID_URL_VISITED_FMT 6
68 #define MID_URL_UNVISITED_FMT 7
69 #define MID_URL_HYPERLINKEVENTS 8
71 #define MID_CHAIN_PREVNAME 0
72 #define MID_CHAIN_NEXTNAME 1
74 #define MID_LINENUMBER_COUNT 0
75 #define MID_LINENUMBER_STARTVALUE 1
77 #define MID_DROPCAP_FORMAT 0
78 #define MID_DROPCAP_WHOLE_WORD 1
79 #define MID_DROPCAP_CHAR_STYLE_NAME 2
80 #define MID_DROPCAP_LINES 3
81 #define MID_DROPCAP_COUNT 4
82 #define MID_DROPCAP_DISTANCE 5
84 #define MID_FRMSIZE_SIZE 0
85 #define MID_FRMSIZE_REL_HEIGHT 1
86 #define MID_FRMSIZE_REL_WIDTH 2
88 #define MID_FRMSIZE_WIDTH 4
89 #define MID_FRMSIZE_HEIGHT 5
90 #define MID_FRMSIZE_SIZE_TYPE 6
91 #define MID_FRMSIZE_IS_AUTO_HEIGHT 7
92 /* XML only */
93 #define MID_FRMSIZE_MIN_HEIGHT 8
94 #define MID_FRMSIZE_FIX_HEIGHT 9
95 #define MID_FRMSIZE_COL_WIDTH 10
96 #define MID_FRMSIZE_REL_COL_WIDTH 11
97 /* UNO */
98 #define MID_FRMSIZE_IS_SYNC_WIDTH_TO_HEIGHT 12
99 #define MID_FRMSIZE_IS_SYNC_HEIGHT_TO_WIDTH 13
100 #define MID_FRMSIZE_WIDTH_TYPE 14
102 #define MID_COLUMNS 0
103 #define MID_COLUMN_SEPARATOR_LINE 1
105 //SwFmtFtnAtTxtEnd
106 #define MID_COLLECT 0
107 #define MID_RESTART_NUM 1
108 #define MID_NUM_START_AT 2
109 #define MID_OWN_NUM 3
110 #define MID_NUM_TYPE 4
111 #define MID_PREFIX 5
112 #define MID_SUFFIX 6
114 //page style footnote
115 #define MID_FTN_HEIGHT 0
116 #define MID_LINE_WEIGHT 1
117 #define MID_LINE_COLOR 2
118 #define MID_LINE_RELWIDTH 3
119 #define MID_LINE_ADJUST 4
120 #define MID_LINE_TEXT_DIST 5
121 #define MID_LINE_FOOTNOTE_DIST 6
123 //SwFmtRuby
124 #define MID_RUBY_TEXT 0
125 #define MID_RUBY_ADJUST 1
126 #define MID_RUBY_CHARSTYLE 2
127 #define MID_RUBY_ABOVE 3
129 //SwTextGridItem
130 #define MID_GRID_COLOR 0
131 #define MID_GRID_LINES 1
132 #define MID_GRID_BASEHEIGHT 2
133 #define MID_GRID_RUBYHEIGHT 3
134 #define MID_GRID_TYPE 4
135 #define MID_GRID_RUBY_BELOW 5
136 #define MID_GRID_PRINT 6
137 #define MID_GRID_DISPLAY 7
138 #define MID_GRID_BASEWIDTH 8
139 #define MID_GRID_SNAPTOCHARS 9
140 #define MID_GRID_STANDARD_MODE 10
142 //SwEnvItem
143 #define MID_ENV_ADDR_TEXT 1
144 #define MID_ENV_SEND 2
145 #define MID_SEND_TEXT 3
146 #define MID_ENV_ADDR_FROM_LEFT 4
147 #define MID_ENV_ADDR_FROM_TOP 5
148 #define MID_ENV_SEND_FROM_LEFT 6
149 #define MID_ENV_SEND_FROM_TOP 7
150 #define MID_ENV_WIDTH 8
151 #define MID_ENV_HEIGHT 9
152 #define MID_ENV_ALIGN 10
153 #define MID_ENV_PRINT_FROM_ABOVE 11
154 #define MID_ENV_SHIFT_RIGHT 12
155 #define MID_ENV_SHIFT_DOWN 13
157 // OD 2004-05-04 #i28701# - SwFmtWrapInfluenceOnObjPos
158 #define MID_WRAP_INFLUENCE 0
160 #endif