diff options
author | jp <jp@openoffice.org> | 2000-10-23 10:58:55 +0000 |
---|---|---|
committer | jp <jp@openoffice.org> | 2000-10-23 10:58:55 +0000 |
commit | 287c954f17e1237c4b8b166de85caf006579b447 (patch) | |
tree | 11380a34c0667585e2265c3c5f0ed9b6a6b81914 /sw/inc/txtatr.hxx | |
parent | 976d4ae701ac2b43859012eb1cd5032aae614598 (diff) |
new attributes Ruby and 2Lines
Diffstat (limited to 'sw/inc/txtatr.hxx')
-rw-r--r-- | sw/inc/txtatr.hxx | 52 |
1 files changed, 50 insertions, 2 deletions
diff --git a/sw/inc/txtatr.hxx b/sw/inc/txtatr.hxx index 732c54bb0ce5..3c622cc9255b 100644 --- a/sw/inc/txtatr.hxx +++ b/sw/inc/txtatr.hxx @@ -2,9 +2,9 @@ * * $RCSfile: txtatr.hxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: ama $ $Date: 2000-09-25 12:00:00 $ + * last change: $Author: jp $ $Date: 2000-10-23 11:58:55 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -80,11 +80,17 @@ #ifndef _TXATBASE_HXX #include <txatbase.hxx> // SwTxtAttr/SwTxtAttrEnd #endif +#ifndef _CALBCK_HXX +#include <calbck.hxx> +#endif class SwTxtNode; // fuer SwTxtFld class SvxFont; class SwCharSetCol; class SwImplPrev; +class SwFmtRuby; +class SwCharFmt; +class SwFmt2Lines; // ATT_FONT *********************************************************** @@ -419,6 +425,43 @@ public: xub_StrLen nStart, xub_StrLen nEnd ); }; +// ****************************** + +class SwTxtRuby : public SwTxtAttrEnd, public SwClient +{ + SwTxtNode* pMyTxtNd; + +public: + SwTxtRuby( const SwFmtRuby& rAttr, xub_StrLen nStart, xub_StrLen nEnd ); + virtual ~SwTxtRuby(); + TYPEINFO(); + +//?? virtual void ChgFnt(SwFont *); +//?? virtual void RstFnt(SwFont *); + + virtual void Modify( SfxPoolItem *pOld, SfxPoolItem *pNew); + virtual BOOL GetInfo( SfxPoolItem& rInfo ) const; + + // erfrage und setze den TxtNode Pointer + const SwTxtNode* GetpTxtNode() const { return pMyTxtNd; } + inline const SwTxtNode& GetTxtNode() const; + void ChgTxtNode( const SwTxtNode* pNew ) { pMyTxtNd = (SwTxtNode*)pNew; } + + SwCharFmt* GetCharFmt(); + const SwCharFmt* GetCharFmt() const + { return ((SwTxtRuby*)this)->GetCharFmt(); } +}; + + +// ****************************** + +class SwTxt2Lines : public SwTxtAttrEnd +{ +public: + SwTxt2Lines( const SwFmt2Lines& rAttr, + xub_StrLen nStart, xub_StrLen nEnd ); +}; + // --------------- Inline Implementierungen ------------------------ @@ -430,6 +473,11 @@ inline const SwTxtNode& SwTxtCharFmt::GetTxtNode() const return *pMyTxtNd; } +inline const SwTxtNode& SwTxtRuby::GetTxtNode() const +{ + ASSERT( pMyTxtNd, "SwTxtRuby:: wo ist mein TextNode?" ); + return *pMyTxtNd; +} #endif |