summaryrefslogtreecommitdiff
path: root/formula/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-03-05 12:53:12 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-03-05 14:28:41 +0000
commita9b33fc3044c001a652865baf6fb870f04c91a96 (patch)
treed979872d8b0df654bc229dcf5598554209432702 /formula/source
parentd1c72717a2260b46a76624db377277d90c6190d4 (diff)
make formula refButton and refEdit loadable from .ui
Change-Id: I2ad13cd8de2c0f8f5672a30c3c1117708368b05f
Diffstat (limited to 'formula/source')
-rw-r--r--formula/source/ui/dlg/funcutl.cxx31
1 files changed, 31 insertions, 0 deletions
diff --git a/formula/source/ui/dlg/funcutl.cxx b/formula/source/ui/dlg/funcutl.cxx
index 489e6718ac17..4b047d31185c 100644
--- a/formula/source/ui/dlg/funcutl.cxx
+++ b/formula/source/ui/dlg/funcutl.cxx
@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <vcl/builder.hxx>
#include <vcl/svapp.hxx>
#include <vcl/scrbar.hxx>
@@ -854,6 +855,19 @@ RefEdit::RefEdit( Window* _pParent,IControlReferenceHandler* pParent, const ResI
aTimer.SetTimeout( SC_ENABLE_TIME );
}
+RefEdit::RefEdit( Window* _pParent, WinBits nStyle ) :
+ Edit( _pParent, nStyle ),
+ pAnyRefDlg( NULL )
+{
+ aTimer.SetTimeoutHdl( LINK( this, RefEdit, UpdateHdl ) );
+ aTimer.SetTimeout( SC_ENABLE_TIME );
+}
+
+extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeRefEdit(Window *pParent, VclBuilder::stringmap &)
+{
+ return new RefEdit(pParent, WB_BORDER);
+}
+
RefEdit::~RefEdit()
{
aTimer.SetTimeoutHdl( Link() );
@@ -958,6 +972,23 @@ RefButton::RefButton( Window* _pParent, const ResId& rResId) :
SetStartImage();
}
+RefButton::RefButton( Window* _pParent, WinBits nStyle ) :
+ ImageButton( _pParent, nStyle ),
+ aImgRefStart( ModuleRes( RID_BMP_REFBTN1 ) ),
+ aImgRefDone( ModuleRes( RID_BMP_REFBTN2 ) ),
+ aShrinkQuickHelp( ModuleRes( RID_STR_SHRINK ).toString() ),
+ aExpandQuickHelp( ModuleRes( RID_STR_EXPAND ).toString() ),
+ pAnyRefDlg( NULL ),
+ pRefEdit( NULL )
+{
+ SetStartImage();
+}
+
+extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeRefButton(Window *pParent, VclBuilder::stringmap &)
+{
+ return new RefButton(pParent, 0);
+}
+
RefButton::RefButton( Window* _pParent, const ResId& rResId, RefEdit* pEdit, IControlReferenceHandler* _pDlg ) :
ImageButton( _pParent, rResId ),
aImgRefStart( ModuleRes( RID_BMP_REFBTN1 ) ),