Modified: openoffice/trunk/main/sw/source/core/unocore/unomap.cxx
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/sw/source/core/unocore/unomap.cxx?rev=1599233&r1=1599232&r2=1599233&view=diff
==============================================================================
--- openoffice/trunk/main/sw/source/core/unocore/unomap.cxx (original)
+++ openoffice/trunk/main/sw/source/core/unocore/unomap.cxx Mon Jun  2 15:00:50 
2014
@@ -585,6 +585,14 @@ const SfxItemPropertyMapEntry* SwUnoProp
                                        COMMON_TEXT_CONTENT_PROPERTIES
                     { SW_PROP_NMID(UNO_NAME_CHAR_STYLE_NAME), 
RES_TXTATR_CHARFMT,     CPPU_E2T(CPPUTYPE_OUSTRING),         
PropertyAttribute::MAYBEVOID,     0},\
                     { SW_PROP_NMID(UNO_NAME_CHAR_STYLE_NAMES), 
FN_UNO_CHARFMT_SEQUENCE,  CPPU_E2T(CPPUTYPE_OUSTRINGS),     
PropertyAttribute::MAYBEVOID,     0},\
+
+                    //UUUU added FillProperties for SW, same as 
FILL_PROPERTIES in svx
+                    // but need own defines in Writer due to later association 
of strings
+                    // and uno types (see loop at end of this method and 
definition of SW_PROP_NMID)
+                    // This entry is for adding that properties to style 
import/export
+                    //UUUU Added for paragraph backgrounds, this is for 
paragraph itself
+                    FILL_PROPERTIES_SW
+
                     {0,0,0,0,0,0}
                                };
                 aMapEntriesArr[nPropertyId] = aParagraphMap_Impl;
@@ -612,6 +620,14 @@ const SfxItemPropertyMapEntry* SwUnoProp
                     TABSTOPS_MAP_ENTRY
                     COMMON_TEXT_CONTENT_PROPERTIES
                     { SW_PROP_NMID(UNO_NAME_PARA_AUTO_STYLE_NAME), 
RES_AUTO_STYLE,     CPPU_E2T(CPPUTYPE_OUSTRING),         
PropertyAttribute::MAYBEVOID,     0},
+
+                    //UUUU added FillProperties for SW, same as 
FILL_PROPERTIES in svx
+                    // but need own defines in Writer due to later association 
of strings
+                    // and uno types (see loop at end of this method and 
definition of SW_PROP_NMID)
+                    // This entry is for adding that properties to style 
import/export
+                    //UUUU Added for paragraph backgrounds, this is for 
Paragraph AutoStyles
+                    FILL_PROPERTIES_SW
+
                     {0,0,0,0,0,0}
                 };
                 aMapEntriesArr[nPropertyId] = aAutoParaStyleMap;
@@ -727,6 +743,14 @@ const SfxItemPropertyMapEntry* SwUnoProp
                 static SfxItemPropertyMapEntry aParaStyleMap [] =
                 {
                     COMMON_PARA_STYLE_PROPERTIES
+
+                    //UUUU added FillProperties for SW, same as 
FILL_PROPERTIES in svx
+                    // but need own defines in Writer due to later association 
of strings
+                    // and uno types (see loop at end of this method and 
definition of SW_PROP_NMID)
+                    // This entry is for adding that properties to style 
import/export
+                    //UUUU Added for paragraph backgrounds, this is for 
Paragraph Styles
+                    FILL_PROPERTIES_SW
+
                     {0,0,0,0,0,0}
                 };
                 aMapEntriesArr[nPropertyId] = aParaStyleMap;
@@ -738,6 +762,14 @@ const SfxItemPropertyMapEntry* SwUnoProp
                 {
                     COMMON_PARA_STYLE_PROPERTIES
                     { SW_PROP_NMID(UNO_NAME_PARA_STYLE_CONDITIONS), 
FN_UNO_PARA_STYLE_CONDITIONS, CPPU_E2T(CPPUTYPE_SEQNAMEDVALUE), 
PropertyAttribute::MAYBEVOID, 0},
+
+                    //UUUU added FillProperties for SW, same as 
FILL_PROPERTIES in svx
+                    // but need own defines in Writer due to later association 
of strings
+                    // and uno types (see loop at end of this method and 
definition of SW_PROP_NMID)
+                    // This entry is for adding that properties to style 
import/export
+                    //UUUU Added for paragraph backgrounds, this is for 
Paragraph Styles
+                    FILL_PROPERTIES_SW
+
                     {0,0,0,0,0,0}
                 };
                 aMapEntriesArr[nPropertyId] = aParaStyleMap;
@@ -855,56 +887,59 @@ const SfxItemPropertyMapEntry* SwUnoProp
                                        { 
SW_PROP_NMID(UNO_NAME_BOTTOM_BORDER_DISTANCE), RES_BOX,                       
CPPU_E2T(CPPUTYPE_INT32),       0, BOTTOM_BORDER_DISTANCE|CONVERT_TWIPS },
                                        { SW_PROP_NMID(UNO_NAME_SHADOW_FORMAT), 
RES_SHADOW,                     CPPU_E2T(CPPUTYPE_SHADOWFMT),   PROPERTY_NONE, 
CONVERT_TWIPS},
 
-                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_BACK_COLOR), FN_UNO_HEADER_BACKGROUND,   
CPPU_E2T(CPPUTYPE_INT32),                       PROPERTY_NONE ,MID_BACK_COLOR   
         },
-                               //      { 
SW_PROP_NMID(UNO_NAME_HEADER_GRAPHIC), FN_UNO_HEADER_BACKGROUND,      &,        
                                                      PROPERTY_NONE, MID_GRAPHIC
-                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_GRAPHIC_URL), FN_UNO_HEADER_BACKGROUND,            
      CPPU_E2T(CPPUTYPE_OUSTRING), PROPERTY_NONE ,MID_GRAPHIC_URL    },
-                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_GRAPHIC_FILTER), FN_UNO_HEADER_BACKGROUND,         
              CPPU_E2T(CPPUTYPE_OUSTRING), PROPERTY_NONE ,MID_GRAPHIC_FILTER    
},
-                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_GRAPHIC_LOCATION), FN_UNO_HEADER_BACKGROUND,     
CPPU_E2T(CPPUTYPE_GRAPHICLOC), PROPERTY_NONE ,MID_GRAPHIC_POSITION},
-                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_LEFT_MARGIN), FN_UNO_HEADER_LR_SPACE,    
CPPU_E2T(CPPUTYPE_INT32), PROPERTY_NONE, MID_L_MARGIN|CONVERT_TWIPS},
-                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_RIGHT_MARGIN), FN_UNO_HEADER_LR_SPACE,   
CPPU_E2T(CPPUTYPE_INT32), PROPERTY_NONE, MID_R_MARGIN|CONVERT_TWIPS},
-                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_BACK_TRANSPARENT), FN_UNO_HEADER_BACKGROUND,     
CPPU_E2T(CPPUTYPE_BOOLEAN),                     PROPERTY_NONE 
,MID_GRAPHIC_TRANSPARENT           },
-                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_LEFT_BORDER), FN_UNO_HEADER_BOX,                   
      CPPU_E2T(CPPUTYPE_BORDERLINE),  0, LEFT_BORDER  |CONVERT_TWIPS },
-                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_RIGHT_BORDER), FN_UNO_HEADER_BOX,                  
      CPPU_E2T(CPPUTYPE_BORDERLINE),  0, RIGHT_BORDER |CONVERT_TWIPS },
-                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_TOP_BORDER), FN_UNO_HEADER_BOX,                    
      CPPU_E2T(CPPUTYPE_BORDERLINE),  0, TOP_BORDER   |CONVERT_TWIPS },
-                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_BOTTOM_BORDER), FN_UNO_HEADER_BOX,                 
      CPPU_E2T(CPPUTYPE_BORDERLINE),  0, BOTTOM_BORDER|CONVERT_TWIPS },
-                    { SW_PROP_NMID(UNO_NAME_HEADER_BORDER_DISTANCE), 
FN_UNO_HEADER_BOX,    CPPU_E2T(CPPUTYPE_INT32),    
PropertyAttribute::MAYBEVOID, BORDER_DISTANCE|CONVERT_TWIPS },
-                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_LEFT_BORDER_DISTANCE), FN_UNO_HEADER_BOX,          
              CPPU_E2T(CPPUTYPE_INT32),       0, LEFT_BORDER_DISTANCE  
|CONVERT_TWIPS },
-                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_RIGHT_BORDER_DISTANCE), FN_UNO_HEADER_BOX,         
              CPPU_E2T(CPPUTYPE_INT32),       0, RIGHT_BORDER_DISTANCE 
|CONVERT_TWIPS },
-                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_TOP_BORDER_DISTANCE), FN_UNO_HEADER_BOX,           
              CPPU_E2T(CPPUTYPE_INT32),       0, TOP_BORDER_DISTANCE   
|CONVERT_TWIPS },
-                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_BOTTOM_BORDER_DISTANCE), FN_UNO_HEADER_BOX,        
              CPPU_E2T(CPPUTYPE_INT32),       0, 
BOTTOM_BORDER_DISTANCE|CONVERT_TWIPS },
-                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_SHADOW_FORMAT), FN_UNO_HEADER_SHADOW,            
CPPU_E2T(CPPUTYPE_SHADOWFMT),   PROPERTY_NONE, CONVERT_TWIPS},
-                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_BODY_DISTANCE), 
FN_UNO_HEADER_BODY_DISTANCE,CPPU_E2T(CPPUTYPE_INT32),                    
PROPERTY_NONE ,MID_LO_MARGIN|CONVERT_TWIPS               },
-                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_IS_DYNAMIC_HEIGHT), 
FN_UNO_HEADER_IS_DYNAMIC_DISTANCE,CPPU_E2T(CPPUTYPE_BOOLEAN),                   
     PROPERTY_NONE ,0                 },
-                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_IS_SHARED), 
FN_UNO_HEADER_SHARE_CONTENT,CPPU_E2T(CPPUTYPE_BOOLEAN),                      
PROPERTY_NONE ,0                 },
-                                       { SW_PROP_NMID(UNO_NAME_HEADER_HEIGHT), 
FN_UNO_HEADER_HEIGHT,           CPPU_E2T(CPPUTYPE_INT32),                       
PROPERTY_NONE ,MID_SIZE_HEIGHT|CONVERT_TWIPS             },
-                                       { SW_PROP_NMID(UNO_NAME_HEADER_IS_ON), 
FN_UNO_HEADER_ON,                        CPPU_E2T(CPPUTYPE_BOOLEAN),            
         PROPERTY_NONE ,0                 },
-                    { SW_PROP_NMID(UNO_NAME_HEADER_DYNAMIC_SPACING), 
FN_UNO_HEADER_EAT_SPACING,            CPPU_E2T(CPPUTYPE_BOOLEAN),         
PropertyAttribute::MAYBEVOID ,0         },
-
-                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_BACK_COLOR), FN_UNO_FOOTER_BACKGROUND,   
CPPU_E2T(CPPUTYPE_INT32),                       PROPERTY_NONE ,MID_BACK_COLOR   
         },
-                               //      { 
SW_PROP_NMID(UNO_NAME_FOOTER_GRAPHIC), FN_UNO_FOOTER_BACKGROUND,      &,        
                                                      PROPERTY_NONE, MID_GRAPHIC
-                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_GRAPHIC_URL), FN_UNO_FOOTER_BACKGROUND,          
CPPU_E2T(CPPUTYPE_OUSTRING), PROPERTY_NONE ,MID_GRAPHIC_URL    },
-                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_GRAPHIC_FILTER), FN_UNO_FOOTER_BACKGROUND,         
      CPPU_E2T(CPPUTYPE_OUSTRING), PROPERTY_NONE ,MID_GRAPHIC_FILTER    },
-                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_GRAPHIC_LOCATION), FN_UNO_FOOTER_BACKGROUND,     
CPPU_E2T(CPPUTYPE_GRAPHICLOC), PROPERTY_NONE ,MID_GRAPHIC_POSITION},
-                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_LEFT_MARGIN), FN_UNO_FOOTER_LR_SPACE,    
CPPU_E2T(CPPUTYPE_INT32), PROPERTY_NONE, MID_L_MARGIN|CONVERT_TWIPS},
-                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_RIGHT_MARGIN), FN_UNO_FOOTER_LR_SPACE,   
CPPU_E2T(CPPUTYPE_INT32), PROPERTY_NONE, MID_R_MARGIN|CONVERT_TWIPS},
-                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_BACK_TRANSPARENT), FN_UNO_FOOTER_BACKGROUND,     
CPPU_E2T(CPPUTYPE_BOOLEAN),                     PROPERTY_NONE 
,MID_GRAPHIC_TRANSPARENT           },
-                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_LEFT_BORDER), FN_UNO_FOOTER_BOX,                   
      CPPU_E2T(CPPUTYPE_BORDERLINE),  0, LEFT_BORDER  |CONVERT_TWIPS },
-                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_RIGHT_BORDER), FN_UNO_FOOTER_BOX,                  
      CPPU_E2T(CPPUTYPE_BORDERLINE),  0, RIGHT_BORDER |CONVERT_TWIPS },
-                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_TOP_BORDER), FN_UNO_FOOTER_BOX,                    
      CPPU_E2T(CPPUTYPE_BORDERLINE),  0, TOP_BORDER   |CONVERT_TWIPS },
-                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_BOTTOM_BORDER), FN_UNO_FOOTER_BOX,                 
      CPPU_E2T(CPPUTYPE_BORDERLINE),  0, BOTTOM_BORDER|CONVERT_TWIPS },
-                    { SW_PROP_NMID(UNO_NAME_FOOTER_BORDER_DISTANCE), 
FN_UNO_FOOTER_BOX,    CPPU_E2T(CPPUTYPE_INT32),    
PropertyAttribute::MAYBEVOID, BORDER_DISTANCE|CONVERT_TWIPS },
-                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_LEFT_BORDER_DISTANCE), FN_UNO_FOOTER_BOX,          
              CPPU_E2T(CPPUTYPE_INT32),       0, LEFT_BORDER_DISTANCE  
|CONVERT_TWIPS },
-                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_RIGHT_BORDER_DISTANCE), FN_UNO_FOOTER_BOX,         
              CPPU_E2T(CPPUTYPE_INT32),       0, RIGHT_BORDER_DISTANCE 
|CONVERT_TWIPS },
-                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_TOP_BORDER_DISTANCE), FN_UNO_FOOTER_BOX,           
              CPPU_E2T(CPPUTYPE_INT32),       0, TOP_BORDER_DISTANCE   
|CONVERT_TWIPS },
-                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_BOTTOM_BORDER_DISTANCE), FN_UNO_FOOTER_BOX,        
              CPPU_E2T(CPPUTYPE_INT32),       0, 
BOTTOM_BORDER_DISTANCE|CONVERT_TWIPS },
-                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_SHADOW_FORMAT), FN_UNO_FOOTER_SHADOW,            
CPPU_E2T(CPPUTYPE_SHADOWFMT),   PROPERTY_NONE, CONVERT_TWIPS},
-                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_BODY_DISTANCE), 
FN_UNO_FOOTER_BODY_DISTANCE,CPPU_E2T(CPPUTYPE_INT32),                    
PROPERTY_NONE ,MID_UP_MARGIN|CONVERT_TWIPS               },
-                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_IS_DYNAMIC_HEIGHT), 
FN_UNO_FOOTER_IS_DYNAMIC_DISTANCE,CPPU_E2T(CPPUTYPE_BOOLEAN),                   
     PROPERTY_NONE ,0                 },
-                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_IS_SHARED), 
FN_UNO_FOOTER_SHARE_CONTENT,CPPU_E2T(CPPUTYPE_BOOLEAN),                      
PROPERTY_NONE ,0                 },
-                                       { SW_PROP_NMID(UNO_NAME_FOOTER_HEIGHT), 
FN_UNO_FOOTER_HEIGHT,           CPPU_E2T(CPPUTYPE_INT32),                       
PROPERTY_NONE ,MID_SIZE_HEIGHT|CONVERT_TWIPS             },
-                                       { SW_PROP_NMID(UNO_NAME_FOOTER_IS_ON), 
FN_UNO_FOOTER_ON,                        CPPU_E2T(CPPUTYPE_BOOLEAN),            
         PROPERTY_NONE ,0                 },
-                    { SW_PROP_NMID(UNO_NAME_FOOTER_DYNAMIC_SPACING), 
FN_UNO_FOOTER_EAT_SPACING,            CPPU_E2T(CPPUTYPE_BOOLEAN),         
PropertyAttribute::MAYBEVOID ,0         },
-
+                    //UUU use real WhichIDs for Header, no longer use 
extra-defined WhichIDs which make handling harder as needed.
+                    // The implementation will decide if these are part of 
Header/Footer or PageStyle depending on the SlotName,
+                    // more precisely on the first characters. Thus it is 
necessary that these are 'Header' for the Header slots
+                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_BACK_COLOR),             RES_BACKGROUND,           
          CPPU_E2T(CPPUTYPE_INT32),                   PROPERTY_NONE 
,MID_BACK_COLOR            },
+                               //      { 
SW_PROP_NMID(UNO_NAME_HEADER_GRAPHIC),                RES_BACKGROUND,         
&,                                                              PROPERTY_NONE, 
MID_GRAPHIC
+                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_GRAPHIC_URL),            RES_BACKGROUND,           
          CPPU_E2T(CPPUTYPE_OUSTRING), PROPERTY_NONE ,MID_GRAPHIC_URL    },
+                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_GRAPHIC_FILTER),         RES_BACKGROUND,           
          CPPU_E2T(CPPUTYPE_OUSTRING), PROPERTY_NONE ,MID_GRAPHIC_FILTER    },
+                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_GRAPHIC_LOCATION),       RES_BACKGROUND,           
          CPPU_E2T(CPPUTYPE_GRAPHICLOC), PROPERTY_NONE ,MID_GRAPHIC_POSITION},
+                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_LEFT_MARGIN),            RES_LR_SPACE,             
      CPPU_E2T(CPPUTYPE_INT32), PROPERTY_NONE, MID_L_MARGIN|CONVERT_TWIPS},
+                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_RIGHT_MARGIN),           RES_LR_SPACE,             
      CPPU_E2T(CPPUTYPE_INT32), PROPERTY_NONE, MID_R_MARGIN|CONVERT_TWIPS},
+                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_BACK_TRANSPARENT),       RES_BACKGROUND,           
          CPPU_E2T(CPPUTYPE_BOOLEAN),                 PROPERTY_NONE 
,MID_GRAPHIC_TRANSPARENT           },
+                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_LEFT_BORDER),            RES_BOX,                  
          CPPU_E2T(CPPUTYPE_BORDERLINE),      0, LEFT_BORDER  |CONVERT_TWIPS },
+                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_RIGHT_BORDER),           RES_BOX,                  
          CPPU_E2T(CPPUTYPE_BORDERLINE),      0, RIGHT_BORDER |CONVERT_TWIPS },
+                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_TOP_BORDER),             RES_BOX,                  
          CPPU_E2T(CPPUTYPE_BORDERLINE),      0, TOP_BORDER   |CONVERT_TWIPS },
+                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_BOTTOM_BORDER),          RES_BOX,                  
          CPPU_E2T(CPPUTYPE_BORDERLINE),      0, BOTTOM_BORDER|CONVERT_TWIPS },
+                    { SW_PROP_NMID(UNO_NAME_HEADER_BORDER_DISTANCE),        
RES_BOX,                        CPPU_E2T(CPPUTYPE_INT32),    
PropertyAttribute::MAYBEVOID, BORDER_DISTANCE|CONVERT_TWIPS },
+                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_LEFT_BORDER_DISTANCE),   RES_BOX,                  
          CPPU_E2T(CPPUTYPE_INT32),   0, LEFT_BORDER_DISTANCE  |CONVERT_TWIPS },
+                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_RIGHT_BORDER_DISTANCE),  RES_BOX,                  
          CPPU_E2T(CPPUTYPE_INT32),   0, RIGHT_BORDER_DISTANCE |CONVERT_TWIPS },
+                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_TOP_BORDER_DISTANCE),    RES_BOX,                  
          CPPU_E2T(CPPUTYPE_INT32),   0, TOP_BORDER_DISTANCE   |CONVERT_TWIPS },
+                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_BOTTOM_BORDER_DISTANCE), RES_BOX,                  
          CPPU_E2T(CPPUTYPE_INT32),   0, BOTTOM_BORDER_DISTANCE|CONVERT_TWIPS },
+                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_SHADOW_FORMAT),          RES_SHADOW,               
          CPPU_E2T(CPPUTYPE_SHADOWFMT),       PROPERTY_NONE, CONVERT_TWIPS},
+                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_BODY_DISTANCE),          RES_UL_SPACE,             
      CPPU_E2T(CPPUTYPE_INT32),                       PROPERTY_NONE 
,MID_LO_MARGIN|CONVERT_TWIPS               },
+                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_IS_DYNAMIC_HEIGHT),      SID_ATTR_PAGE_DYNAMIC,    
      CPPU_E2T(CPPUTYPE_BOOLEAN),                     PROPERTY_NONE ,0          
       },
+                                       { 
SW_PROP_NMID(UNO_NAME_HEADER_IS_SHARED),              SID_ATTR_PAGE_SHARED,     
      CPPU_E2T(CPPUTYPE_BOOLEAN),                     PROPERTY_NONE ,0          
       },
+                                       { SW_PROP_NMID(UNO_NAME_HEADER_HEIGHT), 
                SID_ATTR_PAGE_SIZE,                     
CPPU_E2T(CPPUTYPE_INT32),                       PROPERTY_NONE 
,MID_SIZE_HEIGHT|CONVERT_TWIPS             },
+                                       { SW_PROP_NMID(UNO_NAME_HEADER_IS_ON),  
                SID_ATTR_PAGE_ON,                           
CPPU_E2T(CPPUTYPE_BOOLEAN),                 PROPERTY_NONE ,0                 },
+                    { SW_PROP_NMID(UNO_NAME_HEADER_DYNAMIC_SPACING),        
RES_HEADER_FOOTER_EAT_SPACING,  CPPU_E2T(CPPUTYPE_BOOLEAN),         
PropertyAttribute::MAYBEVOID ,0         },
+
+                    //UUU use real WhichIDs for Footer, see Header (above) for 
more infos
+                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_BACK_COLOR),             RES_BACKGROUND,           
          CPPU_E2T(CPPUTYPE_INT32),                   PROPERTY_NONE 
,MID_BACK_COLOR            },
+                               //      { 
SW_PROP_NMID(UNO_NAME_FOOTER_GRAPHIC),                RES_BACKGROUND,         
&,                                                              PROPERTY_NONE, 
MID_GRAPHIC
+                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_GRAPHIC_URL),            RES_BACKGROUND,           
              CPPU_E2T(CPPUTYPE_OUSTRING), PROPERTY_NONE ,MID_GRAPHIC_URL    },
+                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_GRAPHIC_FILTER),         RES_BACKGROUND,           
              CPPU_E2T(CPPUTYPE_OUSTRING), PROPERTY_NONE ,MID_GRAPHIC_FILTER    
},
+                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_GRAPHIC_LOCATION),       RES_BACKGROUND,           
          CPPU_E2T(CPPUTYPE_GRAPHICLOC), PROPERTY_NONE ,MID_GRAPHIC_POSITION},
+                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_LEFT_MARGIN),            RES_LR_SPACE,             
      CPPU_E2T(CPPUTYPE_INT32), PROPERTY_NONE, MID_L_MARGIN|CONVERT_TWIPS},
+                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_RIGHT_MARGIN),           RES_LR_SPACE,             
      CPPU_E2T(CPPUTYPE_INT32), PROPERTY_NONE, MID_R_MARGIN|CONVERT_TWIPS},
+                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_BACK_TRANSPARENT),       RES_BACKGROUND,           
          CPPU_E2T(CPPUTYPE_BOOLEAN),                 PROPERTY_NONE 
,MID_GRAPHIC_TRANSPARENT           },
+                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_LEFT_BORDER),            RES_BOX,                  
              CPPU_E2T(CPPUTYPE_BORDERLINE),  0, LEFT_BORDER  |CONVERT_TWIPS },
+                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_RIGHT_BORDER),           RES_BOX,                  
              CPPU_E2T(CPPUTYPE_BORDERLINE),  0, RIGHT_BORDER |CONVERT_TWIPS },
+                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_TOP_BORDER),             RES_BOX,                  
              CPPU_E2T(CPPUTYPE_BORDERLINE),  0, TOP_BORDER   |CONVERT_TWIPS },
+                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_BOTTOM_BORDER),          RES_BOX,                  
              CPPU_E2T(CPPUTYPE_BORDERLINE),  0, BOTTOM_BORDER|CONVERT_TWIPS },
+                    { SW_PROP_NMID(UNO_NAME_FOOTER_BORDER_DISTANCE),        
RES_BOX,                        CPPU_E2T(CPPUTYPE_INT32),    
PropertyAttribute::MAYBEVOID, BORDER_DISTANCE|CONVERT_TWIPS },
+                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_LEFT_BORDER_DISTANCE),   RES_BOX,                  
              CPPU_E2T(CPPUTYPE_INT32),       0, LEFT_BORDER_DISTANCE  
|CONVERT_TWIPS },
+                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_RIGHT_BORDER_DISTANCE),  RES_BOX,                  
              CPPU_E2T(CPPUTYPE_INT32),       0, RIGHT_BORDER_DISTANCE 
|CONVERT_TWIPS },
+                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_TOP_BORDER_DISTANCE),    RES_BOX,                  
              CPPU_E2T(CPPUTYPE_INT32),       0, TOP_BORDER_DISTANCE   
|CONVERT_TWIPS },
+                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_BOTTOM_BORDER_DISTANCE), RES_BOX,                  
              CPPU_E2T(CPPUTYPE_INT32),       0, 
BOTTOM_BORDER_DISTANCE|CONVERT_TWIPS },
+                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_SHADOW_FORMAT),          RES_SHADOW,               
          CPPU_E2T(CPPUTYPE_SHADOWFMT),       PROPERTY_NONE, CONVERT_TWIPS},
+                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_BODY_DISTANCE),          RES_UL_SPACE,             
      CPPU_E2T(CPPUTYPE_INT32),                       PROPERTY_NONE 
,MID_UP_MARGIN|CONVERT_TWIPS               },
+                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_IS_DYNAMIC_HEIGHT),      SID_ATTR_PAGE_DYNAMIC,    
      CPPU_E2T(CPPUTYPE_BOOLEAN),                     PROPERTY_NONE ,0          
       },
+                                       { 
SW_PROP_NMID(UNO_NAME_FOOTER_IS_SHARED),              SID_ATTR_PAGE_SHARED,     
      CPPU_E2T(CPPUTYPE_BOOLEAN),                     PROPERTY_NONE ,0          
       },
+                                       { SW_PROP_NMID(UNO_NAME_FOOTER_HEIGHT), 
                SID_ATTR_PAGE_SIZE,                     
CPPU_E2T(CPPUTYPE_INT32),                       PROPERTY_NONE 
,MID_SIZE_HEIGHT|CONVERT_TWIPS             },
+                                       { SW_PROP_NMID(UNO_NAME_FOOTER_IS_ON),  
                SID_ATTR_PAGE_ON,                           
CPPU_E2T(CPPUTYPE_BOOLEAN),                 PROPERTY_NONE ,0                 },
+                    { SW_PROP_NMID(UNO_NAME_FOOTER_DYNAMIC_SPACING),        
RES_HEADER_FOOTER_EAT_SPACING,  CPPU_E2T(CPPUTYPE_BOOLEAN),         
PropertyAttribute::MAYBEVOID ,0         },
 
                                        { SW_PROP_NMID(UNO_NAME_IS_LANDSCAPE), 
SID_ATTR_PAGE,                   CPPU_E2T(CPPUTYPE_BOOLEAN),                    
 PROPERTY_NONE ,MID_PAGE_ORIENTATION   },
                                        { 
SW_PROP_NMID(UNO_NAME_NUMBERING_TYPE), SID_ATTR_PAGE,                         
CPPU_E2T(CPPUTYPE_INT16),                       PROPERTY_NONE , 
MID_PAGE_NUMTYPE           },
@@ -936,7 +971,8 @@ const SfxItemPropertyMapEntry* SwUnoProp
                                        { 
SW_PROP_NMID(UNO_NAME_FOOTNOTE_LINE_TEXT_DISTANCE), FN_PARAM_FTN_INFO,          
      CPPU_E2T(CPPUTYPE_INT32),       PROPERTY_NONE ,         
MID_LINE_TEXT_DIST   |CONVERT_TWIPS },
                                        { 
SW_PROP_NMID(UNO_NAME_FOOTNOTE_LINE_DISTANCE), FN_PARAM_FTN_INFO,             
CPPU_E2T(CPPUTYPE_INT32),       PROPERTY_NONE ,         
MID_LINE_FOOTNOTE_DIST|CONVERT_TWIPS},
                     { SW_PROP_NMID(UNO_NAME_WRITING_MODE), RES_FRAMEDIR, 
CPPU_E2T(CPPUTYPE_INT16), PROPERTY_NONE, 0 },
-                        // writing grid
+
+                    // writing grid
                     { SW_PROP_NMID(UNO_NAME_GRID_COLOR), RES_TEXTGRID, 
CPPU_E2T(CPPUTYPE_INT32), PROPERTY_NONE, MID_GRID_COLOR},
                     { SW_PROP_NMID(UNO_NAME_GRID_LINES), RES_TEXTGRID, 
CPPU_E2T(CPPUTYPE_INT16), PROPERTY_NONE, MID_GRID_LINES},
                     { SW_PROP_NMID(UNO_NAME_GRID_BASE_HEIGHT), RES_TEXTGRID, 
CPPU_E2T(CPPUTYPE_INT32), PROPERTY_NONE, MID_GRID_BASEHEIGHT|CONVERT_TWIPS},
@@ -948,6 +984,72 @@ const SfxItemPropertyMapEntry* SwUnoProp
                     { SW_PROP_NMID(UNO_NAME_GRID_BASE_WIDTH), RES_TEXTGRID, 
CPPU_E2T(CPPUTYPE_INT32), PROPERTY_NONE, MID_GRID_BASEWIDTH|CONVERT_TWIPS},
                     { SW_PROP_NMID(UNO_NAME_GRID_SNAP_TO_CHARS), RES_TEXTGRID, 
CPPU_E2T(CPPUTYPE_BOOLEAN), PROPERTY_NONE, MID_GRID_SNAPTOCHARS},
                     { SW_PROP_NMID(UNO_NAME_GRID_STANDARD_PAGE_MODE), 
RES_TEXTGRID, CPPU_E2T(CPPUTYPE_BOOLEAN), PROPERTY_NONE, 
MID_GRID_STANDARD_MODE},
+
+                    //UUUU added FillProperties for SW, same as 
FILL_PROPERTIES in svx
+                    // but need own defines in Writer due to later association 
of strings
+                    // and uno types (see loop at end of this method and 
definition of SW_PROP_NMID)
+                    // This entry is for adding that properties to style 
import/export
+                    FILL_PROPERTIES_SW
+
+                    //UUUU Added DrawingLayer FillStyle Properties for Header. 
These need an own unique name,
+                    // but reuse the same WhichIDs as the regular fill. The 
implementation will decide to which 
+                    // group of fill properties it belongs based on the start 
of the name (was already done in 
+                    // the implementation partially), thus all SlotNames 
*have* to start with 'Header'
+                    { SW_PROP_NMID(UNO_NAME_HEADER_FILLBMP_LOGICAL_SIZE),      
     XATTR_FILLBMP_SIZELOG,          CPPU_E2T(CPPUTYPE_BOOLEAN) ,        0,  0},
+                    { SW_PROP_NMID(UNO_NAME_HEADER_FILLBMP_OFFSET_X),          
     XATTR_FILLBMP_TILEOFFSETX,      CPPU_E2T(CPPUTYPE_INT32) ,          0,  0},
+                    { SW_PROP_NMID(UNO_NAME_HEADER_FILLBMP_OFFSET_Y),          
     XATTR_FILLBMP_TILEOFFSETY,      CPPU_E2T(CPPUTYPE_INT32) ,          0,  0},
+                    { SW_PROP_NMID(UNO_NAME_HEADER_FILLBMP_POSITION_OFFSET_X), 
     XATTR_FILLBMP_POSOFFSETX,       CPPU_E2T(CPPUTYPE_INT32) ,          0,  0},
+                    { SW_PROP_NMID(UNO_NAME_HEADER_FILLBMP_POSITION_OFFSET_Y), 
     XATTR_FILLBMP_POSOFFSETY,       CPPU_E2T(CPPUTYPE_INT32) ,          0,  0},
+                    { SW_PROP_NMID(UNO_NAME_HEADER_FILLBMP_RECTANGLE_POINT),   
     XATTR_FILLBMP_POS,              CPPU_E2T(CPPUTYPE_RECTANGLEPOINT) , 0,  0},
+                    { SW_PROP_NMID(UNO_NAME_HEADER_FILLBMP_SIZE_X),            
     XATTR_FILLBMP_SIZEX,            CPPU_E2T(CPPUTYPE_INT32) ,          0,  
SFX_METRIC_ITEM},
+                    { SW_PROP_NMID(UNO_NAME_HEADER_FILLBMP_SIZE_Y),            
     XATTR_FILLBMP_SIZEY,            CPPU_E2T(CPPUTYPE_INT32) ,          0,  
SFX_METRIC_ITEM},
+                    { SW_PROP_NMID(UNO_NAME_HEADER_FILLBMP_STRETCH),           
     XATTR_FILLBMP_STRETCH,          CPPU_E2T(CPPUTYPE_BOOLEAN) ,        0,  0},
+                    { SW_PROP_NMID(UNO_NAME_HEADER_FILLBMP_TILE),              
     XATTR_FILLBMP_TILE,             CPPU_E2T(CPPUTYPE_BOOLEAN) ,        0,  0},
+                    { SW_PROP_NMID(UNO_NAME_HEADER_FILLBMP_MODE),              
     OWN_ATTR_FILLBMP_MODE,          CPPU_E2T(CPPUTYPE_BITMAPMODE),      0,  0},
+                    { SW_PROP_NMID(UNO_NAME_HEADER_FILLCOLOR),                 
     XATTR_FILLCOLOR,                CPPU_E2T(CPPUTYPE_INT32),           0,  0},
+                    { SW_PROP_NMID(UNO_NAME_HEADER_FILLBACKGROUND),            
     XATTR_FILLBACKGROUND,           CPPU_E2T(CPPUTYPE_BOOLEAN),         0,  0},
+                    { SW_PROP_NMID(UNO_NAME_HEADER_FILLBITMAP),                
     XATTR_FILLBITMAP,               CPPU_E2T(CPPUTYPE_REFBITMAP),       0,  
MID_BITMAP},
+                    { SW_PROP_NMID(UNO_NAME_HEADER_FILLBITMAPNAME),            
     XATTR_FILLBITMAP,               CPPU_E2T(CPPUTYPE_OUSTRING),        0,  
MID_NAME },
+                    { SW_PROP_NMID(UNO_NAME_HEADER_FILLBITMAPURL),             
     XATTR_FILLBITMAP,               CPPU_E2T(CPPUTYPE_OUSTRING),        0,  
MID_GRAFURL },
+                    { SW_PROP_NMID(UNO_NAME_HEADER_FILLGRADIENTSTEPCOUNT),     
     XATTR_GRADIENTSTEPCOUNT,        CPPU_E2T(CPPUTYPE_INT16),           0,  0},
+                    { SW_PROP_NMID(UNO_NAME_HEADER_FILLGRADIENT),              
     XATTR_FILLGRADIENT,             CPPU_E2T(CPPUTYPE_GRADIENT),        0,  
MID_FILLGRADIENT},
+                    { SW_PROP_NMID(UNO_NAME_HEADER_FILLGRADIENTNAME),          
     XATTR_FILLGRADIENT,             CPPU_E2T(CPPUTYPE_OUSTRING),        0,  
MID_NAME },
+                    { SW_PROP_NMID(UNO_NAME_HEADER_FILLHATCH),                 
     XATTR_FILLHATCH,                CPPU_E2T(CPPUTYPE_HATCH),           0,  
MID_FILLHATCH},
+                    { SW_PROP_NMID(UNO_NAME_HEADER_FILLHATCHNAME),             
     XATTR_FILLHATCH,                CPPU_E2T(CPPUTYPE_OUSTRING),        0,  
MID_NAME },
+                    { SW_PROP_NMID(UNO_NAME_HEADER_FILLSTYLE),                 
     XATTR_FILLSTYLE,                CPPU_E2T(CPPUTYPE_FILLSTYLE),       0,  0},
+                    { SW_PROP_NMID(UNO_NAME_HEADER_FILL_TRANSPARENCE),         
     XATTR_FILLTRANSPARENCE,         CPPU_E2T(CPPUTYPE_INT16),           0,  0},
+                    { SW_PROP_NMID(UNO_NAME_HEADER_FILLTRANSPARENCEGRADIENT),  
     XATTR_FILLFLOATTRANSPARENCE,    CPPU_E2T(CPPUTYPE_GRADIENT),        0,  
MID_FILLGRADIENT},
+                    { 
SW_PROP_NMID(UNO_NAME_HEADER_FILLTRANSPARENCEGRADIENTNAME),   
XATTR_FILLFLOATTRANSPARENCE,    CPPU_E2T(CPPUTYPE_OUSTRING),        0,  
MID_NAME },
+                    { SW_PROP_NMID(UNO_NAME_HEADER_FILLCOLOR_2),               
     XATTR_SECONDARYFILLCOLOR,       CPPU_E2T(CPPUTYPE_INT32),           0,  0},
+
+                    //UUUU Added DrawingLayer FillStyle Properties for Footer, 
similar as for Header (see there)
+                    { SW_PROP_NMID(UNO_NAME_FOOTER_FILLBMP_LOGICAL_SIZE),      
     XATTR_FILLBMP_SIZELOG,          CPPU_E2T(CPPUTYPE_BOOLEAN) ,        0,  0},
+                    { SW_PROP_NMID(UNO_NAME_FOOTER_FILLBMP_OFFSET_X),          
     XATTR_FILLBMP_TILEOFFSETX,      CPPU_E2T(CPPUTYPE_INT32) ,          0,  0},
+                    { SW_PROP_NMID(UNO_NAME_FOOTER_FILLBMP_OFFSET_Y),          
     XATTR_FILLBMP_TILEOFFSETY,      CPPU_E2T(CPPUTYPE_INT32) ,          0,  0},
+                    { SW_PROP_NMID(UNO_NAME_FOOTER_FILLBMP_POSITION_OFFSET_X), 
     XATTR_FILLBMP_POSOFFSETX,       CPPU_E2T(CPPUTYPE_INT32) ,          0,  0},
+                    { SW_PROP_NMID(UNO_NAME_FOOTER_FILLBMP_POSITION_OFFSET_Y), 
     XATTR_FILLBMP_POSOFFSETY,       CPPU_E2T(CPPUTYPE_INT32) ,          0,  0},
+                    { SW_PROP_NMID(UNO_NAME_FOOTER_FILLBMP_RECTANGLE_POINT),   
     XATTR_FILLBMP_POS,              CPPU_E2T(CPPUTYPE_RECTANGLEPOINT) , 0,  0},
+                    { SW_PROP_NMID(UNO_NAME_FOOTER_FILLBMP_SIZE_X),            
     XATTR_FILLBMP_SIZEX,            CPPU_E2T(CPPUTYPE_INT32) ,          0,  
SFX_METRIC_ITEM},
+                    { SW_PROP_NMID(UNO_NAME_FOOTER_FILLBMP_SIZE_Y),            
     XATTR_FILLBMP_SIZEY,            CPPU_E2T(CPPUTYPE_INT32) ,          0,  
SFX_METRIC_ITEM},
+                    { SW_PROP_NMID(UNO_NAME_FOOTER_FILLBMP_STRETCH),           
     XATTR_FILLBMP_STRETCH,          CPPU_E2T(CPPUTYPE_BOOLEAN) ,        0,  0},
+                    { SW_PROP_NMID(UNO_NAME_FOOTER_FILLBMP_TILE),              
     XATTR_FILLBMP_TILE,             CPPU_E2T(CPPUTYPE_BOOLEAN) ,        0,  0},
+                    { SW_PROP_NMID(UNO_NAME_FOOTER_FILLBMP_MODE),              
     OWN_ATTR_FILLBMP_MODE,          CPPU_E2T(CPPUTYPE_BITMAPMODE),      0,  0},
+                    { SW_PROP_NMID(UNO_NAME_FOOTER_FILLCOLOR),                 
     XATTR_FILLCOLOR,                CPPU_E2T(CPPUTYPE_INT32),           0,  0},
+                    { SW_PROP_NMID(UNO_NAME_FOOTER_FILLBACKGROUND),            
     XATTR_FILLBACKGROUND,           CPPU_E2T(CPPUTYPE_BOOLEAN),         0,  0},
+                    { SW_PROP_NMID(UNO_NAME_FOOTER_FILLBITMAP),                
     XATTR_FILLBITMAP,               CPPU_E2T(CPPUTYPE_REFBITMAP),       0,  
MID_BITMAP},
+                    { SW_PROP_NMID(UNO_NAME_FOOTER_FILLBITMAPNAME),            
     XATTR_FILLBITMAP,               CPPU_E2T(CPPUTYPE_OUSTRING),        0,  
MID_NAME },
+                    { SW_PROP_NMID(UNO_NAME_FOOTER_FILLBITMAPURL),             
     XATTR_FILLBITMAP,               CPPU_E2T(CPPUTYPE_OUSTRING),        0,  
MID_GRAFURL },
+                    { SW_PROP_NMID(UNO_NAME_FOOTER_FILLGRADIENTSTEPCOUNT),     
     XATTR_GRADIENTSTEPCOUNT,        CPPU_E2T(CPPUTYPE_INT16),           0,  0},
+                    { SW_PROP_NMID(UNO_NAME_FOOTER_FILLGRADIENT),              
     XATTR_FILLGRADIENT,             CPPU_E2T(CPPUTYPE_GRADIENT),        0,  
MID_FILLGRADIENT},
+                    { SW_PROP_NMID(UNO_NAME_FOOTER_FILLGRADIENTNAME),          
     XATTR_FILLGRADIENT,             CPPU_E2T(CPPUTYPE_OUSTRING),        0,  
MID_NAME },
+                    { SW_PROP_NMID(UNO_NAME_FOOTER_FILLHATCH),                 
     XATTR_FILLHATCH,                CPPU_E2T(CPPUTYPE_HATCH),           0,  
MID_FILLHATCH},
+                    { SW_PROP_NMID(UNO_NAME_FOOTER_FILLHATCHNAME),             
     XATTR_FILLHATCH,                CPPU_E2T(CPPUTYPE_OUSTRING),        0,  
MID_NAME },
+                    { SW_PROP_NMID(UNO_NAME_FOOTER_FILLSTYLE),                 
     XATTR_FILLSTYLE,                CPPU_E2T(CPPUTYPE_FILLSTYLE),       0,  0},
+                    { SW_PROP_NMID(UNO_NAME_FOOTER_FILL_TRANSPARENCE),         
     XATTR_FILLTRANSPARENCE,         CPPU_E2T(CPPUTYPE_INT16),           0,  0},
+                    { SW_PROP_NMID(UNO_NAME_FOOTER_FILLTRANSPARENCEGRADIENT),  
     XATTR_FILLFLOATTRANSPARENCE,    CPPU_E2T(CPPUTYPE_GRADIENT),        0,  
MID_FILLGRADIENT},
+                    { 
SW_PROP_NMID(UNO_NAME_FOOTER_FILLTRANSPARENCEGRADIENTNAME),   
XATTR_FILLFLOATTRANSPARENCE,    CPPU_E2T(CPPUTYPE_OUSTRING),        0,  
MID_NAME },
+                    { SW_PROP_NMID(UNO_NAME_FOOTER_FILLCOLOR_2),               
     XATTR_SECONDARYFILLCOLOR,       CPPU_E2T(CPPUTYPE_INT32),           0,  0},
+
                     {0,0,0,0,0,0}
                                };
                 aMapEntriesArr[nPropertyId] = aPageStyleMap;

Modified: openoffice/trunk/main/sw/source/core/unocore/unoparagraph.cxx
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/sw/source/core/unocore/unoparagraph.cxx?rev=1599233&r1=1599232&r2=1599233&view=diff
==============================================================================
--- openoffice/trunk/main/sw/source/core/unocore/unoparagraph.cxx (original)
+++ openoffice/trunk/main/sw/source/core/unocore/unoparagraph.cxx Mon Jun  2 
15:00:50 2014
@@ -19,8 +19,6 @@
  * 
  *************************************************************/
 
-
-
 // MARKER(update_precomp.py): autogen include statement, do not remove
 #include "precompiled_sw.hxx"
 
@@ -52,11 +50,17 @@
 #include <com/sun/star/text/WrapTextMode.hpp>
 #include <com/sun/star/text/TextContentAnchorType.hpp>
 
+//UUUU
+#include <swunohelper.hxx>
+#include <svx/unobrushitemhelper.hxx>
+#include <editeng/unoipset.hxx>
+#include <svx/xflbstit.hxx>
+#include <svx/xflbmtit.hxx>
+#include <com/sun/star/drawing/BitmapMode.hpp>
 
 using namespace ::com::sun::star;
 using ::rtl::OUString;
 
-
 /* -----------------------------01.12.00 18:09--------------------------------
 
  ---------------------------------------------------------------------------*/
@@ -174,6 +178,13 @@ public:
         throw (beans::UnknownPropertyException, lang::WrappedTargetException,
                 uno::RuntimeException);
 
+    //UUUU
+    void GetSinglePropertyValue_Impl( 
+        const SfxItemPropertySimpleEntry& rEntry,
+        const SfxItemSet& rSet, 
+        uno::Any& rAny ) const
+    throw(uno::RuntimeException);
+
     uno::Sequence< beans::GetDirectPropertyTolerantResult >
         GetPropertyValuesTolerant_Impl(
             const uno::Sequence< ::rtl::OUString >& rPropertyNames,
@@ -481,6 +492,99 @@ throw (beans::PropertyVetoException, lan
 /* -----------------------------02.04.01 11:43--------------------------------
 
  ---------------------------------------------------------------------------*/
+
+//UUUU Support for DrawingLayer FillStyles for GetPropertyValue() usages
+void SwXParagraph::Impl::GetSinglePropertyValue_Impl( 
+    const SfxItemPropertySimpleEntry& rEntry,
+    const SfxItemSet& rSet, 
+    uno::Any& rAny ) const
+throw(uno::RuntimeException)
+{
+    bool bDone(false);
+
+    switch(rEntry.nWID)
+    {
+        case RES_BACKGROUND:
+        {
+            const SvxBrushItem 
aOriginalBrushItem(getSvxBrushItemFromSourceSet(rSet, RES_BACKGROUND));
+            const sal_uInt8 nMemberId(rEntry.nMemberId & (~SFX_METRIC_ITEM));
+
+            if(!aOriginalBrushItem.QueryValue(rAny, nMemberId))
+            {
+                OSL_ENSURE(false, "Error getting attribute from RES_BACKGROUND 
(!)");
+            }
+
+            bDone = true;
+            break;
+        }
+        case OWN_ATTR_FILLBMP_MODE:
+        {
+            const XFillBmpStretchItem* pStretchItem = dynamic_cast< const 
XFillBmpStretchItem* >(&rSet.Get(XATTR_FILLBMP_STRETCH));
+            const XFillBmpTileItem* pTileItem = dynamic_cast< const 
XFillBmpTileItem* >(&rSet.Get(XATTR_FILLBMP_TILE));
+
+            if( pTileItem && pTileItem->GetValue() )
+            {
+                rAny <<= drawing::BitmapMode_REPEAT;
+            }
+            else if( pStretchItem && pStretchItem->GetValue() )
+            {
+                rAny <<= drawing::BitmapMode_STRETCH;
+            }
+            else
+            {
+                rAny <<= drawing::BitmapMode_NO_REPEAT;
+            }
+
+            bDone = true;
+            break;
+        }
+        default: break;
+    }
+
+    if(!bDone)
+    {
+        // fallback to standard get value implementation used before this 
helper was created
+        m_rPropSet.getPropertyValue(rEntry, rSet, rAny);
+
+        if(rEntry.pType && *(rEntry.pType) == ::getCppuType((const 
sal_Int16*)0) && *(rEntry.pType) != rAny.getValueType())
+        {
+            // since the sfx uInt16 item now exports a sal_Int32, we may have 
to fix this here
+            sal_Int32 nValue(0);
+
+            rAny >>= nValue;
+            rAny <<= static_cast< sal_Int16 >(nValue);
+        }
+
+        //UUUU check for needed metric translation
+        if(rEntry.nMemberId & SFX_METRIC_ITEM)
+        {
+            bool bDoIt(true);
+
+            if(XATTR_FILLBMP_SIZEX == rEntry.nWID || XATTR_FILLBMP_SIZEY == 
rEntry.nWID)
+            {
+                // exception: If these ItemTypes are used, do not convert when 
these are negative
+                // since this means they are intended as percent values
+                sal_Int32 nValue = 0;
+
+                if(rAny >>= nValue)
+                {
+                    bDoIt = nValue > 0;
+                }
+            }
+
+            if(bDoIt)
+            {
+                const SfxMapUnit 
eMapUnit(rSet.GetPool()->GetMetric(rEntry.nWID));
+
+                if(eMapUnit != SFX_MAPUNIT_100TH_MM)
+                {
+                    SvxUnoConvertToMM(eMapUnit, rAny);
+                }
+            }
+        }
+    }
+}
+
 uno::Sequence< uno::Any > SwXParagraph::Impl::GetPropertyValues_Impl(
         const uno::Sequence< OUString > & rPropertyNames )
 throw (beans::UnknownPropertyException, lang::WrappedTargetException,
@@ -514,8 +618,8 @@ throw (beans::UnknownPropertyException, 
                 *pEntry, aPam, &(pValues[nProp]), eTemp, &rTxtNode );
             if (!bDone)
             {
-                m_rPropSet.getPropertyValue(
-                    *pEntry, rAttrSet, pValues[nProp]);
+                //UUUU
+                GetSinglePropertyValue_Impl(*pEntry, rAttrSet, pValues[nProp]);
             }
         }
     }
@@ -797,8 +901,8 @@ throw (uno::RuntimeException)
                         // if not found try the real paragraph attributes...
                         if (!bDone)
                         {
-                            m_rPropSet.getPropertyValue(
-                                *pEntry, rValueAttrSet, aValue );
+                            //UUUU
+                            GetSinglePropertyValue_Impl(*pEntry, 
rValueAttrSet, aValue);
                         }
                     }
 
@@ -931,61 +1035,107 @@ throw (beans::UnknownPropertyException, 
 
 //-----------------------------------------------------------------------------
 beans::PropertyState lcl_SwXParagraph_getPropertyState(
-//                                                     SwUnoCrsr& rUnoCrsr,
-                                                       const SwTxtNode& 
rTxtNode,
-                                                       const SwAttrSet** ppSet,
-                            const SfxItemPropertySimpleEntry& rEntry,
-                                                       sal_Bool 
&rAttrSetFetched )
-throw (beans::UnknownPropertyException)
+    // SwUnoCrsr& rUnoCrsr,
+    const SwTxtNode& rTxtNode,
+    const SwAttrSet** ppSet,
+    const SfxItemPropertySimpleEntry& rEntry,
+    sal_Bool &rAttrSetFetched)
+    throw (beans::UnknownPropertyException)
 {
-       beans::PropertyState eRet = beans::PropertyState_DEFAULT_VALUE;
+    beans::PropertyState eRet(beans::PropertyState_DEFAULT_VALUE);
 
-       if(!(*ppSet) && !rAttrSetFetched )
-       {
+    if(!(*ppSet) && !rAttrSetFetched)
+    {
         (*ppSet) = rTxtNode.GetpSwAttrSet();
-               rAttrSetFetched = sal_True;
-       }
-    SwPosition aPos( rTxtNode );
-    SwPaM aPam( aPos );
-    switch( rEntry.nWID )
-       {
-       case FN_UNO_NUM_RULES:
-        // if numbering is set, return it; else do nothing
-        SwUnoCursorHelper::getNumberingProperty( aPam, eRet, NULL );
-        break;
-       case FN_UNO_ANCHOR_TYPES:
-               break;
-       case RES_ANCHOR:
-        if ( MID_SURROUND_SURROUNDTYPE != rEntry.nMemberId )
-                       goto lcl_SwXParagraph_getPropertyStateDEFAULT;
-               break;
-       case RES_SURROUND:
-        if ( MID_ANCHOR_ANCHORTYPE != rEntry.nMemberId )
-                       goto lcl_SwXParagraph_getPropertyStateDEFAULT;
-               break;
-       case FN_UNO_PARA_STYLE:
-       case FN_UNO_PARA_CONDITIONAL_STYLE_NAME:
-               {
-            SwFmtColl* pFmt = SwUnoCursorHelper::GetCurTxtFmtColl(
-                aPam, rEntry.nWID == FN_UNO_PARA_CONDITIONAL_STYLE_NAME);
-                       eRet = pFmt ? beans::PropertyState_DIRECT_VALUE
-                                               : 
beans::PropertyState_AMBIGUOUS_VALUE;
-               }
-               break;
-       case FN_UNO_PAGE_STYLE:
-               {
-                       String sVal;
-            SwUnoCursorHelper::GetCurPageStyle( aPam, sVal );
-                       eRet = sVal.Len() ? beans::PropertyState_DIRECT_VALUE
-                                                         : 
beans::PropertyState_AMBIGUOUS_VALUE;
-               }
-               break;
-       lcl_SwXParagraph_getPropertyStateDEFAULT:
-       default:
-        if((*ppSet) && SFX_ITEM_SET == (*ppSet)->GetItemState(rEntry.nWID, 
sal_False))
-                       eRet = beans::PropertyState_DIRECT_VALUE;
-               break;
-       }
+        rAttrSetFetched = sal_True;
+    }
+
+    SwPosition aPos(rTxtNode);
+    SwPaM aPam(aPos);
+    bool bDone(false);
+
+    switch(rEntry.nWID)
+    {
+        case FN_UNO_NUM_RULES:
+        {
+            // if numbering is set, return it; else do nothing
+            SwUnoCursorHelper::getNumberingProperty(aPam,eRet,NULL);
+            bDone = true;
+            break;
+        }
+        case FN_UNO_ANCHOR_TYPES:
+        {
+            bDone = true;
+            break;
+        }
+        case RES_ANCHOR:
+        {
+            bDone = (MID_SURROUND_SURROUNDTYPE == rEntry.nMemberId);
+            break;
+        }
+        case RES_SURROUND:
+        {
+            bDone = (MID_ANCHOR_ANCHORTYPE == rEntry.nMemberId);
+            break;
+        }
+        case FN_UNO_PARA_STYLE:
+        case FN_UNO_PARA_CONDITIONAL_STYLE_NAME:
+        {
+            SwFmtColl* pFmt = 
SwUnoCursorHelper::GetCurTxtFmtColl(aPam,rEntry.nWID == 
FN_UNO_PARA_CONDITIONAL_STYLE_NAME);
+            eRet = pFmt ? beans::PropertyState_DIRECT_VALUE : 
beans::PropertyState_AMBIGUOUS_VALUE;
+            bDone = true;
+            break;
+        }
+        case FN_UNO_PAGE_STYLE:
+        {
+            String sVal;
+            SwUnoCursorHelper::GetCurPageStyle(aPam,sVal);
+            eRet = sVal.Len() ? beans::PropertyState_DIRECT_VALUE : 
beans::PropertyState_AMBIGUOUS_VALUE;
+            bDone = true;
+            break;
+        }
+
+        //UUUU DrawingLayer PropertyStyle support
+        case OWN_ATTR_FILLBMP_MODE:
+        {
+            if(*ppSet)
+            {
+                if(SFX_ITEM_SET == 
(*ppSet)->GetItemState(XATTR_FILLBMP_STRETCH, false) 
+                    || SFX_ITEM_SET == 
(*ppSet)->GetItemState(XATTR_FILLBMP_TILE, false))
+                {
+                    eRet = beans::PropertyState_DIRECT_VALUE;
+                }
+                else
+                {
+                    eRet = beans::PropertyState_AMBIGUOUS_VALUE;
+                }
+
+                bDone = true;
+            }
+            break;
+        }
+        case RES_BACKGROUND:
+        {
+            if(*ppSet)
+            {
+                if(SWUnoHelper::needToMapFillItemsToSvxBrushItemTypes(**ppSet))
+                {
+                    eRet = beans::PropertyState_DIRECT_VALUE;
+                    bDone = true;
+                }
+            }
+            break;
+        }
+    }
+
+    if(!bDone)
+    {
+        if((*ppSet) && SFX_ITEM_SET == 
(*ppSet)->GetItemState(rEntry.nWID,sal_False))
+        {
+            eRet = beans::PropertyState_DIRECT_VALUE;
+        }
+    }
+
     return eRet;
 }
 
@@ -1102,10 +1252,24 @@ throw (beans::UnknownPropertyException, 
             static_cast<cppu::OWeakObject *>(this));
     }
 
-    if (pEntry->nWID < RES_FRMATR_END)
+    const bool bBelowFrmAtrEnd(pEntry->nWID < RES_FRMATR_END);
+    const bool bDrawingLayerRange(XATTR_FILL_FIRST <= pEntry->nWID && 
XATTR_FILL_LAST >= pEntry->nWID);
+
+    if(bBelowFrmAtrEnd || bDrawingLayerRange)
     {
         SvUShortsSort aWhichIds;
-        aWhichIds.Insert(pEntry->nWID);
+
+        //UUUU For FillBitmapMode two IDs have to be reset (!)
+        if(OWN_ATTR_FILLBMP_MODE == pEntry->nWID)
+        {
+            aWhichIds.Insert(XATTR_FILLBMP_STRETCH);
+            aWhichIds.Insert(XATTR_FILLBMP_TILE);
+        }
+        else
+        {
+            aWhichIds.Insert(pEntry->nWID);
+        }
+
         if (pEntry->nWID < RES_PARATR_BEGIN)
         {
             aCursor.GetDoc()->ResetAttrs(aCursor, sal_True, &aWhichIds);
@@ -1116,20 +1280,24 @@ throw (beans::UnknownPropertyException, 
             // to paragraph boundaries
             SwPosition aStart( *aCursor.Start() );
             SwPosition aEnd  ( *aCursor.End()   );
-            ::std::auto_ptr<SwUnoCrsr> pTemp(
-                aCursor.GetDoc()->CreateUnoCrsr(aStart, sal_False) );
+            ::std::auto_ptr<SwUnoCrsr> pTemp( 
aCursor.GetDoc()->CreateUnoCrsr(aStart, sal_False) );
+
             if(!SwUnoCursorHelper::IsStartOfPara(*pTemp))
             {
                 pTemp->MovePara(fnParaCurr, fnParaStart);
             }
+
             pTemp->SetMark();
             *pTemp->GetPoint() = aEnd;
             //pTemp->Exchange();
+
             SwUnoCursorHelper::SelectPam(*pTemp, true);
+
             if (!SwUnoCursorHelper::IsEndOfPara(*pTemp))
             {
                 pTemp->MovePara(fnParaCurr, fnParaEnd);
             }
+
             pTemp->GetDoc()->ResetAttrs(*pTemp, sal_True, &aWhichIds);
         }
     }
@@ -1167,10 +1335,13 @@ throw (beans::UnknownPropertyException, 
             static_cast<cppu::OWeakObject *>(this));
     }
 
-    if (pEntry->nWID < RES_FRMATR_END)
+    const bool bBelowFrmAtrEnd(pEntry->nWID < RES_FRMATR_END);
+    const bool bDrawingLayerRange(XATTR_FILL_FIRST <= pEntry->nWID && 
XATTR_FILL_LAST >= pEntry->nWID);
+
+    if(bBelowFrmAtrEnd || bDrawingLayerRange)
     {
-        const SfxPoolItem& rDefItem =
-            rTxtNode.GetDoc()->GetAttrPool().GetDefaultItem(pEntry->nWID);
+        const SfxPoolItem& rDefItem = 
rTxtNode.GetDoc()->GetAttrPool().GetDefaultItem(pEntry->nWID);
+
         rDefItem.QueryValue(aRet, pEntry->nMemberId);
     }
 

Modified: openoffice/trunk/main/sw/source/core/unocore/unoprnms.cxx
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/sw/source/core/unocore/unoprnms.cxx?rev=1599233&r1=1599232&r2=1599233&view=diff
==============================================================================
--- openoffice/trunk/main/sw/source/core/unocore/unoprnms.cxx (original)
+++ openoffice/trunk/main/sw/source/core/unocore/unoprnms.cxx Mon Jun  2 
15:00:50 2014
@@ -781,32 +781,87 @@ const SwPropNameTab aPropNameTab = {
 /* 0743 UNO_NAME_INITIALS */            {MAP_CHAR_LEN("Initials")},
 
 //UUUU names for FillAttributes from SVX; use already existing string defines 
from editengine
-/* 0744 UNO_NAME_FILLBMP_LOGICAL_SIZE */ 
{MAP_CHAR_LEN(UNO_NAME_FILLBMP_LOGICAL_SIZE)},
-/* 0745 UNO_NAME_FILLBMP_OFFSET_X */ {MAP_CHAR_LEN(UNO_NAME_FILLBMP_OFFSET_X)},
-/* 0746 UNO_NAME_FILLBMP_OFFSET_Y */ {MAP_CHAR_LEN(UNO_NAME_FILLBMP_OFFSET_Y)},
-/* 0747 UNO_NAME_FILLBMP_POSITION_OFFSET_X */ 
{MAP_CHAR_LEN(UNO_NAME_FILLBMP_POSITION_OFFSET_X)},
-/* 0748 UNO_NAME_FILLBMP_POSITION_OFFSET_Y */ 
{MAP_CHAR_LEN(UNO_NAME_FILLBMP_POSITION_OFFSET_Y)},
-/* 0749 UNO_NAME_FILLBMP_RECTANGLE_POINT */ 
{MAP_CHAR_LEN(UNO_NAME_FILLBMP_RECTANGLE_POINT)},
-/* 0750 UNO_NAME_FILLBMP_SIZE_X */ {MAP_CHAR_LEN(UNO_NAME_FILLBMP_SIZE_X)},
-/* 0751 UNO_NAME_FILLBMP_SIZE_Y */ {MAP_CHAR_LEN(UNO_NAME_FILLBMP_SIZE_Y)},
-/* 0752 UNO_NAME_FILLBMP_STRETCH */ {MAP_CHAR_LEN(UNO_NAME_FILLBMP_STRETCH)},
-/* 0753 UNO_NAME_FILLBMP_TILE */ {MAP_CHAR_LEN(UNO_NAME_FILLBMP_TILE)},
-/* 0754 UNO_NAME_FILLBMP_MODE */ {MAP_CHAR_LEN(UNO_NAME_FILLBMP_MODE)},
-/* 0755 UNO_NAME_FILLCOLOR */ {MAP_CHAR_LEN(UNO_NAME_FILLCOLOR)},
-/* 0756 UNO_NAME_FILLBACKGROUND */ {MAP_CHAR_LEN(UNO_NAME_FILLBACKGROUND)},
-/* 0757 UNO_NAME_FILLBITMAP */ {MAP_CHAR_LEN(UNO_NAME_FILLBITMAP)},
-/* 0758 UNO_NAME_FILLBITMAPNAME */ {MAP_CHAR_LEN(UNO_NAME_FILLBITMAPNAME)},
-/* 0759 UNO_NAME_FILLBITMAPURL */ {MAP_CHAR_LEN(UNO_NAME_FILLBITMAPURL)},
-/* 0760 UNO_NAME_FILLGRADIENTSTEPCOUNT */ 
{MAP_CHAR_LEN(UNO_NAME_FILLGRADIENTSTEPCOUNT)},
-/* 0761 UNO_NAME_FILLGRADIENT */ {MAP_CHAR_LEN(UNO_NAME_FILLGRADIENT)},
-/* 0762 UNO_NAME_FILLGRADIENTNAME */ {MAP_CHAR_LEN(UNO_NAME_FILLGRADIENTNAME)},
-/* 0763 UNO_NAME_FILLHATCH */ {MAP_CHAR_LEN(UNO_NAME_FILLHATCH)},
-/* 0764 UNO_NAME_FILLHATCHNAME */ {MAP_CHAR_LEN(UNO_NAME_FILLHATCHNAME)},
-/* 0765 UNO_NAME_FILLSTYLE */ {MAP_CHAR_LEN(UNO_NAME_FILLSTYLE)},
-/* 0766 UNO_NAME_FILL_TRANSPARENCE */ 
{MAP_CHAR_LEN(UNO_NAME_FILL_TRANSPARENCE)},
-/* 0767 UNO_NAME_FILLTRANSPARENCEGRADIENT */ 
{MAP_CHAR_LEN(UNO_NAME_FILLTRANSPARENCEGRADIENT)},
-/* 0768 UNO_NAME_FILLTRANSPARENCEGRADIENTNAME */ 
{MAP_CHAR_LEN(UNO_NAME_FILLTRANSPARENCEGRADIENTNAME)},
-/* 0769 UNO_NAME_FILLCOLOR_2 */ {MAP_CHAR_LEN(UNO_NAME_FILLCOLOR_2)}
+/* 0744 UNO_NAME_SW_FILLBMP_LOGICAL_SIZE */ 
{MAP_CHAR_LEN(UNO_NAME_FILLBMP_LOGICAL_SIZE)},
+/* 0745 UNO_NAME_SW_FILLBMP_OFFSET_X */ 
{MAP_CHAR_LEN(UNO_NAME_FILLBMP_OFFSET_X)},
+/* 0746 UNO_NAME_SW_FILLBMP_OFFSET_Y */ 
{MAP_CHAR_LEN(UNO_NAME_FILLBMP_OFFSET_Y)},
+/* 0747 UNO_NAME_SW_FILLBMP_POSITION_OFFSET_X */ 
{MAP_CHAR_LEN(UNO_NAME_FILLBMP_POSITION_OFFSET_X)},
+/* 0748 UNO_NAME_SW_FILLBMP_POSITION_OFFSET_Y */ 
{MAP_CHAR_LEN(UNO_NAME_FILLBMP_POSITION_OFFSET_Y)},
+/* 0749 UNO_NAME_SW_FILLBMP_RECTANGLE_POINT */ 
{MAP_CHAR_LEN(UNO_NAME_FILLBMP_RECTANGLE_POINT)},
+/* 0750 UNO_NAME_SW_FILLBMP_SIZE_X */ {MAP_CHAR_LEN(UNO_NAME_FILLBMP_SIZE_X)},
+/* 0751 UNO_NAME_SW_FILLBMP_SIZE_Y */ {MAP_CHAR_LEN(UNO_NAME_FILLBMP_SIZE_Y)},
+/* 0752 UNO_NAME_SW_FILLBMP_STRETCH */ 
{MAP_CHAR_LEN(UNO_NAME_FILLBMP_STRETCH)},
+/* 0753 UNO_NAME_SW_FILLBMP_TILE */ {MAP_CHAR_LEN(UNO_NAME_FILLBMP_TILE)},
+/* 0754 UNO_NAME_SW_FILLBMP_MODE */ {MAP_CHAR_LEN(UNO_NAME_FILLBMP_MODE)},
+/* 0755 UNO_NAME_SW_FILLCOLOR */ {MAP_CHAR_LEN(UNO_NAME_FILLCOLOR)},
+/* 0756 UNO_NAME_SW_FILLBACKGROUND */ {MAP_CHAR_LEN(UNO_NAME_FILLBACKGROUND)},
+/* 0757 UNO_NAME_SW_FILLBITMAP */ {MAP_CHAR_LEN(UNO_NAME_FILLBITMAP)},
+/* 0758 UNO_NAME_SW_FILLBITMAPNAME */ {MAP_CHAR_LEN(UNO_NAME_FILLBITMAPNAME)},
+/* 0759 UNO_NAME_SW_FILLBITMAPURL */ {MAP_CHAR_LEN(UNO_NAME_FILLBITMAPURL)},
+/* 0760 UNO_NAME_SW_FILLGRADIENTSTEPCOUNT */ 
{MAP_CHAR_LEN(UNO_NAME_FILLGRADIENTSTEPCOUNT)},
+/* 0761 UNO_NAME_SW_FILLGRADIENT */ {MAP_CHAR_LEN(UNO_NAME_FILLGRADIENT)},
+/* 0762 UNO_NAME_SW_FILLGRADIENTNAME */ 
{MAP_CHAR_LEN(UNO_NAME_FILLGRADIENTNAME)},
+/* 0763 UNO_NAME_SW_FILLHATCH */ {MAP_CHAR_LEN(UNO_NAME_FILLHATCH)},
+/* 0764 UNO_NAME_SW_FILLHATCHNAME */ {MAP_CHAR_LEN(UNO_NAME_FILLHATCHNAME)},
+/* 0765 UNO_NAME_SW_FILLSTYLE */ {MAP_CHAR_LEN(UNO_NAME_FILLSTYLE)},
+/* 0766 UNO_NAME_SW_FILL_TRANSPARENCE */ 
{MAP_CHAR_LEN(UNO_NAME_FILL_TRANSPARENCE)},
+/* 0767 UNO_NAME_SW_FILLTRANSPARENCEGRADIENT */ 
{MAP_CHAR_LEN(UNO_NAME_FILLTRANSPARENCEGRADIENT)},
+/* 0768 UNO_NAME_SW_FILLTRANSPARENCEGRADIENTNAME */ 
{MAP_CHAR_LEN(UNO_NAME_FILLTRANSPARENCEGRADIENTNAME)},
+/* 0769 UNO_NAME_SW_FILLCOLOR_2 */ {MAP_CHAR_LEN(UNO_NAME_FILLCOLOR_2)},
+
+/* 0770 UNO_NAME_HEADER_FILLBMP_LOGICAL_SIZE */ {MAP_CHAR_LEN("Header" 
UNO_NAME_FILLBMP_LOGICAL_SIZE)},
+/* 0771 UNO_NAME_HEADER_FILLBMP_OFFSET_X */ {MAP_CHAR_LEN("Header" 
UNO_NAME_FILLBMP_OFFSET_X)},
+/* 0772 UNO_NAME_HEADER_FILLBMP_OFFSET_Y */ {MAP_CHAR_LEN("Header" 
UNO_NAME_FILLBMP_OFFSET_Y)},
+/* 0773 UNO_NAME_HEADER_FILLBMP_POSITION_OFFSET_X */ {MAP_CHAR_LEN("Header" 
UNO_NAME_FILLBMP_POSITION_OFFSET_X)},
+/* 0774 UNO_NAME_HEADER_FILLBMP_POSITION_OFFSET_Y */ {MAP_CHAR_LEN("Header" 
UNO_NAME_FILLBMP_POSITION_OFFSET_Y)},
+/* 0775 UNO_NAME_HEADER_FILLBMP_RECTANGLE_POINT */ {MAP_CHAR_LEN("Header" 
UNO_NAME_FILLBMP_RECTANGLE_POINT)},
+/* 0776 UNO_NAME_HEADER_FILLBMP_SIZE_X */ {MAP_CHAR_LEN("Header" 
UNO_NAME_FILLBMP_SIZE_X)},
+/* 0777 UNO_NAME_HEADER_FILLBMP_SIZE_Y */ {MAP_CHAR_LEN("Header" 
UNO_NAME_FILLBMP_SIZE_Y)},
+/* 0778 UNO_NAME_HEADER_FILLBMP_STRETCH */ {MAP_CHAR_LEN("Header" 
UNO_NAME_FILLBMP_STRETCH)},
+/* 0779 UNO_NAME_HEADER_FILLBMP_TILE */ {MAP_CHAR_LEN("Header" 
UNO_NAME_FILLBMP_TILE)},
+/* 0780 UNO_NAME_HEADER_FILLBMP_MODE */ {MAP_CHAR_LEN("Header" 
UNO_NAME_FILLBMP_MODE)},
+/* 0781 UNO_NAME_HEADER_FILLCOLOR */ {MAP_CHAR_LEN("Header" 
UNO_NAME_FILLCOLOR)},
+/* 0782 UNO_NAME_HEADER_FILLBACKGROUND */ {MAP_CHAR_LEN("Header" 
UNO_NAME_FILLBACKGROUND)},
+/* 0783 UNO_NAME_HEADER_FILLBITMAP */ {MAP_CHAR_LEN("Header" 
UNO_NAME_FILLBITMAP)},
+/* 0784 UNO_NAME_HEADER_FILLBITMAPNAME */ {MAP_CHAR_LEN("Header" 
UNO_NAME_FILLBITMAPNAME)},
+/* 0785 UNO_NAME_HEADER_FILLBITMAPURL */ {MAP_CHAR_LEN("Header" 
UNO_NAME_FILLBITMAPURL)},
+/* 0786 UNO_NAME_HEADER_FILLGRADIENTSTEPCOUNT */ {MAP_CHAR_LEN("Header" 
UNO_NAME_FILLGRADIENTSTEPCOUNT)},
+/* 0787 UNO_NAME_HEADER_FILLGRADIENT */ {MAP_CHAR_LEN("Header" 
UNO_NAME_FILLGRADIENT)},
+/* 0788 UNO_NAME_HEADER_FILLGRADIENTNAME */ {MAP_CHAR_LEN("Header" 
UNO_NAME_FILLGRADIENTNAME)},
+/* 0789 UNO_NAME_HEADER_FILLHATCH */ {MAP_CHAR_LEN("Header" 
UNO_NAME_FILLHATCH)},
+/* 0790 UNO_NAME_HEADER_FILLHATCHNAME */ {MAP_CHAR_LEN("Header" 
UNO_NAME_FILLHATCHNAME)},
+/* 0791 UNO_NAME_HEADER_FILLSTYLE */ {MAP_CHAR_LEN("Header" 
UNO_NAME_FILLSTYLE)},
+/* 0792 UNO_NAME_HEADER_FILL_TRANSPARENCE */ {MAP_CHAR_LEN("Header" 
UNO_NAME_FILL_TRANSPARENCE)},
+/* 0793 UNO_NAME_HEADER_FILLTRANSPARENCEGRADIENT */ {MAP_CHAR_LEN("Header" 
UNO_NAME_FILLTRANSPARENCEGRADIENT)},
+/* 0794 UNO_NAME_HEADER_FILLTRANSPARENCEGRADIENTNAME */ {MAP_CHAR_LEN("Header" 
UNO_NAME_FILLTRANSPARENCEGRADIENTNAME)},
+/* 0795 UNO_NAME_HEADER_FILLCOLOR_2 */ {MAP_CHAR_LEN("Header" 
UNO_NAME_FILLCOLOR_2)},
+
+/* 0776 UNO_NAME_FOOTER_FILLBMP_LOGICAL_SIZE */ {MAP_CHAR_LEN("Footer" 
UNO_NAME_FILLBMP_LOGICAL_SIZE)},
+/* 0777 UNO_NAME_FOOTER_FILLBMP_OFFSET_X */ {MAP_CHAR_LEN("Footer" 
UNO_NAME_FILLBMP_OFFSET_X)},
+/* 0778 UNO_NAME_FOOTER_FILLBMP_OFFSET_Y */ {MAP_CHAR_LEN("Footer" 
UNO_NAME_FILLBMP_OFFSET_Y)},
+/* 0779 UNO_NAME_FOOTER_FILLBMP_POSITION_OFFSET_X */ {MAP_CHAR_LEN("Footer" 
UNO_NAME_FILLBMP_POSITION_OFFSET_X)},
+/* 0780 UNO_NAME_FOOTER_FILLBMP_POSITION_OFFSET_Y */ {MAP_CHAR_LEN("Footer" 
UNO_NAME_FILLBMP_POSITION_OFFSET_Y)},
+/* 0781 UNO_NAME_FOOTER_FILLBMP_RECTANGLE_POINT */ {MAP_CHAR_LEN("Footer" 
UNO_NAME_FILLBMP_RECTANGLE_POINT)},
+/* 0782 UNO_NAME_FOOTER_FILLBMP_SIZE_X */ {MAP_CHAR_LEN("Footer" 
UNO_NAME_FILLBMP_SIZE_X)},
+/* 0783 UNO_NAME_FOOTER_FILLBMP_SIZE_Y */ {MAP_CHAR_LEN("Footer" 
UNO_NAME_FILLBMP_SIZE_Y)},
+/* 0784 UNO_NAME_FOOTER_FILLBMP_STRETCH */ {MAP_CHAR_LEN("Footer" 
UNO_NAME_FILLBMP_STRETCH)},
+/* 0785 UNO_NAME_FOOTER_FILLBMP_TILE */ {MAP_CHAR_LEN("Footer" 
UNO_NAME_FILLBMP_TILE)},
+/* 0786 UNO_NAME_FOOTER_FILLBMP_MODE */ {MAP_CHAR_LEN("Footer" 
UNO_NAME_FILLBMP_MODE)},
+/* 0787 UNO_NAME_FOOTER_FILLCOLOR */ {MAP_CHAR_LEN("Footer" 
UNO_NAME_FILLCOLOR)},
+/* 0788 UNO_NAME_FOOTER_FILLBACKGROUND */ {MAP_CHAR_LEN("Footer" 
UNO_NAME_FILLBACKGROUND)},
+/* 0789 UNO_NAME_FOOTER_FILLBITMAP */ {MAP_CHAR_LEN("Footer" 
UNO_NAME_FILLBITMAP)},
+/* 0790 UNO_NAME_FOOTER_FILLBITMAPNAME */ {MAP_CHAR_LEN("Footer" 
UNO_NAME_FILLBITMAPNAME)},
+/* 0791 UNO_NAME_FOOTER_FILLBITMAPURL */ {MAP_CHAR_LEN("Footer" 
UNO_NAME_FILLBITMAPURL)},
+/* 0792 UNO_NAME_FOOTER_FILLGRADIENTSTEPCOUNT */ {MAP_CHAR_LEN("Footer" 
UNO_NAME_FILLGRADIENTSTEPCOUNT)},
+/* 0793 UNO_NAME_FOOTER_FILLGRADIENT */ {MAP_CHAR_LEN("Footer" 
UNO_NAME_FILLGRADIENT)},
+/* 0794 UNO_NAME_FOOTER_FILLGRADIENTNAME */ {MAP_CHAR_LEN("Footer" 
UNO_NAME_FILLGRADIENTNAME)},
+/* 0795 UNO_NAME_FOOTER_FILLHATCH */ {MAP_CHAR_LEN("Footer" 
UNO_NAME_FILLHATCH)},
+/* 0796 UNO_NAME_FOOTER_FILLHATCHNAME */ {MAP_CHAR_LEN("Footer" 
UNO_NAME_FILLHATCHNAME)},
+/* 0797 UNO_NAME_FOOTER_FILLSTYLE */ {MAP_CHAR_LEN("Footer" 
UNO_NAME_FILLSTYLE)},
+/* 0798 UNO_NAME_FOOTER_FILL_TRANSPARENCE */ {MAP_CHAR_LEN("Footer" 
UNO_NAME_FILL_TRANSPARENCE)},
+/* 0799 UNO_NAME_FOOTER_FILLTRANSPARENCEGRADIENT */ {MAP_CHAR_LEN("Footer" 
UNO_NAME_FILLTRANSPARENCEGRADIENT)},
+/* 0800 UNO_NAME_FOOTER_FILLTRANSPARENCEGRADIENTNAME */ {MAP_CHAR_LEN("Footer" 
UNO_NAME_FILLTRANSPARENCEGRADIENTNAME)},
+/* 0801 UNO_NAME_FOOTER_FILLCOLOR_2 */ {MAP_CHAR_LEN("Footer" 
UNO_NAME_FILLCOLOR_2)}
+
 };
 
 const SwPropNameLen& SwGetPropName( sal_uInt16 nId )


Reply via email to