[Libreoffice-commits] .: 3 commits - cui/source officecfg/registry svtools/inc svtools/source svx/source sw/inc sw/source

Cédric Bosdonnat cbosdo at kemper.freedesktop.org
Thu Aug 18 05:35:13 PDT 2011


 cui/source/inc/helpid.hrc                              |    2 
 cui/source/options/optcolor.cxx                        |   11 +
 cui/source/options/optcolor.hrc                        |   31 ++-
 cui/source/options/optcolor.src                        |  133 ++++++++---------
 officecfg/registry/data/org/openoffice/Office/UI.xcu   |    5 
 officecfg/registry/schema/org/openoffice/Office/UI.xcs |   10 +
 svtools/inc/svtools/colorcfg.hxx                       |    1 
 svtools/source/config/colorcfg.cxx                     |    2 
 svx/source/svdraw/svdorect.cxx                         |    5 
 sw/inc/viewopt.hxx                                     |    2 
 sw/source/core/layout/paintfrm.cxx                     |    7 
 sw/source/ui/config/viewopt.cxx                        |    9 +
 12 files changed, 136 insertions(+), 82 deletions(-)

New commits:
commit d40dce0f0f00b88dd645a0f334e3d7b2d6af6515
Author: Cédric Bosdonnat <cedric.bosdonnat.ooo at free.fr>
Date:   Thu Aug 18 14:33:48 2011 +0200

    Header/Footer: moved the decorator color to the options

diff --git a/cui/source/inc/helpid.hrc b/cui/source/inc/helpid.hrc
index dff7325..e0415de 100644
--- a/cui/source/inc/helpid.hrc
+++ b/cui/source/inc/helpid.hrc
@@ -104,6 +104,7 @@
 #define HID_COLORPAGE_WRITERNOTESINDICATOR_LB "CUI_HID_COLORPAGE_WRITERNOTESINDICATOR_LB"
 #define HID_COLORPAGE_WRITERSCRIPTINDICATOR_LB "CUI_HID_COLORPAGE_WRITERSCRIPTINDICATOR_LB"
 #define HID_COLORPAGE_WRITERSECTIONBOUNDARIES_LB "CUI_HID_COLORPAGE_WRITERSECTIONBOUNDARIES_LB"
+#define HID_COLORPAGE_WRITERHEADERFOOTERMARK_LB "CUI_HID_COLORPAGE_WRITERHEADERFOOTERMARK_LB"
 #define HID_COLORPAGE_WRITERPAGEBREAKS_LB "CUI_HID_COLORPAGE_WRITERPAGEBREAKS_LB"
 #define HID_COLORPAGE_HTMLSGML_LB "CUI_HID_COLORPAGE_HTMLSGML_LB"
 #define HID_COLORPAGE_HTMLCOMMENT_LB "CUI_HID_COLORPAGE_HTMLCOMMENT_LB"
@@ -145,6 +146,7 @@
 #define HID_COLORPAGE_WRITERNOTESINDICATOR_CB "CUI_HID_COLORPAGE_WRITERNOTESINDICATOR_CB"
 #define HID_COLORPAGE_WRITERSCRIPTINDICATOR_CB "CUI_HID_COLORPAGE_WRITERSCRIPTINDICATOR_CB"
 #define HID_COLORPAGE_WRITERSECTIONBOUNDARIES_CB "CUI_HID_COLORPAGE_WRITERSECTIONBOUNDARIES_CB"
+#define HID_COLORPAGE_WRITERHEADERFOOTERMARK_CB "CUI_HID_COLORPAGE_WRITERHEADERFOOTERMARK_CB"
 #define HID_COLORPAGE_WRITERPAGEBREAKS_CB "CUI_HID_COLORPAGE_WRITERPAGEBREAKS_CB"
 #define HID_COLORPAGE_HTMLSGML_CB "CUI_HID_COLORPAGE_HTMLSGML_CB"
 #define HID_COLORPAGE_HTMLCOMMENT_CB "CUI_HID_COLORPAGE_HTMLCOMMENT_CB"
diff --git a/cui/source/options/optcolor.cxx b/cui/source/options/optcolor.cxx
index 3fda175..7199c22 100644
--- a/cui/source/options/optcolor.cxx
+++ b/cui/source/options/optcolor.cxx
@@ -77,6 +77,7 @@ const char* aColorLBHids[] =
      HID_COLORPAGE_WRITERNOTESINDICATOR_LB,
      HID_COLORPAGE_WRITERSCRIPTINDICATOR_LB,
      HID_COLORPAGE_WRITERSECTIONBOUNDARIES_LB,
+     HID_COLORPAGE_WRITERHEADERFOOTERMARK_LB,
      HID_COLORPAGE_WRITERPAGEBREAKS_LB,
      HID_COLORPAGE_HTMLSGML_LB,
      HID_COLORPAGE_HTMLCOMMENT_LB,
@@ -121,6 +122,7 @@ const char* aColorCBHids[] =
      HID_COLORPAGE_WRITERNOTESINDICATOR_CB,
      HID_COLORPAGE_WRITERSCRIPTINDICATOR_CB,
      HID_COLORPAGE_WRITERSECTIONBOUNDARIES_CB,
+     HID_COLORPAGE_WRITERHEADERFOOTERMARK_CB,
      HID_COLORPAGE_WRITERPAGEBREAKS_CB,
      HID_COLORPAGE_HTMLSGML_CB,
      HID_COLORPAGE_HTMLCOMMENT_CB,
@@ -218,6 +220,9 @@ class ColorConfigWindow_Impl : public Window
     CheckBox        aWrtSectionBoundCB;
     ColorListBox    aWrtSectionBoundLB;
     Window          aWrtSectionBoundWN;
+    FixedText       aWrtHeaderFooterMarkFT;
+    ColorListBox    aWrtHeaderFooterMarkLB;
+    Window          aWrtHeaderFooterMarkWN;
     FixedText       aWrtPageBreaksFT;
     ColorListBox    aWrtPageBreaksLB;
     Window          aWrtPageBreaksWN;
@@ -524,6 +529,9 @@ ColorConfigWindow_Impl::ColorConfigWindow_Impl(Window* pParent, const ResId& rRe
         aWrtSectionBoundCB(this, ResId(      CB_WRITERSECTIONBOUNDARIES, *rResId.GetResMgr())),
         aWrtSectionBoundLB(this, ResId(      LB_WRITERSECTIONBOUNDARIES, *rResId.GetResMgr())),
         aWrtSectionBoundWN(this, ResId(      WN_WRITERSECTIONBOUNDARIES, *rResId.GetResMgr())),
+        aWrtHeaderFooterMarkFT(this, ResId(      FT_WRITERHEADERFOOTERMARK, *rResId.GetResMgr())),
+        aWrtHeaderFooterMarkLB(this, ResId(      LB_WRITERHEADERFOOTERMARK, *rResId.GetResMgr())),
+        aWrtHeaderFooterMarkWN(this, ResId(      WN_WRITERHEADERFOOTERMARK, *rResId.GetResMgr())),
         aWrtPageBreaksFT(this, ResId(      FT_WRITERPAGEBREAKS, *rResId.GetResMgr())),
         aWrtPageBreaksLB(this, ResId(      LB_WRITERPAGEBREAKS, *rResId.GetResMgr())),
         aWrtPageBreaksWN(this, ResId(      WN_WRITERPAGEBREAKS, *rResId.GetResMgr())),
@@ -664,6 +672,7 @@ ColorConfigWindow_Impl::ColorConfigWindow_Impl(Window* pParent, const ResId& rRe
     aFixedTexts[CALCREFERENCE    ]=& aCalcReferenceFT;
     aFixedTexts[CALCNOTESBACKGROUND  ]=& aCalcNotesBackFT;
     aFixedTexts[WRITERPAGEBREAKS] = &aWrtPageBreaksFT;
+    aFixedTexts[WRITERHEADERFOOTERMARK] = &aWrtHeaderFooterMarkFT;
     aFixedTexts[DRAWGRID            ] = &aDrawGridFT             ;
     aFixedTexts[BASICIDENTIFIER ] = &aBasicIdentifierFT;
     aFixedTexts[BASICCOMMENT    ] = &aBasicCommentFT;
@@ -698,6 +707,7 @@ ColorConfigWindow_Impl::ColorConfigWindow_Impl(Window* pParent, const ResId& rRe
     aColorBoxes[WRITERSCRIPTINDICATOR    ] = &aWrtScriptIndicatorLB           ;
     aColorBoxes[WRITERSECTIONBOUNDARIES  ] = &aWrtSectionBoundLB           ;
     aColorBoxes[WRITERPAGEBREAKS] = &aWrtPageBreaksLB;
+    aColorBoxes[WRITERHEADERFOOTERMARK] = &aWrtHeaderFooterMarkLB;
     aColorBoxes[HTMLSGML            ] = &aHTMLSGMLLB             ;
     aColorBoxes[HTMLCOMMENT         ] = &aHTMLCommentLB          ;
     aColorBoxes[HTMLKEYWORD         ] = &aHTMLKeywdLB            ;
@@ -744,6 +754,7 @@ ColorConfigWindow_Impl::ColorConfigWindow_Impl(Window* pParent, const ResId& rRe
     aWindows[WRITERSCRIPTINDICATOR    ] = &aWrtScriptIndicatorWN           ;
     aWindows[WRITERSECTIONBOUNDARIES  ] = &aWrtSectionBoundWN           ;
     aWindows[WRITERPAGEBREAKS] = &aWrtPageBreaksWN;
+    aWindows[WRITERHEADERFOOTERMARK] = &aWrtHeaderFooterMarkWN;
     aWindows[HTMLSGML            ] = &aHTMLSGMLWN             ;
     aWindows[HTMLCOMMENT         ] = &aHTMLCommentWN          ;
     aWindows[HTMLKEYWORD         ] = &aHTMLKeywdWN            ;
diff --git a/cui/source/options/optcolor.hrc b/cui/source/options/optcolor.hrc
index 3b96231..c0aedb1 100644
--- a/cui/source/options/optcolor.hrc
+++ b/cui/source/options/optcolor.hrc
@@ -96,20 +96,23 @@
 #define LB_WRITERPAGEBREAKS         83
 #define FT_WRITERPAGEBREAKS         84
 #define WN_WRITERPAGEBREAKS         85
-
-#define FT_HTML                     88
-#define FT_HTMLSGML                 89
-#define LB_HTMLSGML                 90
-#define WN_HTMLSGML                 91
-#define FT_HTMLCOMMENT              92
-#define LB_HTMLCOMMENT              93
-#define WN_HTMLCOMMENT              94
-#define FT_HTMLKEYWORD              95
-#define LB_HTMLKEYWORD              96
-#define WN_HTMLKEYWORD              97
-#define FT_HTMLUNKNOWN              98
-#define LB_HTMLUNKNOWN              99
-#define WN_HTMLUNKNOWN             100
+#define LB_WRITERHEADERFOOTERMARK   86
+#define FT_WRITERHEADERFOOTERMARK   87
+#define WN_WRITERHEADERFOOTERMARK   88
+
+#define FT_HTML                     89
+#define FT_HTMLSGML                 90
+#define LB_HTMLSGML                 91
+#define WN_HTMLSGML                 92
+#define FT_HTMLCOMMENT              93
+#define LB_HTMLCOMMENT              94
+#define WN_HTMLCOMMENT              95
+#define FT_HTMLKEYWORD              96
+#define LB_HTMLKEYWORD              97
+#define WN_HTMLKEYWORD              98
+#define FT_HTMLUNKNOWN              99
+#define LB_HTMLUNKNOWN             100
+#define WN_HTMLUNKNOWN             101
 
 #define FT_CALC                    103
 #define FT_CALCGRID                104
diff --git a/cui/source/options/optcolor.src b/cui/source/options/optcolor.src
index 201495f..284be8a 100644
--- a/cui/source/options/optcolor.src
+++ b/cui/source/options/optcolor.src
@@ -271,238 +271,245 @@ TabPage RID_SVXPAGE_COLORCONFIG
             };
             LB_WN( WRITERSECTIONBOUNDARIES, 17 )
 
-            FixedText FT_WRITERPAGEBREAKS
+            FixedText FT_WRITERHEADERFOOTERMARK
             {
                 FT_POS_SIZE( 18 );
+                Text [ en-US ] = "Headers and Footer delimiter";
+            };
+            LB_WN( WRITERHEADERFOOTERMARK, 18 )
+
+            FixedText FT_WRITERPAGEBREAKS
+            {
+                FT_POS_SIZE( 19 );
                 Text [ en-US ] = "Page and column breaks";
             };
-            LB_WN( WRITERPAGEBREAKS, 18 )
+            LB_WN( WRITERPAGEBREAKS, 19 )
 
             FixedText FT_WRITERDIRECTCURSOR
             {
-                FT_POS_SIZE( 19 );
+                FT_POS_SIZE( 20 );
                 Text [ en-US ] = "Direct cursor";
             };
-            LB_WN( WRITERDIRECTCURSOR, 19 )
+            LB_WN( WRITERDIRECTCURSOR, 20 )
 
             FixedText FT_HTML
             {
-                FT_SEP_POS_SIZE( 20 );
+                FT_SEP_POS_SIZE( 21 );
                 Text [ en-US ] = "HTML Document";
             };
 
             FixedText FT_HTMLSGML
             {
-                FT_POS_SIZE( 21 );
+                FT_POS_SIZE( 22 );
                 Text [ en-US ] = "SGML syntax highlighting";
             };
-            LB_WN( HTMLSGML, 21 )
+            LB_WN( HTMLSGML, 22 )
 
             FixedText FT_HTMLCOMMENT
             {
-                FT_POS_SIZE( 22 );
+                FT_POS_SIZE( 23 );
                 Text [ en-US ] = "Comment highlighting";
             };
-            LB_WN( HTMLCOMMENT, 22 )
+            LB_WN( HTMLCOMMENT, 23 )
 
             FixedText FT_HTMLKEYWORD
             {
-                FT_POS_SIZE( 23 );
+                FT_POS_SIZE( 24 );
                 Text [ en-US ] = "Keyword highlighting";
             };
-            LB_WN( HTMLKEYWORD, 23 )
+            LB_WN( HTMLKEYWORD, 24 )
 
             FixedText FT_HTMLUNKNOWN
             {
-                FT_POS_SIZE( 24 );
+                FT_POS_SIZE( 25 );
                 Text [ en-US ] = "Text";
             };
-            LB_WN( HTMLUNKNOWN, 24 )
+            LB_WN( HTMLUNKNOWN, 25 )
 
             FixedText FT_CALC
             {
-                FT_SEP_POS_SIZE( 25 );
+                FT_SEP_POS_SIZE( 26 );
                 Text [ en-US ] = "Spreadsheet";
             };
 
             FixedText FT_CALCGRID
             {
-                FT_POS_SIZE( 26 );
+                FT_POS_SIZE( 27 );
                 Text [ en-US ] = "Grid lines";
             };
-            LB_WN( CALCGRID, 26 )
+            LB_WN( CALCGRID, 27 )
 
             FixedText FT_CALCPAGEBREAK
             {
-                FT_POS_SIZE( 27 );
+                FT_POS_SIZE( 28 );
                 Text [ en-US ] = "Page breaks";
             };
-            LB_WN( CALCPAGEBREAK, 27 )
+            LB_WN( CALCPAGEBREAK, 28 )
 
             FixedText FT_CALCPAGEBREAKMANUAL
             {
-                FT_POS_SIZE( 28 );
+                FT_POS_SIZE( 29 );
                 Text [ en-US ] = "Manual page breaks";
             };
-            LB_WN( CALCPAGEBREAKMANUAL, 28 )
+            LB_WN( CALCPAGEBREAKMANUAL, 29 )
 
             FixedText FT_CALCPAGEBREAKAUTO
             {
-                FT_POS_SIZE( 29 );
+                FT_POS_SIZE( 30 );
                 Text [ en-US ] = "Automatic page breaks";
             };
-            LB_WN( CALCPAGEBREAKAUTO, 29)
+            LB_WN( CALCPAGEBREAKAUTO, 30)
 
             FixedText FT_CALCDETECTIVE
             {
-                FT_POS_SIZE( 30 );
+                FT_POS_SIZE( 31 );
                 Text [ en-US ] = "Detective";
             };
-            LB_WN( CALCDETECTIVE, 30 )
+            LB_WN( CALCDETECTIVE, 31 )
 
             FixedText FT_CALCDETECTIVEERROR
             {
-                FT_POS_SIZE( 31 );
+                FT_POS_SIZE( 32 );
                 Text [ en-US ] = "Detective error";
             };
-            LB_WN( CALCDETECTIVEERROR, 31 )
+            LB_WN( CALCDETECTIVEERROR, 32 )
 
             FixedText FT_CALCREFERENCE
             {
-                FT_POS_SIZE( 32 );
+                FT_POS_SIZE( 33 );
                 Text [ en-US ] = "References";
             };
-            LB_WN( CALCREFERENCE, 32 )
+            LB_WN( CALCREFERENCE, 33 )
 
             FixedText FT_CALCNOTESBACKGROUND
             {
-                FT_POS_SIZE( 33 );
+                FT_POS_SIZE( 34 );
                 Text [ en-US ] = "Notes background";
             };
-            LB_WN( CALCNOTESBACKGROUND, 33 )
+            LB_WN( CALCNOTESBACKGROUND, 34 )
 
             FixedText FT_DRAW
             {
-                FT_SEP_POS_SIZE( 34 );
+                FT_SEP_POS_SIZE( 35 );
                 Text [ en-US ] = "Drawing / Presentation";
             };
 
             FixedText FT_DRAWGRID
             {
-                FT_POS_SIZE( 35 );
+                FT_POS_SIZE( 36 );
                 Text [ en-US ] = "Grid";
             };
-            LB_WN( DRAWGRID, 35 )
+            LB_WN( DRAWGRID, 36 )
 
             FixedText FT_BASIC
             {
-                FT_SEP_POS_SIZE( 36 );
+                FT_SEP_POS_SIZE( 37 );
                 Text [ en-US ] = "Basic Syntax Highlighting";
             };
 
             FixedText FT_BASICIDENTIFIER
             {
-                FT_POS_SIZE( 37 );
+                FT_POS_SIZE( 38 );
                 Text [ en-US ] = "Identifier";
             };
-            LB_WN( BASICIDENTIFIER, 37 )
+            LB_WN( BASICIDENTIFIER, 38 )
 
             FixedText FT_BASICCOMMENT
             {
-                FT_POS_SIZE( 38 );
+                FT_POS_SIZE( 39 );
                 Text [ en-US ] = "Comment";
             };
-            LB_WN( BASICCOMMENT, 38 )
+            LB_WN( BASICCOMMENT, 39 )
 
             FixedText FT_BASICNUMBER
             {
-                FT_POS_SIZE( 39 );
+                FT_POS_SIZE( 40 );
                 Text [ en-US ] = "Number";
             };
-            LB_WN( BASICNUMBER, 39)
+            LB_WN( BASICNUMBER, 40)
 
             FixedText FT_BASICSTRING
             {
-                FT_POS_SIZE( 40 );
+                FT_POS_SIZE( 41 );
                 Text [ en-US ] = "String";
             };
-            LB_WN( BASICSTRING, 40 )
+            LB_WN( BASICSTRING, 41 )
 
             FixedText FT_BASICOPERATOR
             {
-                FT_POS_SIZE( 41 );
+                FT_POS_SIZE( 42 );
                 Text [ en-US ] = "Operator";
             };
-            LB_WN( BASICOPERATOR, 41 )
+            LB_WN( BASICOPERATOR, 42 )
 
             FixedText FT_BASICKEYWORD
             {
-                FT_POS_SIZE( 42 );
+                FT_POS_SIZE( 43 );
                 Text [ en-US ] = "Reserved expression";
             };
-            LB_WN( BASICKEYWORD, 42 )
+            LB_WN( BASICKEYWORD, 43 )
 
             FixedText FT_BASICERROR
             {
-                FT_POS_SIZE( 43 );
+                FT_POS_SIZE( 44 );
                 Text [ en-US ] = "Error";
             };
-            LB_WN( BASICERROR, 43 )
+            LB_WN( BASICERROR, 44 )
 
             FixedText FT_SQL_COMMAND
             {
-                FT_SEP_POS_SIZE( 44 );
+                FT_SEP_POS_SIZE( 45 );
                 Text [ en-US ] = "SQL Syntax Highlighting";
             };
 
             FixedText FT_SQLIDENTIFIER
             {
-                FT_POS_SIZE( 45 );
+                FT_POS_SIZE( 46 );
                 Text [ en-US ] = "Identifier";
             };
-            LB_WN( SQLIDENTIFIER, 45 )
+            LB_WN( SQLIDENTIFIER, 46 )
 
             FixedText FT_SQLNUMBER
             {
-                FT_POS_SIZE( 46 );
+                FT_POS_SIZE( 47 );
                 Text [ en-US ] = "Number";
             };
-            LB_WN( SQLNUMBER, 46 )
+            LB_WN( SQLNUMBER, 47 )
 
             FixedText FT_SQLSTRING
             {
-                FT_POS_SIZE( 47 );
+                FT_POS_SIZE( 48 );
                 Text [ en-US ] = "String";
             };
-            LB_WN( SQLSTRING, 47 )
+            LB_WN( SQLSTRING, 48 )
 
             FixedText FT_SQLOPERATOR
             {
-                FT_POS_SIZE( 48 );
+                FT_POS_SIZE( 49 );
                 Text [ en-US ] = "Operator";
             };
-            LB_WN( SQLOPERATOR, 48 )
+            LB_WN( SQLOPERATOR, 49 )
 
             FixedText FT_SQLKEYWORD
             {
-                FT_POS_SIZE( 49 );
+                FT_POS_SIZE( 50 );
                 Text [ en-US ] = "Keyword";
             };
-            LB_WN( SQLKEYWORD, 49 )
+            LB_WN( SQLKEYWORD, 50 )
 
             FixedText FT_SQLPARAMETER
             {
-                FT_POS_SIZE( 50 );
+                FT_POS_SIZE( 51 );
                 Text [ en-US ] = "Parameter";
             };
-            LB_WN( SQLPARAMETER, 50 )
+            LB_WN( SQLPARAMETER, 51 )
 
             FixedText FT_SQLCOMMENT
             {
-                FT_POS_SIZE( 51 );
+                FT_POS_SIZE( 52 );
                 Text [ en-US ] = "Comment";
             };
-            LB_WN( SQLCOMMENT, 51 )
+            LB_WN( SQLCOMMENT, 52 )
 
             String ST_EXTENSION
             {
diff --git a/officecfg/registry/data/org/openoffice/Office/UI.xcu b/officecfg/registry/data/org/openoffice/Office/UI.xcu
index da7caf1..a9b0b7d 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI.xcu
@@ -421,6 +421,11 @@
                         <value xsi:nil="true"/>
                     </prop>
                 </node>
+                <node oor:name="WriterHeaderFooterMark">
+                    <prop oor:name="Color">
+                        <value xsi:nil="true"/>
+                    </prop>
+                </node>
                 <node oor:name="HTMLSGML">
                     <prop oor:name="Color">
                         <value xsi:nil="true"/>
diff --git a/officecfg/registry/schema/org/openoffice/Office/UI.xcs b/officecfg/registry/schema/org/openoffice/Office/UI.xcs
index 1784d82..e62ea8f 100644
--- a/officecfg/registry/schema/org/openoffice/Office/UI.xcs
+++ b/officecfg/registry/schema/org/openoffice/Office/UI.xcs
@@ -319,6 +319,16 @@
 					</info>
 				</prop>
 			</group>
+			<group oor:name="WriterHeaderFooterMark">
+				<info>
+					<desc>Specifies the settings for the header/footer mark in Writer.</desc>
+				</info>
+				<prop oor:name="Color" oor:type="xs:int">
+					<info>
+						<desc>Specifies the color used for the header/footer mark.</desc>
+					</info>
+				</prop>
+			</group>
 			<group oor:name="HTMLSGML">
 				<info>
 					<desc>Specifies the settings used for SGML in HTML documents.</desc>
diff --git a/svtools/inc/svtools/colorcfg.hxx b/svtools/inc/svtools/colorcfg.hxx
index 09daa6a..847aeca 100644
--- a/svtools/inc/svtools/colorcfg.hxx
+++ b/svtools/inc/svtools/colorcfg.hxx
@@ -58,6 +58,7 @@ enum ColorConfigEntry
     WRITERDIRECTCURSOR        ,
     WRITERSCRIPTINDICATOR,
     WRITERSECTIONBOUNDARIES,
+    WRITERHEADERFOOTERMARK,
     WRITERPAGEBREAKS,
     HTMLSGML            ,
     HTMLCOMMENT         ,
diff --git a/svtools/source/config/colorcfg.cxx b/svtools/source/config/colorcfg.cxx
index ebefe66..65f948d 100644
--- a/svtools/source/config/colorcfg.cxx
+++ b/svtools/source/config/colorcfg.cxx
@@ -144,6 +144,7 @@ uno::Sequence< OUString> ColorConfig_Impl::GetPropertyNames(const rtl::OUString&
         { RTL_CONSTASCII_USTRINGPARAM("/WriterDirectCursor")    ,sal_True },
         { RTL_CONSTASCII_USTRINGPARAM("/WriterScriptIndicator")    ,sal_False },
         { RTL_CONSTASCII_USTRINGPARAM("/WriterSectionBoundaries")    ,sal_True },
+        { RTL_CONSTASCII_USTRINGPARAM("/WriterHeaderFooterMark")    ,sal_False },
         { RTL_CONSTASCII_USTRINGPARAM("/WriterPageBreaks")    ,sal_False },
         { RTL_CONSTASCII_USTRINGPARAM("/HTMLSGML")        ,sal_False },
         { RTL_CONSTASCII_USTRINGPARAM("/HTMLComment")     ,sal_False },
@@ -436,6 +437,7 @@ Color ColorConfig::GetDefaultColor(ColorConfigEntry eEntry)
         0, // WRITERDIRECTCURSOR
         COL_GREEN,  //WRITERSCRIPTINDICATOR
         0xc0c0c0, //WRITERSECTIONBOUNDARIES
+        0x0369a3, //WRITERHEADERFOOTERMARK,
         COL_BLUE, //WRITERPAGEBREAKS,
         COL_LIGHTBLUE, // HTMLSGML
         COL_LIGHTGREEN, // HTMLCOMMENT
diff --git a/sw/inc/viewopt.hxx b/sw/inc/viewopt.hxx
index 0dc9241..38590c7 100644
--- a/sw/inc/viewopt.hxx
+++ b/sw/inc/viewopt.hxx
@@ -136,6 +136,7 @@ class SwViewOption
     static Color    aPageBreakColor;
     static Color    aScriptIndicatorColor;
     static Color    aShadowColor;
+    static Color    aHeaderFooterMarkColor;
 
     static sal_Int32 nAppearanceFlags;
 protected:
@@ -569,6 +570,7 @@ public:
     static Color&   GetFieldShadingsColor();
     static Color&   GetSectionBoundColor();
     static Color&   GetPageBreakColor();
+    static Color&   GetHeaderFooterMarkColor();
 
     static sal_Bool     IsAppearanceFlag(sal_Int32 nFlag);
 
diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx
index 1d27d0e..15cd791 100755
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -3316,7 +3316,7 @@ drawinglayer::primitive2d::Primitive2DSequence lcl_CreateHeaderFooterSeparatorPr
     aText += rStyleName;
 
     // Colors
-    basegfx::BColor aLineColor( 3.0 / 255.0, 105.0 / 255.0, 163.0 / 255.0 );
+    basegfx::BColor aLineColor = SwViewOption::GetHeaderFooterMarkColor().getBColor();
     basegfx::BColor aHslLine = basegfx::tools::rgb2hsl( aLineColor );
     aHslLine.setZ( aHslLine.getZ( ) * 2.5 );
     basegfx::BColor aFillColor = basegfx::tools::hsl2rgb( aHslLine );
diff --git a/sw/source/ui/config/viewopt.cxx b/sw/source/ui/config/viewopt.cxx
index 581ed2a..2406518 100644
--- a/sw/source/ui/config/viewopt.cxx
+++ b/sw/source/ui/config/viewopt.cxx
@@ -73,6 +73,7 @@ Color SwViewOption::aSectionBoundColor(COL_LIGHTGRAY);
 Color SwViewOption::aPageBreakColor(COL_BLUE);
 Color SwViewOption::aScriptIndicatorColor(COL_GREEN);
 Color SwViewOption::aShadowColor(COL_GRAY);
+Color SwViewOption::aHeaderFooterMarkColor(COL_BLUE);
 
 sal_Int32 SwViewOption::nAppearanceFlags = VIEWOPT_DOC_BOUNDARIES|VIEWOPT_OBJECT_BOUNDARIES;
 sal_uInt16 SwViewOption::nPixelTwips = 0;   // one pixel on the screen
@@ -444,6 +445,11 @@ Color& SwViewOption::GetPageBreakColor()
     return aPageBreakColor;
 }
 
+Color& SwViewOption::GetHeaderFooterMarkColor()
+{
+    return aHeaderFooterMarkColor;
+}
+
 void SwViewOption::ApplyColorConfigValues(const svtools::ColorConfig& rConfig )
 {
     aDocColor.SetColor(rConfig.GetColorValue(svtools::DOCCOLOR).nColor);
@@ -509,6 +515,9 @@ void SwViewOption::ApplyColorConfigValues(const svtools::ColorConfig& rConfig )
     aValue = rConfig.GetColorValue(svtools::WRITERPAGEBREAKS);
     aPageBreakColor.SetColor(aValue.nColor);
 
+    aValue = rConfig.GetColorValue(svtools::WRITERHEADERFOOTERMARK);
+    aHeaderFooterMarkColor.SetColor(aValue.nColor);
+
     aScriptIndicatorColor.SetColor(rConfig.GetColorValue(svtools::WRITERSCRIPTINDICATOR).nColor);
 }
 
commit 81ad146539b27391689aceb5770e8eaa382ba58b
Author: Cédric Bosdonnat <cedric.bosdonnat.ooo at free.fr>
Date:   Thu Aug 18 09:54:40 2011 +0200

    fdo#37403: even better SdrRectObj::operator= thanks to Stephan

diff --git a/svx/source/svdraw/svdorect.cxx b/svx/source/svdraw/svdorect.cxx
index 6c44a22..1572f12 100644
--- a/svx/source/svdraw/svdorect.cxx
+++ b/svx/source/svdraw/svdorect.cxx
@@ -124,13 +124,12 @@ SdrRectObj& SdrRectObj::operator=(const SdrRectObj& rCopy)
 
     SdrTextObj::operator=( rCopy );
 
-    if(mpXPoly)
-        delete mpXPoly;
+    delete mpXPoly;
 
     if ( rCopy.mpXPoly )
         mpXPoly = new XPolygon( *rCopy.mpXPoly );
     else
-        mpXPoly = rCopy.mpXPoly;
+        mpXPoly = NULL;
 
     return *this;
 }
commit 0b4780143017b8d69f8c081f4b7dc6a685b9fbb1
Author: Cédric Bosdonnat <cedric.bosdonnat.ooo at free.fr>
Date:   Wed Aug 17 15:28:18 2011 +0200

    Headers/Footers: set only the main color and play with luminance for the other

diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx
index b699bfd..1d27d0e 100755
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -123,6 +123,7 @@
 #include <basegfx/matrix/b2dhommatrix.hxx>
 #include <basegfx/matrix/b2dhommatrixtools.hxx>
 #include <basegfx/polygon/b2dpolygon.hxx>
+#include <basegfx/color/bcolortools.hxx>
 
 using namespace ::editeng;
 using namespace ::com::sun::star;
@@ -3316,7 +3317,9 @@ drawinglayer::primitive2d::Primitive2DSequence lcl_CreateHeaderFooterSeparatorPr
 
     // Colors
     basegfx::BColor aLineColor( 3.0 / 255.0, 105.0 / 255.0, 163.0 / 255.0 );
-    basegfx::BColor aFillColor( 170.0 / 255.0, 220.0 / 255.0, 247.0 / 255.0 );
+    basegfx::BColor aHslLine = basegfx::tools::rgb2hsl( aLineColor );
+    aHslLine.setZ( aHslLine.getZ( ) * 2.5 );
+    basegfx::BColor aFillColor = basegfx::tools::hsl2rgb( aHslLine );
 
     // Dashed line in twips
     std::vector< double > aStrokePattern;


More information about the Libreoffice-commits mailing list