diff options
author | Andreas Martens <ama@openoffice.org> | 2000-12-14 13:49:12 +0000 |
---|---|---|
committer | Andreas Martens <ama@openoffice.org> | 2000-12-14 13:49:12 +0000 |
commit | 13d97b394c0db2ca9c5ef64f7f1d9f24ad14323e (patch) | |
tree | ad180d6f2d5f7975d73d114166677e84c9211275 /sw | |
parent | 627a003fe433a1ca1c4316f2dfaf9f3f83b48433 (diff) |
New: Vertical font output direction
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/inc/swfont.hxx | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/sw/source/core/inc/swfont.hxx b/sw/source/core/inc/swfont.hxx index f1ca7a571c12..6bec96156d6e 100644 --- a/sw/source/core/inc/swfont.hxx +++ b/sw/source/core/inc/swfont.hxx @@ -2,9 +2,9 @@ * * $RCSfile: swfont.hxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: ama $ $Date: 2000-11-24 15:55:16 $ + * last change: $Author: ama $ $Date: 2000-12-14 14:49:12 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -164,6 +164,7 @@ class SwSubFont : public SvxFont inline void SetStrikeout( const FontStrikeout eStrikeout ); inline void SetItalic( const FontItalic eItalic ); inline void SetOutline( const BOOL bOutline ); + inline void SetVertical( const BOOL bNew ); inline void SetShadow( const BOOL bShadow ); inline void SetAutoKern( const BOOL bAutoKern ); inline void SetWordLineMode( const BOOL bWordLineMode ); @@ -263,6 +264,7 @@ public: inline void SetUnderColor( const Color &rColor ) { aUnderColor = rColor; } inline void SetStrikeout( const FontStrikeout eStrikeout ); inline void SetOutline( const BOOL bOutline ); + inline void SetVertical( const BOOL bNew ); inline void SetShadow( const BOOL bShadow ); inline void SetAutoKern( const BOOL bAutoKern ); inline void SetTransparent( const BOOL bTrans ); @@ -816,6 +818,24 @@ inline void SwFont::SetNoCol( const BOOL bNew ) bNoColReplace = bNew; } +inline void SwSubFont::SetVertical( const BOOL bNew ) +{ + pMagic = 0; + Font::SetVertical( bNew ); + Font::SetOrientation( bNew ? 2700 : 0 ); +} + +inline void SwFont::SetVertical( const BOOL bNew ) +{ + if( bNew != aSub[0].IsVertical() ) + { + bFntChg = TRUE; + aSub[0].SetVertical( bNew ); + aSub[1].SetVertical( bNew ); + aSub[2].SetVertical( bNew ); + } +} + /************************************************************************* * class SvStatistics *************************************************************************/ |