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: outlinfo.hxx,v $
10 * $Revision: 1.6.108.1 $
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 <tools/gen.hxx>
35 #include <vcl/outdev.hxx>
41 struct OutlinerCharacter
47 // #101500# Removed CharCode, it's only used in one place to compare
48 // for single space character. This can be done at creation, too.
51 OutlinerCharacter( const Rectangle
& _rRect
, ULONG _nPara
, const Color
& _rCol
/* #101500#, USHORT _nCharCode*/ )
59 // -----------------------------------------------------------------------------
61 struct OutlinerParagraph
66 OutlinerParagraph() : nCharCount( 0 ) {}
67 ~OutlinerParagraph() {};
74 class DrawPortionInfo
;
86 OutlinerParagraph
* pParagraphs
;
94 OutlinerInfo( const OutlinerInfo
& ) {}
95 OutlinerInfo
& operator=( const OutlinerInfo
& ) { return *this; }
97 DECL_LINK( DrawPortionHdl
, DrawPortionInfo
* );
106 void SetTextObj( SdDrawDocument
* pDoc
, SdrRectObj
* pObj
, OutputDevice
* _pOut
);
108 const Rectangle
& GetObjRect() const { return aObjBound
; }
109 const Rectangle
& GetTextRect() const { return aParaBound
; }
110 const Point
& GetTextOffset() const { return aTextOffset
; }
112 ULONG
GetParaCount() const { return nParaCount
; }
114 const Rectangle
& GetParaRect( const ULONG nPara
) const;
115 BOOL
GetParaCharCount( const ULONG nPara
) const;
117 ULONG
GetCharacterCount() const { return aCharacterList
.Count(); }
118 OutlinerCharacter
* GetCharacter( ULONG nPos
) const { return (OutlinerCharacter
*) aCharacterList
.GetObject( nPos
); };
119 OutlinerCharacter
* GetFirstCharacter() { return (OutlinerCharacter
*) aCharacterList
.First(); }
120 OutlinerCharacter
* GetNextCharacter() { return (OutlinerCharacter
*) aCharacterList
.Next(); }
122 void SetExtraData( const long _nExtraData
= 0L ) { nExtraData
= _nExtraData
; }
123 long GetExtraData() const { return nExtraData
; }
125 BOOL
IsVertical() const { return mbVertical
; }