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.schnabel@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
Context
- [Libreoffice] [PATCH] fix for fdo#32421: set indent for footnotes / endnotes to 0.6cm · André Schnabel
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.