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 SW_UNOMID_HXX 24 #define SW_UNOMID_HXX 25 26 #define C2S(cChar) String::CreateFromAscii( cChar ) 27 #define C2U(cChar) rtl::OUString::createFromAscii( cChar ) 28 29 #define MID_MIRROR_VERT 0 30 #define MID_MIRROR_HORZ_EVEN_PAGES 1 31 #define MID_MIRROR_HORZ_ODD_PAGES 2 32 33 #define MID_PAGEDESC_PAGEDESCNAME 0 34 #define MID_PAGEDESC_PAGENUMOFFSET 1 35 36 #define MID_SURROUND_SURROUNDTYPE 0 37 #define MID_SURROUND_ANCHORONLY 1 38 #define MID_SURROUND_CONTOUR 2 39 #define MID_SURROUND_CONTOUROUTSIDE 3 40 41 #define MID_VERTORIENT_ORIENT 0 42 #define MID_VERTORIENT_RELATION 1 43 #define MID_VERTORIENT_POSITION 2 44 45 #define MID_HORIORIENT_ORIENT 0 46 #define MID_HORIORIENT_RELATION 1 47 #define MID_HORIORIENT_POSITION 2 48 #define MID_HORIORIENT_PAGETOGGLE 3 49 50 #define MID_ANCHOR_ANCHORTYPE 0 51 #define MID_ANCHOR_PAGENUM 1 52 #define MID_ANCHOR_ANCHORFRAME 2 53 54 #define MID_URL_HYPERLINKFORMAT 0 55 #define MID_URL_HYPERLINKNAME 1 56 #define MID_URL_CLIENTMAP 2 57 #define MID_URL_SERVERMAP 3 58 #define MID_URL_URL 4 59 #define MID_URL_TARGET 5 60 #define MID_URL_VISITED_FMT 6 61 #define MID_URL_UNVISITED_FMT 7 62 #define MID_URL_HYPERLINKEVENTS 8 63 64 #define MID_CHAIN_PREVNAME 0 65 #define MID_CHAIN_NEXTNAME 1 66 67 #define MID_LINENUMBER_COUNT 0 68 #define MID_LINENUMBER_STARTVALUE 1 69 70 #define MID_DROPCAP_FORMAT 0 71 #define MID_DROPCAP_WHOLE_WORD 1 72 #define MID_DROPCAP_CHAR_STYLE_NAME 2 73 #define MID_DROPCAP_LINES 3 74 #define MID_DROPCAP_COUNT 4 75 #define MID_DROPCAP_DISTANCE 5 76 77 #define MID_FRMSIZE_SIZE 0 78 #define MID_FRMSIZE_REL_HEIGHT 1 79 #define MID_FRMSIZE_REL_WIDTH 2 80 81 #define MID_FRMSIZE_WIDTH 4 82 #define MID_FRMSIZE_HEIGHT 5 83 #define MID_FRMSIZE_SIZE_TYPE 6 84 #define MID_FRMSIZE_IS_AUTO_HEIGHT 7 85 /* XML only */ 86 #define MID_FRMSIZE_MIN_HEIGHT 8 87 #define MID_FRMSIZE_FIX_HEIGHT 9 88 #define MID_FRMSIZE_COL_WIDTH 10 89 #define MID_FRMSIZE_REL_COL_WIDTH 11 90 /* UNO */ 91 #define MID_FRMSIZE_IS_SYNC_WIDTH_TO_HEIGHT 12 92 #define MID_FRMSIZE_IS_SYNC_HEIGHT_TO_WIDTH 13 93 #define MID_FRMSIZE_WIDTH_TYPE 14 94 95 #define MID_COLUMNS 0 96 #define MID_COLUMN_SEPARATOR_LINE 1 97 98 //SwFmtFtnAtTxtEnd 99 #define MID_COLLECT 0 100 #define MID_RESTART_NUM 1 101 #define MID_NUM_START_AT 2 102 #define MID_OWN_NUM 3 103 #define MID_NUM_TYPE 4 104 #define MID_PREFIX 5 105 #define MID_SUFFIX 6 106 107 //page style footnote 108 #define MID_FTN_HEIGHT 0 109 #define MID_LINE_WEIGHT 1 110 #define MID_LINE_COLOR 2 111 #define MID_LINE_RELWIDTH 3 112 #define MID_LINE_ADJUST 4 113 #define MID_LINE_TEXT_DIST 5 114 #define MID_LINE_FOOTNOTE_DIST 6 115 116 //SwFmtRuby 117 #define MID_RUBY_TEXT 0 118 #define MID_RUBY_ADJUST 1 119 #define MID_RUBY_CHARSTYLE 2 120 #define MID_RUBY_ABOVE 3 121 122 //SwTextGridItem 123 #define MID_GRID_COLOR 0 124 #define MID_GRID_LINES 1 125 #define MID_GRID_BASEHEIGHT 2 126 #define MID_GRID_RUBYHEIGHT 3 127 #define MID_GRID_TYPE 4 128 #define MID_GRID_RUBY_BELOW 5 129 #define MID_GRID_PRINT 6 130 #define MID_GRID_DISPLAY 7 131 #define MID_GRID_BASEWIDTH 8 132 #define MID_GRID_SNAPTOCHARS 9 133 #define MID_GRID_STANDARD_MODE 10 134 135 //SwEnvItem 136 #define MID_ENV_ADDR_TEXT 1 137 #define MID_ENV_SEND 2 138 #define MID_SEND_TEXT 3 139 #define MID_ENV_ADDR_FROM_LEFT 4 140 #define MID_ENV_ADDR_FROM_TOP 5 141 #define MID_ENV_SEND_FROM_LEFT 6 142 #define MID_ENV_SEND_FROM_TOP 7 143 #define MID_ENV_WIDTH 8 144 #define MID_ENV_HEIGHT 9 145 #define MID_ENV_ALIGN 10 146 #define MID_ENV_PRINT_FROM_ABOVE 11 147 #define MID_ENV_SHIFT_RIGHT 12 148 #define MID_ENV_SHIFT_DOWN 13 149 150 // OD 2004-05-04 #i28701# - SwFmtWrapInfluenceOnObjPos 151 #define MID_WRAP_INFLUENCE 0 152 153 #endif 154