SvTreeListBox::ExpandingHdl should return bool

Change-Id: I39a854910299ab2e7c64beabda381bb9f0bd2891
This commit is contained in:
Stephan Bergmann
2014-01-13 18:07:49 +01:00
parent b23867abd8
commit 01f3186c4b
7 changed files with 11 additions and 11 deletions

View File

@@ -700,7 +700,7 @@ SvTreeListEntry* TreeListBox::FindEntry( SvTreeListEntry* pParent, const OUStrin
return 0;
}
long TreeListBox::ExpandingHdl()
bool TreeListBox::ExpandingHdl()
{
// expanding or collapsing?
bool bOK = true;

View File

@@ -185,7 +185,7 @@ protected:
virtual void RequestingChildren( SvTreeListEntry* pParent );
virtual void ExpandedHdl();
virtual SvTreeListEntry* CloneEntry( SvTreeListEntry* pSource );
virtual long ExpandingHdl();
virtual bool ExpandingHdl();
void ImpCreateLibEntries( SvTreeListEntry* pShellRootEntry, const ScriptDocument& rDocument, LibraryLocation eLocation );
void ImpCreateLibSubEntries( SvTreeListEntry* pLibRootEntry, const ScriptDocument& rDocument, const OUString& rLibName );

View File

@@ -340,9 +340,9 @@ void SFTreeListBox:: RequestSubEntries( SvTreeListEntry* pRootEntry, Reference<
}
}
long SFTreeListBox::ExpandingHdl()
bool SFTreeListBox::ExpandingHdl()
{
return sal_True;
return true;
}
void SFTreeListBox::ExpandAllTrees()

View File

@@ -73,7 +73,7 @@ protected:
void ExpandTree( SvTreeListEntry* pRootEntry );
virtual void RequestingChildren( SvTreeListEntry* pParent );
virtual void ExpandedHdl();
virtual long ExpandingHdl();
virtual bool ExpandingHdl();
public:
void Init( const OUString& language );
void RequestSubEntries( SvTreeListEntry* pRootEntry, ::com::sun::star::uno::Reference< ::com::sun::star::script::browse::XBrowseNode >& node,

View File

@@ -442,7 +442,7 @@ public:
const Link& GetExpandingHdl() const { return aExpandingHdl; }
virtual void ExpandedHdl();
virtual long ExpandingHdl();
virtual bool ExpandingHdl();
virtual void SelectHdl();
virtual void DeselectHdl();
virtual sal_Bool DoubleClickHdl();

View File

@@ -526,7 +526,7 @@ protected:
virtual void Command( const CommandEvent& rMEvt );
virtual long Notify( NotifyEvent& rNEvt );
virtual sal_Bool DoubleClickHdl();
virtual long ExpandingHdl();
virtual bool ExpandingHdl();
virtual void ExpandedHdl();
virtual sal_Bool NotifyMoving(SvTreeListEntry* pTarget,
SvTreeListEntry* pEntry,
@@ -644,7 +644,7 @@ sal_Bool StyleTreeListBox_Impl::NotifyMoving(SvTreeListEntry* pTarget,
//-------------------------------------------------------------------------
long StyleTreeListBox_Impl::ExpandingHdl()
bool StyleTreeListBox_Impl::ExpandingHdl()
/* [Description]
@@ -656,7 +656,7 @@ long StyleTreeListBox_Impl::ExpandingHdl()
*/
{
pCurEntry = GetCurEntry();
return sal_True;
return true;
}
//-------------------------------------------------------------------------

View File

@@ -504,10 +504,10 @@ sal_uLong SvTreeListBox::Insert( SvTreeListEntry* pEntry,sal_uLong nRootPos )
return nInsPos;
}
long SvTreeListBox::ExpandingHdl()
bool SvTreeListBox::ExpandingHdl()
{
DBG_CHKTHIS(SvTreeListBox,0);
return aExpandingHdl.IsSet() ? aExpandingHdl.Call( this ) : 1;
return !aExpandingHdl.IsSet() || aExpandingHdl.Call( this );
}
void SvTreeListBox::ExpandedHdl()