[Libreoffice-commits] core.git: include/vcl vcl/source
Caolán McNamara
caolanm at redhat.com
Fri Jul 19 03:51:48 PDT 2013
include/vcl/layout.hxx | 3 +++
vcl/source/window/layout.cxx | 1 +
2 files changed, 4 insertions(+)
New commits:
commit 5652d862bb32940f9bca338a2143916f70a6f036
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Jul 19 11:33:11 2013 +0100
add a callback mechanism for post-expansion mode change
Change-Id: I9219706bcc54c846b846550d88fef1e29f7cb63a
diff --git a/include/vcl/layout.hxx b/include/vcl/layout.hxx
index 041f01b..2178aff 100644
--- a/include/vcl/layout.hxx
+++ b/include/vcl/layout.hxx
@@ -525,12 +525,15 @@ public:
m_aDisclosureButton.Check(bExpanded);
}
virtual void StateChanged(StateChangedType nType);
+ void SetExpandedHdl( const Link& rLink ) { maExpandedHdl = rLink; }
+ const Link& GetExpandedHdl() const { return maExpandedHdl; }
protected:
virtual Size calculateRequisition() const;
virtual void setAllocation(const Size &rAllocation);
private:
bool m_bResizeTopLevel;
DisclosureButton m_aDisclosureButton;
+ Link maExpandedHdl;
DECL_DLLPRIVATE_LINK(ClickHdl, DisclosureButton* pBtn);
};
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx
index 0b8dbfa..ba62a22 100644
--- a/vcl/source/window/layout.cxx
+++ b/vcl/source/window/layout.cxx
@@ -1501,6 +1501,7 @@ IMPL_LINK( VclExpander, ClickHdl, DisclosureButton*, pBtn )
if (pResizeDialog)
pResizeDialog->setOptimalLayoutSize();
}
+ maExpandedHdl.Call(this);
return 0;
}
More information about the Libreoffice-commits
mailing list