[Libreoffice-commits] core.git: sw/inc sw/source

Ahmad H. Al Harthi aalharthi at kacst.edu.sa
Tue Nov 5 07:58:34 CET 2013


 sw/inc/poolfmt.hxx             |    2 +-
 sw/source/core/doc/poolfmt.cxx |   25 +++++++++++++++++--------
 2 files changed, 18 insertions(+), 9 deletions(-)

New commits:
commit 5cf62a6ab450c25eb07a1ec08c857f17f674ef67
Author: Ahmad H. Al Harthi <aalharthi at kacst.edu.sa>
Date:   Mon Nov 4 15:37:48 2013 +0300

    First modification on the default template for the Writer
    
    Headings modified and resized based on discussions at
    http://nabble.documentfoundation.org/Default-Writer-Template-td4076271.html
    
    Change-Id: Iccb2bcceb1bbc135b7b53b887760bf50fae762c0

diff --git a/sw/inc/poolfmt.hxx b/sw/inc/poolfmt.hxx
index 9fcaf0b..842e676 100644
--- a/sw/inc/poolfmt.hxx
+++ b/sw/inc/poolfmt.hxx
@@ -136,7 +136,7 @@ RES_POOLCHR_VERT_NUM,                               ///< Vertical numbering symb
 RES_POOLCHR_NORMAL_END,
 
 RES_POOLCHR_HTML_BEGIN = RES_POOLCHR_BEGIN + 50,    ///< HTML-styles.
-RES_POOLCHR_HTML_EMPHASIS= RES_POOLCHR_HTML_BEGIN,
+RES_POOLCHR_HTML_EMPHASIS = RES_POOLCHR_HTML_BEGIN,
 RES_POOLCHR_HTML_CITIATION,
 RES_POOLCHR_HTML_STRONG,
 RES_POOLCHR_HTML_CODE,
diff --git a/sw/source/core/doc/poolfmt.cxx b/sw/source/core/doc/poolfmt.cxx
index d7995fb..925aa21 100644
--- a/sw/source/core/doc/poolfmt.cxx
+++ b/sw/source/core/doc/poolfmt.cxx
@@ -67,7 +67,7 @@ using namespace ::com::sun::star;
 
 const sal_uInt16 PT_3   =  3 * 20;      //  3 pt
 const sal_uInt16 PT_6   =  6 * 20;      //  6 pt
-const sal_uInt16 PT_7   =  7 * 20;      //  6 pt
+const sal_uInt16 PT_7   =  7 * 20;      //  7 pt
 const sal_uInt16 PT_10  = 10 * 20;      // 10 pt
 const sal_uInt16 PT_12  = 12 * 20;      // 12 pt
 const sal_uInt16 PT_14  = 14 * 20;      // 14 pt
@@ -79,8 +79,8 @@ const sal_uInt16 PT_24  = 24 * 20;      // 24 pt
 
 static const sal_uInt16 aHeadlineSizes[ 2 * MAXLEVEL ] = {
     // we do everything procentual now:
-    115, 100, 100, 85, 85,
-    75,   75,  75, 75, 75,  // normal
+    130, 115, 100, 100, 85,
+    85,   75,  75, 75, 75,  // normal
     PT_24, PT_18, PT_14, PT_12, PT_10,
     PT_7, PT_7, PT_7, PT_7, PT_7            // HTML mode
 };
@@ -487,25 +487,33 @@ SwTxtFmtColl* SwDoc::GetTxtCollFromPool( sal_uInt16 nId, bool bRegardLanguage )
             lcl_SetHeadline( this, pNewColl, aSet, nOutLvlBits, 0, false );
             break;
         case RES_POOLCOLL_HEADLINE2:        // Headinline 2
-            lcl_SetHeadline( this, pNewColl, aSet, nOutLvlBits, 1, true );
+            lcl_SetHeadline( this, pNewColl, aSet, nOutLvlBits, 1, false );
             break;
         case RES_POOLCOLL_HEADLINE3:        // Headinline 3
-            lcl_SetHeadline( this, pNewColl, aSet, nOutLvlBits, 2, false );
+            {
+                Color aCol( COL_GRAY );
+                aSet.Put( SvxColorItem ( aCol, RES_CHRATR_COLOR ) );
+                lcl_SetHeadline( this, pNewColl, aSet, nOutLvlBits, 2, false );
+            }
             break;
         case RES_POOLCOLL_HEADLINE4:        // Headinline 4
-            lcl_SetHeadline( this, pNewColl, aSet, nOutLvlBits, 3, true );
+            {
+                Color aCol( COL_GRAY );
+                aSet.Put( SvxColorItem ( aCol, RES_CHRATR_COLOR ) );
+                lcl_SetHeadline( this, pNewColl, aSet, nOutLvlBits, 3, true );
+            }
             break;
         case RES_POOLCOLL_HEADLINE5:        // Headinline 5
             lcl_SetHeadline( this, pNewColl, aSet, nOutLvlBits, 4, false );
             break;
         case RES_POOLCOLL_HEADLINE6:        // Headinline 6
-            lcl_SetHeadline( this, pNewColl, aSet, nOutLvlBits, 5, false );
+            lcl_SetHeadline( this, pNewColl, aSet, nOutLvlBits, 5, true );
             break;
         case RES_POOLCOLL_HEADLINE7:        // Headinline 7
             lcl_SetHeadline( this, pNewColl, aSet, nOutLvlBits, 6, false );
             break;
         case RES_POOLCOLL_HEADLINE8:        // Headinline 8
-            lcl_SetHeadline( this, pNewColl, aSet, nOutLvlBits, 7, false );
+            lcl_SetHeadline( this, pNewColl, aSet, nOutLvlBits, 7, true );
             break;
         case RES_POOLCOLL_HEADLINE9:        // Headinline 9
             lcl_SetHeadline( this, pNewColl, aSet, nOutLvlBits, 8, false );
@@ -547,6 +555,7 @@ SwTxtFmtColl* SwDoc::GetTxtCollFromPool( sal_uInt16 nId, bool bRegardLanguage )
             break;
 
         case RES_POOLCOLL_FOOTNOTE:             // paragraph style Footnote
+            aSet.Put( SvxEscapementItem( DFLT_ESC_AUTO_SUPER, 58, RES_CHRATR_ESCAPEMENT ) );
         case RES_POOLCOLL_ENDNOTE:              // paragraph style Endnote
             {
                 SvxLRSpaceItem aLR( RES_LR_SPACE );


More information about the Libreoffice-commits mailing list