Kaydet (Commit) c45ff459 authored tarafından Jens-Heiner Rechtien's avatar Jens-Heiner Rechtien

INTEGRATION: CWS os7 (1.35.138); FILE MERGED

2003/04/03 07:14:12 pb 1.35.138.2: fix: #106769# include cjk- AND ctloptions to change lastline entry
2003/03/28 13:47:48 pb 1.35.138.1: fix: #106769# new entry for lastline listbox 'default' instead of 'Left/Top'
üst 74b5e158
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: paragrph.cxx,v $ * $RCSfile: paragrph.cxx,v $
* *
* $Revision: 1.35 $ * $Revision: 1.36 $
* *
* last change: $Author: cl $ $Date: 2002-12-11 13:36:07 $ * last change: $Author: hr $ $Date: 2003-04-04 18:01:52 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -1041,6 +1041,11 @@ void SvxStdParagraphTabPage::EnableAbsLineDist(long nMinTwip) ...@@ -1041,6 +1041,11 @@ void SvxStdParagraphTabPage::EnableAbsLineDist(long nMinTwip)
nMinFixDist = nMinTwip; nMinFixDist = nMinTwip;
} }
#define LASTLINEPOS_DEFAULT 0
#define LASTLINEPOS_LEFT 1
#define LASTLINECOUNT_OLD 3
#define LASTLINECOUNT_NEW 4
// class SvxParaAlignTabPage ------------------------------------------------ // class SvxParaAlignTabPage ------------------------------------------------
...@@ -1068,16 +1073,28 @@ SvxParaAlignTabPage::SvxParaAlignTabPage( Window* pParent, const SfxItemSet& rSe ...@@ -1068,16 +1073,28 @@ SvxParaAlignTabPage::SvxParaAlignTabPage( Window* pParent, const SfxItemSet& rSe
aTextDirectionFT ( this, ResId( FT_TEXTDIRECTION )), aTextDirectionFT ( this, ResId( FT_TEXTDIRECTION )),
aTextDirectionLB ( this, ResId( LB_TEXTDIRECTION )) aTextDirectionLB ( this, ResId( LB_TEXTDIRECTION ))
{ {
SvtLanguageOptions aCJKOptions; SvtLanguageOptions aLangOptions;
if(aCJKOptions.IsAsianTypographyEnabled()) USHORT nLastLinePos = LASTLINEPOS_DEFAULT;
if ( aLangOptions.IsAsianTypographyEnabled() || aLangOptions.IsCTLFontEnabled() )
{ {
String sLeft(ResId(ST_LEFTALIGN_ASIAN)); String sLeft(ResId(ST_LEFTALIGN_ASIAN));
aLeft.SetText(sLeft); aLeft.SetText(sLeft);
aRight.SetText(String(ResId(ST_RIGHTALIGN_ASIAN))); aRight.SetText(String(ResId(ST_RIGHTALIGN_ASIAN)));
sLeft.EraseAllChars( '~' ); sLeft.EraseAllChars( '~' );
aLastLineLB.RemoveEntry( 0 );
aLastLineLB.InsertEntry( sLeft, 0 ); if ( aLastLineLB.GetEntryCount() == LASTLINECOUNT_OLD )
{
aLastLineLB.RemoveEntry( 0 );
aLastLineLB.InsertEntry( sLeft, 0 );
}
else
nLastLinePos = LASTLINEPOS_LEFT;
} }
// remove "Default" or "Left" entry, depends on CJKOptions
if ( aLastLineLB.GetEntryCount() == LASTLINECOUNT_NEW )
aLastLineLB.RemoveEntry( nLastLinePos );
FreeResource(); FreeResource();
Link aLink = LINK( this, SvxParaAlignTabPage, AlignHdl_Impl ); Link aLink = LINK( this, SvxParaAlignTabPage, AlignHdl_Impl );
aLeft.SetClickHdl( aLink ); aLeft.SetClickHdl( aLink );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment