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: outleeng.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 ************************************************************************/
33 #include <svx/outliner.hxx>
35 #include <svx/editeng.hxx>
38 typedef EENotify
* EENotifyPtr
;
39 SV_DECL_PTRARR_DEL( NotifyList
, EENotifyPtr
, 1, 1 )
41 class OutlinerEditEng
: public EditEngine
47 // derived from EditEngine. Allows Outliner objetcs to provide
48 // bullet access to the EditEngine.
49 virtual const SvxNumberFormat
* GetNumberFormat( USHORT nPara
) const;
52 OutlinerEditEng( Outliner
* pOwner
, SfxItemPool
* pPool
);
55 virtual void PaintingFirstLine( USHORT nPara
, const Point
& rStartPos
, long nBaseLineY
, const Point
& rOrigin
, short nOrientation
, OutputDevice
* pOutDev
);
57 virtual void ParagraphInserted( USHORT nNewParagraph
);
58 virtual void ParagraphDeleted( USHORT nDeletedParagraph
);
59 virtual void ParagraphConnected( USHORT nLeftParagraph
, USHORT nRightParagraph
);
62 virtual void DrawingText(
63 const Point
& rStartPos
, const XubString
& rText
, USHORT nTextStart
, USHORT nTextLen
, const sal_Int32
* pDXArray
, const SvxFont
& rFont
,
64 USHORT nPara
, USHORT nIndex
, BYTE nRightToLeft
,
65 const EEngineData::WrongSpellVector
* pWrongSpellVector
,
66 const SvxFieldData
* pFieldData
,
70 const ::com::sun::star::lang::Locale
* pLocale
,
71 const Color
& rOverlineColor
,
72 const Color
& rTextLineColor
);
74 virtual void StyleSheetChanged( SfxStyleSheet
* pStyle
);
75 virtual void ParaAttribsChanged( USHORT nPara
);
76 virtual BOOL
SpellNextDocument();
77 virtual XubString
GetUndoComment( USHORT nUndoId
) const;
79 // for text conversion
80 virtual BOOL
ConvertNextDocument();
82 virtual void FieldClicked( const SvxFieldItem
& rField
, USHORT nPara
, USHORT nPos
);
83 virtual void FieldSelected( const SvxFieldItem
& rField
, USHORT nPara
, USHORT nPos
);
84 virtual XubString
CalcFieldValue( const SvxFieldItem
& rField
, USHORT nPara
, USHORT nPos
, Color
*& rTxtColor
, Color
*& rFldColor
);
86 virtual Rectangle
GetBulletArea( USHORT nPara
);
88 virtual void SetParaAttribs( USHORT nPara
, const SfxItemSet
& rSet
);
90 // belongs into class Outliner, move there before incompatible update!
91 Link aOutlinerNotifyHdl
;
92 NotifyList aNotifyCache
;