diff options
Diffstat (limited to 'bf_svx/source/outliner/outleeng.hxx')
-rw-r--r-- | bf_svx/source/outliner/outleeng.hxx | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/bf_svx/source/outliner/outleeng.hxx b/bf_svx/source/outliner/outleeng.hxx new file mode 100644 index 000000000..3e7b340dd --- /dev/null +++ b/bf_svx/source/outliner/outleeng.hxx @@ -0,0 +1,61 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +#ifndef _OUTLEENG_HXX +#define _OUTLEENG_HXX + +#include <outliner.hxx> +#include <editeng.hxx> +namespace binfilter { + +typedef EENotify* EENotifyPtr; +SV_DECL_PTRARR_DEL( NotifyList, EENotifyPtr, 1, 1 ) + +class OutlinerEditEng : public EditEngine +{ + Outliner* pOwner; + +public: + OutlinerEditEng( Outliner* pOwner, SfxItemPool* pPool ); + ~OutlinerEditEng(); + + + virtual void ParagraphInserted( USHORT nNewParagraph ); + virtual void ParagraphDeleted( USHORT nDeletedParagraph ); + + // #101498# + virtual void DrawingText(const Point& rStartPos, const XubString& rText, USHORT nTextStart, USHORT nTextLen, const sal_Int32* pDXArray, const SvxFont& rFont, USHORT nPara, USHORT nIndex, BYTE nRightToLeft); + + virtual void ParaAttribsChanged( USHORT nPara ); + virtual void ParagraphHeightChanged( USHORT nPara ); + virtual XubString GetUndoComment( USHORT nUndoId ) const; + + virtual XubString CalcFieldValue( const SvxFieldItem& rField, USHORT nPara, USHORT nPos, Color*& rTxtColor, Color*& rFldColor ); + + virtual Rectangle GetBulletArea( USHORT nPara ); + + // belongs into class Outliner, move there before incompatible update! + Link aOutlinerNotifyHdl; + NotifyList aNotifyCache; +}; + +}//end of namespace binfilter +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |