SvTreeListBox::ExpandingHdl should return bool
Change-Id: I39a854910299ab2e7c64beabda381bb9f0bd2891
This commit is contained in:
@@ -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;
|
||||
|
@@ -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 );
|
||||
|
@@ -340,9 +340,9 @@ void SFTreeListBox:: RequestSubEntries( SvTreeListEntry* pRootEntry, Reference<
|
||||
}
|
||||
}
|
||||
|
||||
long SFTreeListBox::ExpandingHdl()
|
||||
bool SFTreeListBox::ExpandingHdl()
|
||||
{
|
||||
return sal_True;
|
||||
return true;
|
||||
}
|
||||
|
||||
void SFTreeListBox::ExpandAllTrees()
|
||||
|
@@ -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,
|
||||
|
@@ -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();
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
|
@@ -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()
|
||||
|
Reference in New Issue
Block a user