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


Hi,

(this is my first commit here so please be patient ...)

I'am missing the kerning feature for cells showing the result of a formula. 
The attached git diff gives an idea about what I want.

It compiles for me, shows the tab "Font Position" at the right place but does 
not do the kerning.
Any idea how to proceeed?

BTW 1)
The kerning feature ("Font Position)" is available for pure text in a cell via 
clicking input line, format->charakter->font position as you can see in
libreoffice/core/sc/source/ui/src/textdlgs.src
libreoffice/core/cui/source/tabpages/chardlg.cxx (line 2978)

BTW 2)
Applying fromat->cell for a text cell resets kerning which was selected before 
by format->character.
This can be considered as a bug, solved by implementing this idea here.

BTW 3)
libreoffice/core/cui/source/dialogs/sdrcelldlg.cxx
does have a very similar dialog. Is there some overlap?

TIA!

Bernhard


diff --git a/sc/source/ui/attrdlg/attrdlg.cxx 
b/sc/source/ui/attrdlg/attrdlg.cxx
index 2e22761..87e95be 100644
--- a/sc/source/ui/attrdlg/attrdlg.cxx
+++ b/sc/source/ui/attrdlg/attrdlg.cxx
@@ -68,6 +68,8 @@ ScAttrDlg::ScAttrDlg( SfxViewFrame*     pFrameP,
     AddTabPage( TP_FONT, pFact->GetTabPageCreatorFunc( RID_SVXPAGE_CHAR_NAME 
), 0 );
     OSL_ENSURE(pFact->GetTabPageCreatorFunc( RID_SVXPAGE_CHAR_EFFECTS ), 
"GetTabPageCreatorFunc fail!");
     AddTabPage( TP_FONTEFF, pFact->GetTabPageCreatorFunc( 
RID_SVXPAGE_CHAR_EFFECTS ), 0 );
+    OSL_ENSURE(pFact->GetTabPageCreatorFunc( RID_SVXPAGE_CHAR_POSITION ), 
"GetTabPageCreatorFunc fail!");
+    AddTabPage( TP_FONTPOS, pFact->GetTabPageCreatorFunc( 
RID_SVXPAGE_CHAR_POSITION ), 0 );
     OSL_ENSURE(pFact->GetTabPageCreatorFunc( RID_SVXPAGE_ALIGNMENT ), 
"GetTabPageCreatorFunc fail!");
     AddTabPage( TP_ALIGNMENT, pFact->GetTabPageCreatorFunc( 
RID_SVXPAGE_ALIGNMENT ),    0 );
 
diff --git a/sc/source/ui/inc/attrdlg.hrc b/sc/source/ui/inc/attrdlg.hrc
index 4c36756..7dd5273 100644
--- a/sc/source/ui/inc/attrdlg.hrc
+++ b/sc/source/ui/inc/attrdlg.hrc
@@ -26,6 +26,7 @@
 #define TP_PROTECTION   6
 #define TP_FONTEFF      7
 #define TP_ASIAN        8
+#define TP_FONTPOS      9
 
 //================================================
 // Protected cell TabPage:
diff --git a/sc/source/ui/src/attrdlg.src b/sc/source/ui/src/attrdlg.src
index a96bad9..da87300 100644
--- a/sc/source/ui/src/attrdlg.src
+++ b/sc/source/ui/src/attrdlg.src
@@ -65,6 +65,12 @@ TabDialog RID_SCDLG_ATTR
             };
             PageItem
             {
+                Identifier = TP_FONTPOS ;
+                PageResID = 264 ;
+                Text [ en-US ] = "Font Position";
+            };
+            PageItem
+            {
                 Identifier = TP_ALIGNMENT ;
                 PageResID = 258 ;
                 Text [ en-US ] = "Alignment" ;


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.