Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hi Kendy,  :)

Dne 13.11.2013 14:11, Jan Holesovsky napsal(a):
I wouldn't use it - as you can see, anything can go wrong there... But I am more curious why do you need to do an own swlo.dll in the first place? Cannot you just up-stream the functionality you need there? All the best, Kendy

sorry I did not get to respond sooner. I am attaching my trivial change. However it took me long to discover what exactly to change.

It fixes compatibility problem with footnotes in Microsoft Word (.doc) documents. Fix removes indentation between footnote number and footnote text. But, it means footnotes in all other documents will be displayed incorrectly. I tried to think about some universal solution but I have not come up with any. Imported Word documents may become .odt documents upon saving. The change is also necessary to be able to have a footnote number e.g. 1) where the number is in superscript and ) symbol manually added in normal script.

At least what could be done is to add a new compatibility option to source code and to the UI.

Regards
Pavel

diff --git a/sw/source/core/text/porfld.cxx b/sw/source/core/text/porfld.cxx
index 37c3ce0..850794b 100644
--- a/sw/source/core/text/porfld.cxx
+++ b/sw/source/core/text/porfld.cxx
@@ -584,9 +584,9 @@ sal_Bool SwNumberPortion::Format( SwTxtFormatInfo &rInf )

         if ( !mbLabelAlignmentPosAndSpaceModeActive )
         {
- if ( !rInf.GetTxtFrm()->GetTxtNode()->getIDocumentSettingAccess()->get(IDocumentSettingAccess::IGNORE_FIRST_LINE_INDENT_IN_NUMBERING) && + if ( !rInf.GetTxtFrm()->GetTxtNode()->getIDocumentSettingAccess()->get(IDocumentSettingAccess::IGNORE_FIRST_LINE_INDENT_IN_NUMBERING)
                  // #i32902#
-                 !IsFtnNumPortion() )
+                 || IsFtnNumPortion())
             {
                 nDiff = rInf.Left()
                     + rInf.GetTxtFrm()->GetTxtNode()->

Context


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.