LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/sw/inc - unomap.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2013-07-09 Functions: 0 2 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : #ifndef _UNOMAP_HXX
      20             : #define _UNOMAP_HXX
      21             : 
      22             : #include <svl/itemprop.hxx>
      23             : 
      24             : #define PROPERTY_NONE 0
      25             : 
      26             : #define PROPERTY_MAP_TEXT_CURSOR            0
      27             : #define PROPERTY_MAP_CHAR_STYLE             1
      28             : #define PROPERTY_MAP_PARA_STYLE             2
      29             : #define PROPERTY_MAP_FRAME_STYLE            3
      30             : #define PROPERTY_MAP_PAGE_STYLE             4
      31             : #define PROPERTY_MAP_NUM_STYLE              5
      32             : #define PROPERTY_MAP_SECTION                6
      33             : #define PROPERTY_MAP_TEXT_TABLE             7
      34             : #define PROPERTY_MAP_TABLE_CELL             8
      35             : #define PROPERTY_MAP_TABLE_RANGE            9
      36             : #define PROPERTY_MAP_TEXT_SEARCH            10
      37             : #define PROPERTY_MAP_TEXT_FRAME             11
      38             : #define PROPERTY_MAP_TEXT_GRAPHIC           12
      39             : #define PROPERTY_MAP_TEXT_SHAPE             13
      40             : #define PROPERTY_MAP_INDEX_USER             14
      41             : #define PROPERTY_MAP_INDEX_CNTNT            15
      42             : #define PROPERTY_MAP_INDEX_IDX              16
      43             : #define PROPERTY_MAP_USER_MARK              17
      44             : #define PROPERTY_MAP_CNTIDX_MARK            18
      45             : #define PROPERTY_MAP_INDEX_MARK             19
      46             : #define PROPERTY_MAP_TEXT_TABLE_ROW         20
      47             : #define PROPERTY_MAP_TEXT_SHAPE_DESCRIPTOR  21
      48             : #define PROPERTY_MAP_TEXT_TABLE_CURSOR      22
      49             : #define PROPERTY_MAP_BOOKMARK               23
      50             : #define PROPERTY_MAP_PARAGRAPH_EXTENSIONS   24
      51             : #define PROPERTY_MAP_INDEX_ILLUSTRATIONS    25
      52             : #define PROPERTY_MAP_INDEX_OBJECTS          26
      53             : #define PROPERTY_MAP_INDEX_TABLES           27
      54             : #define PROPERTY_MAP_BIBLIOGRAPHY           28
      55             : #define PROPERTY_MAP_TEXT_DOCUMENT          29
      56             : #define PROPERTY_MAP_LINK_TARGET            30
      57             : #define PROPERTY_MAP_AUTO_TEXT_GROUP        31
      58             : #define PROPERTY_MAP_TEXTPORTION_EXTENSIONS 34
      59             : #define PROPERTY_MAP_FOOTNOTE               35
      60             : #define PROPERTY_MAP_TEXT_COLUMS            36
      61             : #define PROPERTY_MAP_PARAGRAPH              37
      62             : #define PROPERTY_MAP_EMBEDDED_OBJECT        38
      63             : #define PROPERTY_MAP_REDLINE                39
      64             : #define PROPERTY_MAP_TEXT_DEFAULT           40
      65             : 
      66             : #define PROPERTY_MAP_FLDTYP_DATETIME                    41
      67             : #define PROPERTY_MAP_FLDTYP_USER                        42
      68             : #define PROPERTY_MAP_FLDTYP_SET_EXP                     43
      69             : #define PROPERTY_MAP_FLDTYP_GET_EXP                     44
      70             : #define PROPERTY_MAP_FLDTYP_FILE_NAME                   45
      71             : #define PROPERTY_MAP_FLDTYP_PAGE_NUM                    46
      72             : #define PROPERTY_MAP_FLDTYP_AUTHOR                      47
      73             : #define PROPERTY_MAP_FLDTYP_CHAPTER                     48
      74             : #define PROPERTY_MAP_FLDTYP_GET_REFERENCE               49
      75             : #define PROPERTY_MAP_FLDTYP_CONDITIONED_TEXT            50
      76             : #define PROPERTY_MAP_FLDTYP_HIDDEN_TEXT                 51
      77             : #define PROPERTY_MAP_FLDTYP_ANNOTATION                  52
      78             : #define PROPERTY_MAP_FLDTYP_INPUT                       53
      79             : #define PROPERTY_MAP_FLDTYP_MACRO                       54
      80             : #define PROPERTY_MAP_FLDTYP_DDE                         55
      81             : #define PROPERTY_MAP_FLDTYP_HIDDEN_PARA                 56
      82             : #define PROPERTY_MAP_FLDTYP_DOC_INFO                    57
      83             : #define PROPERTY_MAP_FLDTYP_TEMPLATE_NAME               58
      84             : #define PROPERTY_MAP_FLDTYP_USER_EXT                    59
      85             : #define PROPERTY_MAP_FLDTYP_REF_PAGE_SET                60
      86             : #define PROPERTY_MAP_FLDTYP_REF_PAGE_GET                61
      87             : #define PROPERTY_MAP_FLDTYP_JUMP_EDIT                   62
      88             : #define PROPERTY_MAP_FLDTYP_SCRIPT                      63
      89             : #define PROPERTY_MAP_FLDTYP_DATABASE_NEXT_SET           64
      90             : #define PROPERTY_MAP_FLDTYP_DATABASE_NUM_SET            65
      91             : #define PROPERTY_MAP_FLDTYP_DATABASE_SET_NUM            66
      92             : #define PROPERTY_MAP_FLDTYP_DATABASE                    67
      93             : #define PROPERTY_MAP_FLDTYP_DATABASE_NAME               68
      94             : #define PROPERTY_MAP_FLDTYP_DOCSTAT                     69
      95             : #define PROPERTY_MAP_FLDTYP_DOCINFO_AUTHOR              70
      96             : #define PROPERTY_MAP_FLDTYP_DOCINFO_DATE_TIME           71
      97             : #define PROPERTY_MAP_FLDTYP_DOCINFO_CHANGE_DATE_TIME    72
      98             : #define PROPERTY_MAP_FLDTYP_DOCINFO_CREATE_DATE_TIME    73
      99             : #define PROPERTY_MAP_FLDTYP_DOCINFO_EDIT_TIME           74
     100             : #define PROPERTY_MAP_FLDTYP_DOCINFO_MISC                75
     101             : #define PROPERTY_MAP_FLDTYP_DOCINFO_REVISION            76
     102             : #define PROPERTY_MAP_FLDTYP_COMBINED_CHARACTERS         77
     103             : #define PROPERTY_MAP_FLDTYP_DUMMY_0                     78
     104             : #define PROPERTY_MAP_FLDTYP_TABLE_FORMULA               79
     105             : #define PROPERTY_MAP_FLDMSTR_USER                       80
     106             : #define PROPERTY_MAP_FLDMSTR_DDE                        81
     107             : #define PROPERTY_MAP_FLDMSTR_SET_EXP                    82
     108             : #define PROPERTY_MAP_FLDMSTR_DATABASE                   83
     109             : #define PROPERTY_MAP_FLDMSTR_DUMMY0                     84
     110             : #define PROPERTY_MAP_FLDTYP_BIBLIOGRAPHY                85
     111             : #define PROPERTY_MAP_FLDMSTR_BIBLIOGRAPHY               86
     112             : #define PROPERTY_MAP_TEXT                               87
     113             : #define PROPERTY_MAP_REDLINE_PORTION                    88
     114             : #define PROPERTY_MAP_MAILMERGE                          89
     115             : #define PROPERTY_MAP_FLDTYP_DROPDOWN                    90
     116             : #define PROPERTY_MAP_CHART2_DATA_SEQUENCE               91
     117             : #define PROPERTY_MAP_TEXT_VIEW                          92
     118             : #define PROPERTY_MAP_CONDITIONAL_PARA_STYLE             93
     119             : #define PROPERTY_MAP_CHAR_AUTO_STYLE                    94
     120             : #define PROPERTY_MAP_RUBY_AUTO_STYLE                    95
     121             : #define PROPERTY_MAP_PARA_AUTO_STYLE                    96
     122             : #define PROPERTY_MAP_FLDTYP_DOCINFO_CUSTOM              97
     123             : #define PROPERTY_MAP_METAFIELD                          98
     124             : #define PROPERTY_MAP_ACCESSIBILITY_TEXT_ATTRIBUTE       99
     125             : #define PROPERTY_MAP_END                                100
     126             : 
     127             : //S&E
     128             : #define WID_WORDS                0
     129             : #define WID_BACKWARDS            1
     130             : #define WID_REGULAR_EXPRESSION   2
     131             : #define WID_CASE_SENSITIVE       3
     132             : #define WID_IN_SELECTION         4
     133             : #define WID_STYLES               5
     134             : #define WID_SIMILARITY           6
     135             : #define WID_SIMILARITY_RELAX     7
     136             : #define WID_SIMILARITY_EXCHANGE  8
     137             : #define WID_SIMILARITY_ADD       9
     138             : #define WID_SIMILARITY_REMOVE    10
     139             : #define WID_SEARCH_ALL           11
     140             : 
     141             : //Sections
     142             : #define WID_SECT_CONDITION   8000
     143             : #define WID_SECT_DDE_TYPE    8001
     144             : #define WID_SECT_DDE_FILE    8002
     145             : #define WID_SECT_DDE_ELEMENT 8003
     146             : #define WID_SECT_LINK        8004
     147             : #define WID_SECT_VISIBLE     8005
     148             : #define WID_SECT_PROTECTED   8006
     149             : #define WID_SECT_REGION      8007
     150             : #define WID_SECT_DDE_AUTOUPDATE 8008
     151             : #define WID_SECT_DOCUMENT_INDEX 8009
     152             : #define WID_SECT_IS_GLOBAL_DOC_SECTION 8010
     153             : #define WID_SECT_PASSWORD    8011
     154             : #define WID_SECT_CURRENTLY_VISIBLE 8012
     155             : #define WID_SECT_EDIT_IN_READONLY 8013
     156             : 
     157             : 
     158             : // Indices/Tables of content
     159             : #define WID_PRIMARY_KEY                         1000
     160             : #define WID_SECONDARY_KEY                       1001
     161             : #define WID_ALT_TEXT                            1002
     162             : #define WID_IDX_TITLE                           1003
     163             : #define WID_LEVEL                               1004
     164             : #define WID_CREATE_FROM_MARKS                   1005
     165             : #define WID_CREATE_FROM_OUTLINE                 1006
     166             : #define WID_MAIN_ENTRY                          1007
     167             : #define WID_CREATE_FROM_CHAPTER                 1008
     168             : #define WID_CREATE_FROM_LABELS                  1009
     169             : #define WID_USE_ALPHABETICAL_SEPARATORS         1010
     170             : #define WID_USE_KEY_AS_ENTRY                    1011
     171             : #define WID_USE_COMBINED_ENTRIES                1012
     172             : #define WID_IS_CASE_SENSITIVE                   1013
     173             : #define WID_USE_P_P                             1014
     174             : #define WID_USE_DASH                            1015
     175             : #define WID_USE_UPPER_CASE                      1016
     176             : #define WID_LABEL_CATEGORY                      1018
     177             : #define WID_LABEL_DISPLAY_TYPE                  1019
     178             : #define WID_USE_LEVEL_FROM_SOURCE               1020
     179             : #define WID_LEVEL_FORMAT                        1021
     180             : #define WID_LEVEL_PARAGRAPH_STYLES              1022
     181             : #define WID_MAIN_ENTRY_CHARACTER_STYLE_NAME     1025
     182             : #define WID_CREATE_FROM_TABLES                  1026
     183             : #define WID_CREATE_FROM_TEXT_FRAMES             1027
     184             : #define WID_CREATE_FROM_GRAPHIC_OBJECTS         1028
     185             : #define WID_CREATE_FROM_EMBEDDED_OBJECTS        1029
     186             : #define WID_CREATE_FROM_STAR_MATH               1030
     187             : #define WID_PROTECTED                           1031
     188             : 
     189             : #define WID_CREATE_FROM_STAR_CHART              1032
     190             : #define WID_CREATE_FROM_STAR_CALC               1033
     191             : #define WID_CREATE_FROM_STAR_DRAW               1034
     192             : #define WID_CREATE_FROM_OTHER_EMBEDDED_OBJECTS  1035
     193             : #define WID_USER_IDX_NAME                       1036
     194             : #define WID_PARA_HEAD                           1037
     195             : #define WID_PARA_SEP                            1038
     196             : #define WID_PARA_LEV1                           1039
     197             : #define WID_PARA_LEV2                           1040
     198             : #define WID_PARA_LEV3                           1041
     199             : #define WID_PARA_LEV4                           1042
     200             : #define WID_PARA_LEV5                           1043
     201             : #define WID_PARA_LEV6                           1044
     202             : #define WID_PARA_LEV7                           1045
     203             : #define WID_PARA_LEV8                           1046
     204             : #define WID_PARA_LEV9                           1047
     205             : #define WID_PARA_LEV10                          1048
     206             : #define WID_IS_COMMA_SEPARATED                  1049
     207             : #define WID_INDEX_MARKS                         1050
     208             : #define WID_IS_RELATIVE_TABSTOPS                1051
     209             : #define WID_CREATE_FROM_PARAGRAPH_STYLES        1052
     210             : #define WID_IDX_CONTENT_SECTION                 1053
     211             : #define WID_IDX_HEADER_SECTION                  1054
     212             : #define WID_IDX_LOCALE                          1055
     213             : #define WID_IDX_SORT_ALGORITHM                  1056
     214             : #define WID_IDX_NAME                            1057
     215             : 
     216             : #define WID_TEXT_READING                        1058
     217             : #define WID_PRIMARY_KEY_READING                 1059
     218             : #define WID_SECONDARY_KEY_READING               1060
     219             : 
     220             : // Text document
     221             : #define WID_DOC_CHAR_COUNT                      1000
     222             : #define WID_DOC_PARA_COUNT                      1001
     223             : #define WID_DOC_WORD_COUNT                      1002
     224             : #define WID_DOC_WORD_SEPARATOR                  1003
     225             : #define WID_DOC_CHANGES_SHOW                    1004
     226             : #define WID_DOC_CHANGES_RECORD                  1005
     227             : #define WID_DOC_AUTO_MARK_URL                   1006
     228             : #define WID_DOC_HIDE_TIPS                       1007
     229             : #define WID_DOC_REDLINE_DISPLAY                 1008
     230             : #define WID_DOC_FORBIDDEN_CHARS                 1009
     231             : #define WID_DOC_CHANGES_PASSWORD                1010
     232             : #define WID_DOC_TWO_DIGIT_YEAR                  1011
     233             : #define WID_DOC_AUTOMATIC_CONTROL_FOCUS         1012
     234             : #define WID_DOC_APPLY_FORM_DESIGN_MODE          1013
     235             : #define WID_DOC_BASIC_LIBRARIES                 1014
     236             : #define WID_DOC_RUNTIME_UID                     1015
     237             : #define WID_DOC_LOCK_UPDATES                    1016
     238             : #define WID_DOC_HAS_VALID_SIGNATURES            1017
     239             : #define WID_DOC_BUILDID                         1024
     240             : #define WID_DOC_ISTEMPLATEID                    1025
     241             : #define WID_DOC_DEFAULT_PAGE_MODE               1069
     242             : 
     243             : // MailMerge
     244             : #define WID_SELECTION                           1071
     245             : #define WID_RESULT_SET                          1072
     246             : #define WID_CONNECTION                          1073
     247             : #define WID_MODEL                               1074
     248             : #define WID_DATA_SOURCE_NAME                    1075
     249             : #define WID_DATA_COMMAND                        1076
     250             : #define WID_FILTER                              1077
     251             : #define WID_DOCUMENT_URL                        1078
     252             : #define WID_OUTPUT_URL                          1079
     253             : #define WID_DATA_COMMAND_TYPE                   1080
     254             : #define WID_OUTPUT_TYPE                         1081
     255             : #define WID_ESCAPE_PROCESSING                   1082
     256             : #define WID_SINGLE_PRINT_JOBS                   1083
     257             : #define WID_FILE_NAME_FROM_COLUMN               1084
     258             : #define WID_FILE_NAME_PREFIX                    1085
     259             : #define WID_MAIL_SUBJECT                        1086
     260             : #define WID_ADDRESS_FROM_COLUMN                 1087
     261             : #define WID_SEND_AS_HTML                        1088
     262             : #define WID_SEND_AS_ATTACHMENT                  1089
     263             : #define WID_MAIL_BODY                           1090
     264             : #define WID_ATTACHMENT_NAME                     1091
     265             : #define WID_ATTACHMENT_FILTER                   1092
     266             : #define WID_PRINT_OPTIONS                       1093
     267             : #define WID_SAVE_AS_SINGLE_FILE                 1094
     268             : #define WID_SAVE_FILTER                         1095
     269             : #define WID_COPIES_TO                           1096
     270             : #define WID_BLIND_COPIES_TO                     1097
     271             : #define WID_IN_SERVER_PASSWORD                  1098
     272             : #define WID_OUT_SERVER_PASSWORD                 1099
     273             : #define WID_SAVE_FILTER_OPTIONS                 1100
     274             : #define WID_SAVE_FILTER_DATA                    1101
     275             : 
     276             : #define WID_PAGE_COUNT                          1100
     277             : #define WID_LINE_COUNT                          1101
     278             : #define WID_IS_CONSTANT_SPELLCHECK              1102
     279             : #define WID_IS_HIDE_SPELL_MARKS                 1103    /* deprecated #i91949 */
     280             : 
     281             : #define WID_LAYOUT_SIZE                         1104
     282             : #define WID_DOC_DIALOG_LIBRARIES                1105
     283             : #define WID_DOC_VBA_DOCOBJ                      1106
     284             : 
     285             : 
     286             : // AutoText
     287             : #define WID_GROUP_PATH                          0
     288             : #define WID_GROUP_TITLE                         1
     289             : 
     290             : // NumberingRules
     291             : #define WID_IS_AUTOMATIC                0
     292             : #define WID_CONTINUOUS                  1
     293             : #define WID_RULE_NAME                   2
     294             : #define WID_IS_ABS_MARGINS              3
     295             : #define WID_IS_OUTLINE                  4
     296             : #define WID_DEFAULT_LIST_ID             5
     297             : 
     298             : // TextColumns
     299             : #define WID_TXTCOL_LINE_WIDTH           0
     300             : #define WID_TXTCOL_LINE_COLOR           1
     301             : #define WID_TXTCOL_LINE_REL_HGT         2
     302             : #define WID_TXTCOL_LINE_ALIGN           3
     303             : #define WID_TXTCOL_LINE_IS_ON           4
     304             : #define WID_TXTCOL_IS_AUTOMATIC         5
     305             : #define WID_TXTCOL_AUTO_DISTANCE        6
     306             : #define WID_TXTCOL_LINE_STYLE           7
     307             : 
     308           0 : class SwItemPropertySet : public SfxItemPropertySet
     309             : {
     310             : protected:
     311             :     virtual sal_Bool            FillItem(SfxItemSet& rSet, sal_uInt16 nWhich, sal_Bool bGetProperty) const;
     312             : public:
     313             :     SwItemPropertySet( const SfxItemPropertyMapEntry *pMap ) :
     314             :         SfxItemPropertySet( pMap ){}
     315             : };
     316             : class SwUnoPropertyMapProvider
     317             : {
     318             :     SfxItemPropertyMapEntry*        aMapEntriesArr[PROPERTY_MAP_END];
     319             :     SfxItemPropertySet*             aPropertySetArr[PROPERTY_MAP_END];
     320             : 
     321             : public:
     322             :     SwUnoPropertyMapProvider();
     323             :     ~SwUnoPropertyMapProvider();
     324             : 
     325             :     const SfxItemPropertyMapEntry*  GetPropertyMapEntries(sal_uInt16 PropertyId);
     326             :     const SfxItemPropertySet*       GetPropertySet( sal_uInt16 PropertyId );
     327             : 
     328             : };
     329             : 
     330             : extern SwUnoPropertyMapProvider aSwMapProvider;
     331             : #endif
     332             : 
     333             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10