diff options
author | Christian Lippka <cl@openoffice.org> | 2001-06-25 14:35:20 +0000 |
---|---|---|
committer | Christian Lippka <cl@openoffice.org> | 2001-06-25 14:35:20 +0000 |
commit | 3adcbc15b09f7d09aa6065d25491274264f848ed (patch) | |
tree | 135d080eac8c1a873dd93ca90f7bc4d892d48bf3 /svx | |
parent | 5ab3ec81f73b1d96f78c6091aa15e8dcc24f8c66 (diff) |
#87795# added cjk compression
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdmodel.cxx | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdmodel.cxx b/svx/source/svdraw/svdmodel.cxx index 28fbd23e9191..616c32a6845d 100644 --- a/svx/source/svdraw/svdmodel.cxx +++ b/svx/source/svdraw/svdmodel.cxx @@ -2,9 +2,9 @@ * * $RCSfile: svdmodel.cxx,v $ * - * $Revision: 1.27 $ + * $Revision: 1.28 $ * - * last change: $Author: cl $ $Date: 2001-06-14 15:07:24 $ + * last change: $Author: cl $ $Date: 2001-06-25 15:35:20 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -96,6 +96,10 @@ #include <eeitemid.hxx> +#ifndef _SVX_ASIANCFG_HXX +#include "asiancfg.hxx" +#endif + #ifndef _SVX_FONTITEM_HXX //autogen #include "fontitem.hxx" #endif @@ -339,6 +343,9 @@ void SdrModel::ImpCtor(SfxItemPool* pPool, SvPersist* pPers, mpForbiddenCharactersTable = NULL; mbModelLocked = FALSE; + SvxAsianConfig aAsian; + mnCharCompressType = aAsian.GetCharDistanceCompression(); + #ifdef __LITTLEENDIAN nStreamNumberFormat=NUMBERFORMAT_INT_LITTLEENDIAN; #endif @@ -850,6 +857,7 @@ void SdrModel::ImpSetOutlinerDefaults( SdrOutliner* pOutliner, BOOL bInit ) pOutliner->SetRefDevice(GetRefDevice()); pOutliner->SetForbiddenCharsTable(GetForbiddenCharsTable()); + pOutliner->SetAsianCompressionMode( mnCharCompressType ); if ( !GetRefDevice() ) { @@ -2543,6 +2551,15 @@ vos::ORef<SvxForbiddenCharactersTable> SdrModel::GetForbiddenCharsTable() const return mpForbiddenCharactersTable; } +void SdrModel::SetCharCompressType( UINT16 nType ) +{ + if( nType != mnCharCompressType ) + { + ImpSetOutlinerDefaults( pDrawOutliner ); + ImpSetOutlinerDefaults( pHitTestOutliner ); + } +} + void SdrModel::ReformatAllTextObjects() { ImpReformatAllTextObjects(); |