diff options
author | Malte Timmermann <mt@openoffice.org> | 2000-11-20 10:53:50 +0000 |
---|---|---|
committer | Malte Timmermann <mt@openoffice.org> | 2000-11-20 10:53:50 +0000 |
commit | c41853c90dd188acf3df76c7d5e386e479354a08 (patch) | |
tree | 3678332f7438d575bd0c863cc7d83a63c5fbdd52 /svx/source/editeng/editobj.cxx | |
parent | add dde-links (diff) | |
download | core-c41853c90dd188acf3df76c7d5e386e479354a08.tar.gz core-c41853c90dd188acf3df76c7d5e386e479354a08.zip |
Start vertical writing
Diffstat (limited to 'svx/source/editeng/editobj.cxx')
-rw-r--r-- | svx/source/editeng/editobj.cxx | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/svx/source/editeng/editobj.cxx b/svx/source/editeng/editobj.cxx index 9868169e4027..80fece0f6ca9 100644 --- a/svx/source/editeng/editobj.cxx +++ b/svx/source/editeng/editobj.cxx @@ -2,9 +2,9 @@ * * $RCSfile: editobj.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: mt $ $Date: 2000-11-02 15:25:36 $ + * last change: $Author: mt $ $Date: 2000-11-20 11:53:50 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -424,6 +424,14 @@ void EditTextObject::SetObjectSettings( ULONG n ) DBG_ERROR( "V-Methode direkt vom EditTextObject!" ); } +BOOL EditTextObject::IsVertical() const +{ +#if SUPD >= 614 + DBG_ERROR( "V-Methode direkt vom EditTextObject!" ); +#endif + return FALSE; +} + BOOL EditTextObject::Store( SvStream& rOStream ) const { if ( rOStream.GetError() ) @@ -562,6 +570,7 @@ BinTextObject::BinTextObject( SfxItemPool* pP ) : pPool = EditEngine::CreatePool(); bOwnerOfPool = TRUE; } + bVertical = FALSE; } BinTextObject::BinTextObject( const BinTextObject& r ) : @@ -634,6 +643,15 @@ void BinTextObject::SetObjectSettings( ULONG n ) nObjSettings = n; } +BOOL BinTextObject::IsVertical() const +{ + return bVertical; +} + +void BinTextObject::SetVertical( BOOL b ) +{ + bVertical = b; +} void BinTextObject::DeleteContents() { @@ -1014,7 +1032,7 @@ void __EXPORT BinTextObject::ChangeStyleSheetName( SfxStyleFamily eFamily, void __EXPORT BinTextObject::StoreData( SvStream& rOStream ) const { - USHORT nVer = 600; + USHORT nVer = 601; rOStream << nVer; rOStream << bOwnerOfPool; @@ -1079,6 +1097,9 @@ void __EXPORT BinTextObject::StoreData( SvStream& rOStream ) const // Ab 600 rOStream << nUserType; rOStream << nObjSettings; + + // Ab 601 + rOStream << bVertical; } void __EXPORT BinTextObject::CreateData( SvStream& rIStream ) @@ -1197,6 +1218,11 @@ void __EXPORT BinTextObject::CreateData( SvStream& rIStream ) rIStream >> nObjSettings; } + if ( nVersion >= 601 ) + { + rIStream >> bVertical; + } + // Ab 500 werden die Tabs anders interpretiert: TabPos + LI, vorher nur TabPos. // Wirkt nur wenn auch Tab-Positionen eingestellt wurden, nicht beim DefTab. if ( nVersion < 500 ) |