diff options
author | matteocam <matteo.campanelli@gmail.com> | 2015-09-06 11:14:02 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2015-09-20 13:05:14 +0200 |
commit | 0c0dedb9e4a24f09a46e077ddd0bc36de7b5c575 (patch) | |
tree | 1246d03c3efb778687fcd6e89d16364180df8713 /include | |
parent | e705b13b9b8d63f6aba22ca2d4f39b76cf9b45b1 (diff) |
chained editeng: Add primitive creation methods for chaining
Change-Id: I061009a6830c3590e30900b14b2d006f68d237c1
Diffstat (limited to 'include')
-rw-r--r-- | include/editeng/editeng.hxx | 9 | ||||
-rw-r--r-- | include/editeng/outliner.hxx | 22 |
2 files changed, 31 insertions, 0 deletions
diff --git a/include/editeng/editeng.hxx b/include/editeng/editeng.hxx index 419e1af67165..eadf0f516a33 100644 --- a/include/editeng/editeng.hxx +++ b/include/editeng/editeng.hxx @@ -144,6 +144,8 @@ class EDITENG_DLLPUBLIC EditEngine friend class ImpEditView; friend class EditDbg; friend class Outliner; + friend class TextChainingUtils; + public: typedef std::vector<EditView*> ViewsType; @@ -296,6 +298,7 @@ public: void SetText( const OUString& rStr ); EditTextObject* CreateTextObject(); + EditTextObject* GetEmptyTextObject() const; EditTextObject* CreateTextObject( sal_Int32 nPara, sal_Int32 nParas = 1 ); EditTextObject* CreateTextObject( const ESelection& rESelection ); void SetText( const EditTextObject& rTextObject ); @@ -369,6 +372,7 @@ public: void SetStatusEventHdl( const Link<EditStatus&,void>& rLink ); Link<EditStatus&,void> GetStatusEventHdl() const; + void SetChainingEventHdl( const Link<>& rLink ); void SetNotifyHdl( const Link<EENotify&,void>& rLink ); Link<EENotify&,void> GetNotifyHdl() const; @@ -598,6 +602,11 @@ public: bool Undo(EditView* pView); bool Redo(EditView* pView); + + sal_Int32 GetOverflowingParaNum() const; + sal_Int32 GetOverflowingLineNum() const; + void ClearOverflowingParaNum(); + bool IsPageOverflow(); }; #endif // INCLUDED_EDITENG_EDITENG_HXX diff --git a/include/editeng/outliner.hxx b/include/editeng/outliner.hxx index 479d6eb21ce7..d273020fd9b0 100644 --- a/include/editeng/outliner.hxx +++ b/include/editeng/outliner.hxx @@ -72,6 +72,9 @@ class SvxLRSpaceItem; class EditEngine; class SvKeyValueIterator; class SvxForbiddenCharactersTable; +class OverflowingText; +class NonOverflowingText; + namespace svl { @@ -212,6 +215,8 @@ private: EDITENG_DLLPRIVATE void ImpPasted( sal_Int32 nStart, sal_Int32 nPrevParaCount, sal_Int32 nSize); EDITENG_DLLPRIVATE sal_Int32 ImpCalcSelectedPages( bool bIncludeFirstSelected ); + Link<> aEndCutPasteLink; + public: OutlinerView( Outliner* pOut, vcl::Window* pWindow ); virtual ~OutlinerView(); @@ -370,6 +375,8 @@ public: OUString GetSurroundingText() const; Selection GetSurroundingTextSelection() const; + + void SetEndCutPasteLinkHdl(const Link<> &rLink) { aEndCutPasteLink = rLink; } }; @@ -579,6 +586,8 @@ class EDITENG_DLLPUBLIC Outliner : public SfxBroadcaster friend class OutlinerUndoCheckPara; friend class OutlinerUndoChangeParaFlags; + friend class TextChainingUtils; + OutlinerEditEng* pEditEngine; ParagraphList* pParaList; @@ -701,6 +710,8 @@ public: void SetText( const OUString& rText, Paragraph* pParagraph ); OUString GetText( Paragraph* pPara, sal_Int32 nParaCount=1 ) const; + void SetToEmptyText(); + OutlinerParaObject* CreateParaObject( sal_Int32 nStartPara = 0, sal_Int32 nParaCount = EE_PARA_ALL ) const; const SfxItemSet& GetEmptyItemSet() const; @@ -753,6 +764,14 @@ public: void SetParaRemovingHdl(const Link<Outliner*,void>& rLink){aParaRemovingHdl=rLink;} Link<Outliner*,void> GetParaRemovingHdl() const { return aParaRemovingHdl; } + NonOverflowingText *GetNonOverflowingText() const; + OverflowingText *GetOverflowingText() const; + void ClearOverflowingParaNum(); + bool IsPageOverflow(); + + OutlinerParaObject *GetEmptyParaObject() const; + + void DepthChangedHdl(); void SetDepthChangedHdl(const Link<Outliner*,void>& rLink){aDepthChangedHdl=rLink;} Link<Outliner*,void> GetDepthChangedHdl() const { return aDepthChangedHdl; } @@ -783,6 +802,9 @@ public: void SetStatusEventHdl( const Link<EditStatus&, void>& rLink ); Link<EditStatus&, void> GetStatusEventHdl() const; + void SetChainingEventHdl( const Link<>& rLink ); + + void Draw( OutputDevice* pOutDev, const Rectangle& rOutRect ); void Draw( OutputDevice* pOutDev, const Point& rStartPos, short nOrientation = 0 ); |