summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-13 18:07:49 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-13 18:08:07 +0100
commit01f3186c4b8357e7a3784e0249aaee1af381f609 (patch)
treef42a01743b66e3b81eaec17b6e41115d99c0900d
parentb23867abd8427da361dfa5edb9b41fbbd064ae10 (diff)
SvTreeListBox::ExpandingHdl should return bool
Change-Id: I39a854910299ab2e7c64beabda381bb9f0bd2891
-rw-r--r--basctl/source/basicide/bastype2.cxx2
-rw-r--r--basctl/source/basicide/bastype2.hxx2
-rw-r--r--cui/source/dialogs/scriptdlg.cxx4
-rw-r--r--cui/source/inc/scriptdlg.hxx2
-rw-r--r--include/svtools/treelistbox.hxx2
-rw-r--r--sfx2/source/dialog/templdlg.cxx6
-rw-r--r--svtools/source/contnr/treelistbox.cxx4
7 files changed, 11 insertions, 11 deletions
diff --git a/basctl/source/basicide/bastype2.cxx b/basctl/source/basicide/bastype2.cxx
index b353853f54fe..c89944740de3 100644
--- a/basctl/source/basicide/bastype2.cxx
+++ b/basctl/source/basicide/bastype2.cxx
@@ -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;
diff --git a/basctl/source/basicide/bastype2.hxx b/basctl/source/basicide/bastype2.hxx
index 90cc273e40dc..bc7d669e713e 100644
--- a/basctl/source/basicide/bastype2.hxx
+++ b/basctl/source/basicide/bastype2.hxx
@@ -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 );
diff --git a/cui/source/dialogs/scriptdlg.cxx b/cui/source/dialogs/scriptdlg.cxx
index 6339593cc8e9..b47fa2e4fa51 100644
--- a/cui/source/dialogs/scriptdlg.cxx
+++ b/cui/source/dialogs/scriptdlg.cxx
@@ -340,9 +340,9 @@ void SFTreeListBox:: RequestSubEntries( SvTreeListEntry* pRootEntry, Reference<
}
}
-long SFTreeListBox::ExpandingHdl()
+bool SFTreeListBox::ExpandingHdl()
{
- return sal_True;
+ return true;
}
void SFTreeListBox::ExpandAllTrees()
diff --git a/cui/source/inc/scriptdlg.hxx b/cui/source/inc/scriptdlg.hxx
index bbf35c0eadb6..394462f4e4d9 100644
--- a/cui/source/inc/scriptdlg.hxx
+++ b/cui/source/inc/scriptdlg.hxx
@@ -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,
diff --git a/include/svtools/treelistbox.hxx b/include/svtools/treelistbox.hxx
index 0d9b768a73f8..6d1f2ca2a266 100644
--- a/include/svtools/treelistbox.hxx
+++ b/include/svtools/treelistbox.hxx
@@ -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();
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx
index ecc4d4192d1e..067eae9919e5 100644
--- a/sfx2/source/dialog/templdlg.cxx
+++ b/sfx2/source/dialog/templdlg.cxx
@@ -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;
}
//-------------------------------------------------------------------------
diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx
index 018fcbde7d29..139975752544 100644
--- a/svtools/source/contnr/treelistbox.cxx
+++ b/svtools/source/contnr/treelistbox.cxx
@@ -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()