Kaydet (Commit) 930b60d9 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Outliner::RemovingPagesHdl return type wants to be bool

Change-Id: I7d57d560f28683a840022cf766ef22cc50683349
üst a602a1ce
...@@ -1771,9 +1771,9 @@ void Outliner::DrawingTab( const Point& rStartPos, long nWidth, const OUString& ...@@ -1771,9 +1771,9 @@ void Outliner::DrawingTab( const Point& rStartPos, long nWidth, const OUString&
} }
} }
long Outliner::RemovingPagesHdl( OutlinerView* pView ) bool Outliner::RemovingPagesHdl( OutlinerView* pView )
{ {
return aRemovingPagesHdl.IsSet() ? aRemovingPagesHdl.Call( pView ) : sal_True; return !aRemovingPagesHdl.IsSet() || aRemovingPagesHdl.Call( pView );
} }
bool Outliner::ImpCanDeleteSelectedPages( OutlinerView* pCurView, sal_Int32 _nFirstPage, sal_Int32 nPages ) bool Outliner::ImpCanDeleteSelectedPages( OutlinerView* pCurView, sal_Int32 _nFirstPage, sal_Int32 nPages )
......
...@@ -777,7 +777,7 @@ public: ...@@ -777,7 +777,7 @@ public:
sal_Int16 GetPrevDepth() const { return static_cast<sal_Int16>(nDepthChangedHdlPrevDepth); } sal_Int16 GetPrevDepth() const { return static_cast<sal_Int16>(nDepthChangedHdlPrevDepth); }
ParaFlag GetPrevFlags() const { return mnDepthChangeHdlPrevFlags; } ParaFlag GetPrevFlags() const { return mnDepthChangeHdlPrevFlags; }
long RemovingPagesHdl( OutlinerView* ); bool RemovingPagesHdl( OutlinerView* );
void SetRemovingPagesHdl(const Link& rLink){aRemovingPagesHdl=rLink;} void SetRemovingPagesHdl(const Link& rLink){aRemovingPagesHdl=rLink;}
Link GetRemovingPagesHdl() const { return aRemovingPagesHdl; } Link GetRemovingPagesHdl() const { return aRemovingPagesHdl; }
long IndentingPagesHdl( OutlinerView* ); long IndentingPagesHdl( OutlinerView* );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment