LCOV - code coverage report
Current view: top level - xmloff/source/draw - sdpropls.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 1 0.0 %
Date: 2014-04-14 Functions: 0 1 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             : 
      20             : #ifndef INCLUDED_XMLOFF_SOURCE_DRAW_SDPROPLS_HXX
      21             : #define INCLUDED_XMLOFF_SOURCE_DRAW_SDPROPLS_HXX
      22             : 
      23             : #include <com/sun/star/frame/XModel.hpp>
      24             : #include <xmloff/xmlnume.hxx>
      25             : #include <xmloff/maptype.hxx>
      26             : #include <xmloff/xmltypes.hxx>
      27             : #include <xmloff/xmlement.hxx>
      28             : #include <xmloff/prhdlfac.hxx>
      29             : #include <xmloff/xmlprmap.hxx>
      30             : #include <xmloff/xmlexppr.hxx>
      31             : 
      32             : // entry list for graphic properties
      33             : 
      34             : extern const XMLPropertyMapEntry aXMLSDProperties[];
      35             : 
      36             : // entry list for presentation page properties
      37             : 
      38             : extern const XMLPropertyMapEntry aXMLSDPresPageProps[];
      39             : extern const XMLPropertyMapEntry aXMLSDPresPageProps_onlyHeadersFooter[];
      40             : 
      41             : // types of own properties
      42             : 
      43             : #define XML_SD_TYPE_STROKE                          (XML_SD_TYPES_START +  0)
      44             : #define XML_SD_TYPE_PRESPAGE_TYPE                   (XML_SD_TYPES_START +  1)
      45             : #define XML_SD_TYPE_PRESPAGE_STYLE                  (XML_SD_TYPES_START +  2)
      46             : #define XML_SD_TYPE_PRESPAGE_SPEED                  (XML_SD_TYPES_START +  3)
      47             : #define XML_SD_TYPE_PRESPAGE_DURATION               (XML_SD_TYPES_START +  4)
      48             : #define XML_SD_TYPE_PRESPAGE_VISIBILITY             (XML_SD_TYPES_START +  5)
      49             : #define XML_SD_TYPE_MARKER                          (XML_SD_TYPES_START +  6 )
      50             : #define XML_SD_TYPE_OPACITY                         (XML_SD_TYPES_START +  7 )
      51             : #define XML_SD_TYPE_LINEJOIN                        (XML_SD_TYPES_START +  8 )
      52             : #define XML_SD_TYPE_FILLSTYLE                       (XML_SD_TYPES_START +  9 )
      53             : #define XML_SD_TYPE_GRADIENT                        (XML_SD_TYPES_START + 10 )
      54             : #define XML_SD_TYPE_GRADIENT_STEPCOUNT              (XML_SD_TYPES_START + 11 )
      55             : #define XML_SD_TYPE_SHADOW                          (XML_SD_TYPES_START + 12 )
      56             : #define XML_SD_TYPE_TEXT_CROSSEDOUT                 (XML_SD_TYPES_START + 13 )
      57             : #define XML_SD_TYPE_NUMBULLET                       (XML_SD_TYPES_START + 14 )
      58             : #define XML_SD_TYPE_WRITINGMODE                     (XML_SD_TYPES_START + 15 )
      59             : #define XML_SD_TYPE_BITMAP_MODE                     (XML_SD_TYPES_START + 16 )
      60             : #define XML_SD_TYPE_BITMAPREPOFFSETX                (XML_SD_TYPES_START + 17 )
      61             : #define XML_SD_TYPE_BITMAPREPOFFSETY                (XML_SD_TYPES_START + 18 )
      62             : #define XML_SD_TYPE_FILLBITMAPSIZE                  (XML_SD_TYPES_START + 19 )
      63             : #define XML_SD_TYPE_LOGICAL_SIZE                    (XML_SD_TYPES_START + 20 )
      64             : #define XML_SD_TYPE_BITMAP_REFPOINT                 (XML_SD_TYPES_START + 21 )
      65             : #define XML_SD_TYPE_PRESPAGE_BACKSIZE               (XML_SD_TYPES_START + 22 )
      66             : #define XML_TYPE_TEXT_ANIMATION_BLINKING            (XML_SD_TYPES_START + 23 )
      67             : #define XML_TYPE_TEXT_ANIMATION_STEPS               (XML_SD_TYPES_START + 24 )
      68             : #define XML_SD_TYPE_TEXT_ALIGN                      (XML_SD_TYPES_START + 25 )
      69             : #define XML_SD_TYPE_VERTICAL_ALIGN                  (XML_SD_TYPES_START + 26 )
      70             : #define XML_SD_TYPE_FITTOSIZE                       (XML_SD_TYPES_START + 27 )
      71             : #define XML_SD_TYPE_MEASURE_HALIGN                  (XML_SD_TYPES_START + 28 )
      72             : #define XML_SD_TYPE_MEASURE_VALIGN                  (XML_SD_TYPES_START + 29 )
      73             : #define XML_SD_TYPE_MEASURE_UNIT                    (XML_SD_TYPES_START + 30 )
      74             : #define XML_SD_TYPE_MEASURE_PLACING                 (XML_SD_TYPES_START + 31 )
      75             : #define XML_SD_TYPE_CONTROL_BORDER                  (XML_SD_TYPES_START + 32 )
      76             : #define XML_SD_TYPE_CONTROL_BORDER_COLOR            (XML_SD_TYPES_START + 33 )
      77             : #define XML_SD_TYPE_IMAGE_SCALE_MODE                (XML_SD_TYPES_START + 34 )
      78             : #define XML_SD_TYPE_LINECAP                         (XML_SD_TYPES_START + 35 )
      79             : 
      80             : // 3D property types
      81             : #define XML_SD_TYPE_BACKFACE_CULLING                (XML_SD_TYPES_START + 40 )
      82             : #define XML_SD_TYPE_NORMALS_KIND                    (XML_SD_TYPES_START + 41 )
      83             : #define XML_SD_TYPE_NORMALS_DIRECTION               (XML_SD_TYPES_START + 42 )
      84             : #define XML_SD_TYPE_TEX_GENERATION_MODE_X           (XML_SD_TYPES_START + 43 )
      85             : #define XML_SD_TYPE_TEX_GENERATION_MODE_Y           (XML_SD_TYPES_START + 44 )
      86             : #define XML_SD_TYPE_TEX_KIND                        (XML_SD_TYPES_START + 45 )
      87             : #define XML_SD_TYPE_TEX_MODE                        (XML_SD_TYPES_START + 46 )
      88             : 
      89             : // #FontWork# types
      90             : #define XML_SD_TYPE_FONTWORK_STYLE                  (XML_SD_TYPES_START + 47 )
      91             : #define XML_SD_TYPE_FONTWORK_ADJUST                 (XML_SD_TYPES_START + 48 )
      92             : #define XML_SD_TYPE_FONTWORK_SHADOW                 (XML_SD_TYPES_START + 49 )
      93             : #define XML_SD_TYPE_FONTWORK_FORM                   (XML_SD_TYPES_START + 50 )
      94             : 
      95             : // Caption types
      96             : #define XML_SD_TYPE_CAPTION_ANGLE_TYPE              (XML_SD_TYPES_START + 60 )
      97             : #define XML_SD_TYPE_CAPTION_IS_ESC_REL              (XML_SD_TYPES_START + 61 )
      98             : #define XML_SD_TYPE_CAPTION_ESC_REL                 (XML_SD_TYPES_START + 62 )
      99             : #define XML_SD_TYPE_CAPTION_ESC_ABS                 (XML_SD_TYPES_START + 63 )
     100             : #define XML_SD_TYPE_CAPTION_ESC_DIR                 (XML_SD_TYPES_START + 64 )
     101             : #define XML_SD_TYPE_CAPTION_TYPE                    (XML_SD_TYPES_START + 65 )
     102             : 
     103             : // header & footer types
     104             : #define XML_SD_TYPE_DATETIMEUPDATE                  (XML_SD_TYPES_START + 70 )
     105             : #define XML_SD_TYPE_DATETIME_FORMAT                 (XML_SD_TYPES_START + 71 )
     106             : 
     107             : // new types for merged style:protect attribute
     108             : #define XML_SD_TYPE_MOVE_PROTECT                    (XML_SD_TYPES_START + 72 )
     109             : #define XML_SD_TYPE_SIZE_PROTECT                    (XML_SD_TYPES_START + 73 )
     110             : 
     111             : // new type for style:mirror attribute
     112             : #define XML_TYPE_SD_MIRROR                          (XML_SD_TYPES_START + 74 )
     113             : 
     114             : // new smil transition types for pages
     115             : #define XML_SD_TYPE_TRANSITION_TYPE                 (XML_SD_TYPES_START + 75 )
     116             : #define XML_SD_TYPE_TRANSTIION_SUBTYPE              (XML_SD_TYPES_START + 76 )
     117             : #define XML_SD_TYPE_TRANSTIION_DIRECTION            (XML_SD_TYPES_START + 77 )
     118             : 
     119             : #define XML_SD_TYPE_HEADER_FOOTER_VISIBILITY_TYPE   (XML_SD_TYPES_START + 78 )
     120             : 
     121             : #define CTF_NUMBERINGRULES          1000
     122             : #define CTF_CONTROLWRITINGMODE      1001
     123             : #define CTF_WRITINGMODE             1002
     124             : #define CTF_REPEAT_OFFSET_X         1003
     125             : #define CTF_REPEAT_OFFSET_Y         1004
     126             : #define CTF_PAGE_SOUND_URL          1005
     127             : #define CTF_PAGE_VISIBLE            1006
     128             : #define CTF_PAGE_TRANS_TYPE         1007
     129             : #define CTF_PAGE_TRANS_STYLE        1008
     130             : #define CTF_PAGE_TRANS_SPEED        1009
     131             : #define CTF_PAGE_TRANS_DURATION     1010
     132             : #define CTF_PAGE_BACKSIZE           1011
     133             : #define CTF_DASHNAME                1012
     134             : #define CTF_LINESTARTNAME           1013
     135             : #define CTF_LINEENDNAME             1014
     136             : #define CTF_FILLGRADIENTNAME        1015
     137             : #define CTF_FILLHATCHNAME           1016
     138             : #define CTF_FILLBITMAPNAME          1017
     139             : #define CTF_FILLTRANSNAME           1018
     140             : #define CTF_TEXTANIMATION_BLINKING  1019
     141             : #define CTF_TEXTANIMATION_KIND      1020
     142             : 
     143             : #define CTF_PAGE_TRANSITION_TYPE        1021
     144             : #define CTF_PAGE_TRANSITION_SUBTYPE     1022
     145             : #define CTF_PAGE_TRANSITION_DIRECTION   1023
     146             : #define CTF_PAGE_TRANSITION_FADECOLOR   1024
     147             : 
     148             : // #FontWork#
     149             : #define CTF_FONTWORK_STYLE              1021
     150             : #define CTF_FONTWORK_ADJUST             1022
     151             : #define CTF_FONTWORK_DISTANCE           1023
     152             : #define CTF_FONTWORK_START              1024
     153             : #define CTF_FONTWORK_MIRROR             1025
     154             : #define CTF_FONTWORK_OUTLINE            1026
     155             : #define CTF_FONTWORK_SHADOW             1027
     156             : #define CTF_FONTWORK_SHADOWCOLOR        1028
     157             : #define CTF_FONTWORK_SHADOWOFFSETX      1029
     158             : #define CTF_FONTWORK_SHADOWOFFSETY      1030
     159             : #define CTF_FONTWORK_FORM               1031
     160             : #define CTF_FONTWORK_HIDEFORM           1032
     161             : #define CTF_FONTWORK_SHADOWTRANSPARENCE 1033
     162             : 
     163             : // OLE part 1
     164             : #define CTF_SD_OLE_VIS_AREA_IMPORT_LEFT     1040
     165             : #define CTF_SD_OLE_VIS_AREA_IMPORT_TOP      1041
     166             : #define CTF_SD_OLE_VIS_AREA_IMPORT_WIDTH    1042
     167             : #define CTF_SD_OLE_VIS_AREA_IMPORT_HEIGHT   1043
     168             : #define CTF_SD_OLE_ISINTERNAL               1044
     169             : 
     170             : #define CTF_SD_MOVE_PROTECT             1045
     171             : #define CTF_SD_SIZE_PROTECT             1046
     172             : 
     173             : // caption
     174             : #define CTF_CAPTION_ISESCREL            1047
     175             : #define CTF_CAPTION_ESCREL              1048
     176             : #define CTF_CAPTION_ESCABS              1049
     177             : 
     178             : // header&footer
     179             : #define CTF_HEADER_VISIBLE              1050
     180             : #define CTF_FOOTER_VISIBLE              1051
     181             : #define CTF_PAGE_NUMBER_VISIBLE         1052
     182             : #define CTF_DATE_TIME_VISIBLE           1053
     183             : #define CTF_HEADER_TEXT                 1054
     184             : #define CTF_FOOTER_TEXT                 1055
     185             : #define CTF_DATE_TIME_TEXT              1056
     186             : #define CTF_DATE_TIME_FORMAT            1057
     187             : #define CTF_DATE_TIME_UPDATE            1058
     188             : 
     189             : // OLE part 2
     190             : #define CTF_SD_OLE_ASPECT                   1059
     191             : #define CTF_SD_OLE_VIS_AREA_EXPORT_LEFT     1060
     192             : #define CTF_SD_OLE_VIS_AREA_EXPORT_TOP      1061
     193             : #define CTF_SD_OLE_VIS_AREA_EXPORT_WIDTH    1062
     194             : #define CTF_SD_OLE_VIS_AREA_EXPORT_HEIGHT   1063
     195             : 
     196             : // enum maps for attributes
     197             : 
     198             : extern SvXMLEnumMapEntry const aXML_ConnectionKind_EnumMap[];
     199             : extern SvXMLEnumMapEntry const aXML_CircleKind_EnumMap[];
     200             : 
     201             : /** contains the attribute to property mapping for a drawing layer table */
     202             : extern const XMLPropertyMapEntry aXMLTableShapeAttributes[];
     203             : 
     204             : // factory for own graphic properties
     205             : 
     206             : class SvXMLExport;
     207             : class SvXMLImport;
     208             : 
     209             : class XMLSdPropHdlFactory : public XMLPropertyHandlerFactory
     210             : {
     211             : private:
     212             :     ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > mxModel;
     213             :     SvXMLExport* mpExport;
     214             :     SvXMLImport* mpImport;
     215             : 
     216             : public:
     217             :     XMLSdPropHdlFactory( ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >, SvXMLExport& rExport );
     218             :     XMLSdPropHdlFactory( ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >, SvXMLImport& rImport );
     219             :     virtual ~XMLSdPropHdlFactory();
     220             :     virtual const XMLPropertyHandler* GetPropertyHandler( sal_Int32 nType ) const SAL_OVERRIDE;
     221             : };
     222             : 
     223             : class XMLShapePropertySetMapper : public XMLPropertySetMapper
     224             : {
     225             : public:
     226             :     XMLShapePropertySetMapper(const UniReference< XMLPropertyHandlerFactory >& rFactoryRef, bool bForExport);
     227             :     virtual ~XMLShapePropertySetMapper();
     228             : };
     229             : 
     230             : class XMLShapeExportPropertyMapper : public SvXMLExportPropertyMapper
     231             : {
     232             : private:
     233             :     SvxXMLNumRuleExport maNumRuleExp;
     234             :     sal_Bool mbIsInAutoStyles;
     235             : 
     236             :     const OUString msCDATA;
     237             :     const OUString msTrue;
     238             :     const OUString msFalse;
     239             : 
     240             : protected:
     241             :     virtual void ContextFilter(
     242             :         bool bEnableFoFontFamily,
     243             :         ::std::vector< XMLPropertyState >& rProperties,
     244             :         ::com::sun::star::uno::Reference<
     245             :             ::com::sun::star::beans::XPropertySet > rPropSet ) const SAL_OVERRIDE;
     246             : public:
     247             :     XMLShapeExportPropertyMapper( const UniReference< XMLPropertySetMapper >& rMapper, SvXMLExport& rExport );
     248             :     virtual ~XMLShapeExportPropertyMapper();
     249             : 
     250             :     virtual void        handleElementItem(
     251             :                             SvXMLExport& rExport,
     252             :                             const XMLPropertyState& rProperty,
     253             :                             sal_uInt16 nFlags,
     254             :                             const ::std::vector< XMLPropertyState >* pProperties = 0,
     255             :                             sal_uInt32 nIdx = 0
     256             :                             ) const SAL_OVERRIDE;
     257             : 
     258           0 :     void SetAutoStyles( sal_Bool bIsInAutoStyles ) { mbIsInAutoStyles = bIsInAutoStyles; }
     259             : 
     260             :     virtual void handleSpecialItem(
     261             :             SvXMLAttributeList& rAttrList,
     262             :             const XMLPropertyState& rProperty,
     263             :             const SvXMLUnitConverter& rUnitConverter,
     264             :             const SvXMLNamespaceMap& rNamespaceMap,
     265             :             const ::std::vector< XMLPropertyState > *pProperties = 0,
     266             :             sal_uInt32 nIdx = 0 ) const SAL_OVERRIDE;
     267             : };
     268             : 
     269             : class XMLPageExportPropertyMapper : public SvXMLExportPropertyMapper
     270             : {
     271             : private:
     272             :     SvXMLExport& mrExport;
     273             : 
     274             :     const OUString msCDATA;
     275             :     const OUString msTrue;
     276             :     const OUString msFalse;
     277             : 
     278             : protected:
     279             :     virtual void ContextFilter(
     280             :         bool bEnableFoFontFamily,
     281             :         ::std::vector< XMLPropertyState >& rProperties,
     282             :         ::com::sun::star::uno::Reference<
     283             :             ::com::sun::star::beans::XPropertySet > rPropSet ) const SAL_OVERRIDE;
     284             : public:
     285             :     XMLPageExportPropertyMapper( const UniReference< XMLPropertySetMapper >& rMapper, SvXMLExport& rExport );
     286             :     virtual ~XMLPageExportPropertyMapper();
     287             : 
     288             :     virtual void        handleElementItem(
     289             :                             SvXMLExport& rExport,
     290             :                             const XMLPropertyState& rProperty,
     291             :                             sal_uInt16 nFlags,
     292             :                             const ::std::vector< XMLPropertyState >* pProperties = 0,
     293             :                             sal_uInt32 nIdx = 0
     294             :                             ) const SAL_OVERRIDE;
     295             : };
     296             : 
     297             : #endif // INCLUDED_XMLOFF_SOURCE_DRAW_SDPROPLS_HXX
     298             : 
     299             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10