1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: txtatr.hxx,v $
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 ************************************************************************/
34 #include <txatbase.hxx> // SwTxtAttr/SwTxtAttrEnd
41 class SwTxtNode
; // fuer SwTxtFld
45 class SvxTwoLinesItem
;
47 // ATT_CHARFMT *********************************************
49 class SwTxtCharFmt
: public SwTxtAttrEnd
58 SwTxtCharFmt( const SwFmtCharFmt
& rAttr
, xub_StrLen nStart
, xub_StrLen nEnd
);
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
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?" );
99 } //namespace binfilter