Update ooo320-m1
[ooovba.git] / binfilter / inc / bf_sw / txtatr.hxx
bloba5cf00e2c70457657b05e395b81d9efc1c57b73f
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: txtatr.hxx,v $
10 * $Revision: 1.7 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _TXTATR_HXX
31 #define _TXTATR_HXX
33 #ifndef _TXATBASE_HXX
34 #include <txatbase.hxx> // SwTxtAttr/SwTxtAttrEnd
35 #endif
36 #ifndef _CALBCK_HXX
37 #include <calbck.hxx>
38 #endif
39 namespace binfilter {
41 class SwTxtNode; // fuer SwTxtFld
42 class SvxFont;
43 class SwCharSetCol;
44 class SwCharFmt;
45 class SvxTwoLinesItem;
47 // ATT_CHARFMT *********************************************
49 class SwTxtCharFmt : public SwTxtAttrEnd
51 SwTxtNode* pMyTxtNd;
52 BOOL bPrevNoHyph : 1;
53 BOOL bPrevBlink : 1;
54 BOOL bPrevURL : 1;
55 BOOL bColor : 1;
57 public:
58 SwTxtCharFmt( const SwFmtCharFmt& rAttr, xub_StrLen nStart, xub_StrLen nEnd );
59 ~SwTxtCharFmt( );
61 // werden vom SwFmtCharFmt hierher weitergeleitet
62 virtual void Modify( SfxPoolItem*, SfxPoolItem* ); // SwClient
63 virtual BOOL GetInfo( SfxPoolItem& rInfo ) const;
65 // erfrage und setze den TxtNode Pointer
66 inline const SwTxtNode& GetTxtNode() const;
67 void ChgTxtNode( const SwTxtNode* pNew ) { pMyTxtNd = (SwTxtNode*)pNew; }
71 // ATT_HARDBLANK ******************************
74 // ATT_XNLCONTAINERITEM ******************************
77 // ******************************
79 class SwTxtRuby : public SwTxtAttrEnd, public SwClient
82 public:
83 SwTxtRuby( const SwFmtRuby& rAttr, xub_StrLen nStart, xub_StrLen nEnd ): SwTxtAttrEnd( (SfxPoolItem &)rAttr, nStart, nEnd ){DBG_BF_ASSERT(0, "STRIP");} ;//STRIP001 SwTxtRuby( const SwFmtRuby& rAttr, xub_StrLen nStart, xub_StrLen nEnd );
87 // ******************************
90 // --------------- Inline Implementierungen ------------------------
92 inline const SwTxtNode& SwTxtCharFmt::GetTxtNode() const
94 ASSERT( pMyTxtNd, "SwTxtCharFmt:: wo ist mein TextNode?" );
95 return *pMyTxtNd;
99 } //namespace binfilter
100 #endif