[Libreoffice-commits] core.git: svx/inc svx/source
Caolán McNamara
caolanm at redhat.com
Mon Apr 22 07:59:43 PDT 2013
svx/inc/svx/dialcontrol.hxx | 7 +++++++
svx/source/dialog/dialcontrol.cxx | 15 +++++++++++++++
2 files changed, 22 insertions(+)
New commits:
commit 46283082a3a520d3b39a7b733c8a0858896da26c
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Apr 22 15:55:40 2013 +0100
restore DialControl Modify handlers
removed by a352018c76028b332ccc50be6ee12c16f75aac25 but we will
need them again soon
Change-Id: Ibeaa4aeeec3dc073592ecf7e8c53b8bb03e791b4
diff --git a/svx/inc/svx/dialcontrol.hxx b/svx/inc/svx/dialcontrol.hxx
index 26aa073..fbb4d27 100644
--- a/svx/inc/svx/dialcontrol.hxx
+++ b/svx/inc/svx/dialcontrol.hxx
@@ -81,6 +81,13 @@ public:
/** Links the passed numeric edit field to the control (bi-directional). */
void SetLinkedField( NumericField* pField );
+ /** Returns the linked numeric edit field, or 0. */
+ NumericField* GetLinkedField() const;
+
+ /** The passed handler is called whenever the totation value changes. */
+ void SetModifyHdl( const Link& rLink );
+ /** Returns the current modify handler. */
+ const Link& GetModifyHdl() const;
/** Save value for later comparison */
void SaveValue();
diff --git a/svx/source/dialog/dialcontrol.cxx b/svx/source/dialog/dialcontrol.cxx
index f96271f..1ffdfa2 100644
--- a/svx/source/dialog/dialcontrol.cxx
+++ b/svx/source/dialog/dialcontrol.cxx
@@ -458,6 +458,21 @@ bool DialControl::IsValueModified()
return mpImpl->mnInitialAngle != mpImpl->mnAngle;
}
+NumericField* DialControl::GetLinkedField() const
+{
+ return mpImpl->mpLinkField;
+}
+
+void DialControl::SetModifyHdl( const Link& rLink )
+{
+ mpImpl->maModifyHdl = rLink;
+}
+
+const Link& DialControl::GetModifyHdl() const
+{
+ return mpImpl->maModifyHdl;
+}
+
// private --------------------------------------------------------------------
void DialControl::Init( const Size& rWinSize, const Font& rWinFont )
More information about the Libreoffice-commits
mailing list