Hi,

as I was trying to get an idea how (and where)  the "internal" writer
styles are implemented. So I found fdo#32421 a really easy hack :)

Patch is attached. It is just setting the indent for Footnote / Endnote
styles to 0.6cm (previously 0.5cm). It has not big effect to footnotes
<=99 but makes them prettier for numbers >=100.

The modification does only have local effect and will only be seen for
new writer files (imo no need to migrate any files or care about
document fidelity for existing files).

Patch is contributed under LGPLv3+/MPL.

regards,

André
>From 1feeb60b76dbf3b97029bcc003481ac3520da8e5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Schnabel?= <andre.schna...@gmx.net>
Date: Tue, 21 Jun 2011 16:55:41 +0200
Subject: [PATCH] fix for fdo#32421: set indent for footnotes / endnotes to 0.6cm

with this footnotes with number >99 will look much better
---
 sw/source/core/doc/poolfmt.cxx |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/sw/source/core/doc/poolfmt.cxx b/sw/source/core/doc/poolfmt.cxx
index 54e9a93..e97b56b 100644
--- a/sw/source/core/doc/poolfmt.cxx
+++ b/sw/source/core/doc/poolfmt.cxx
@@ -575,12 +575,12 @@ SwTxtFmtColl* SwDoc::GetTxtCollFromPool( sal_uInt16 nId, bool bRegardLanguage )
         }
         break;
 
-    case RES_POOLCOLL_FOOTNOTE:				// Fussnote
-    case RES_POOLCOLL_ENDNOTE:
+    case RES_POOLCOLL_FOOTNOTE:             // paragraph style Footnote
+    case RES_POOLCOLL_ENDNOTE:              // paragraph style Endnote
         {
             SvxLRSpaceItem aLR( RES_LR_SPACE );
-            aLR.SetTxtFirstLineOfst( -(short)GetMetricVal( CM_05 ));
-            aLR.SetTxtLeft( GetMetricVal( CM_05 ));
+            aLR.SetTxtFirstLineOfst( -(short)( GetMetricVal( CM_05 ) + GetMetricVal( CM_01 ) ) );
+            aLR.SetTxtLeft( GetMetricVal( CM_05 ) + GetMetricVal( CM_01 ) );
             SetAllScriptItem( aSet, SvxFontHeightItem( PT_10, 100, RES_CHRATR_FONTSIZE ) );
             aSet.Put( aLR );
             SwFmtLineNumber aLN; aLN.SetCountLines( sal_False );
-- 
1.7.3.4

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to