Kaydet (Commit) c842486a authored tarafından Caolán McNamara's avatar Caolán McNamara

restore these for the moment, still in use in sc

Change-Id: I6967a3c871338d1801d913d9bb54eba50a7660ca
üst b1523015
...@@ -466,6 +466,16 @@ RefEdit::RefEdit( Window* _pParent, Window* pShrinkModeLabel, WinBits nStyle ) ...@@ -466,6 +466,16 @@ RefEdit::RefEdit( Window* _pParent, Window* pShrinkModeLabel, WinBits nStyle )
aTimer.SetTimeout( SC_ENABLE_TIME ); aTimer.SetTimeout( SC_ENABLE_TIME );
} }
RefEdit::RefEdit( Window* _pParent,IControlReferenceHandler* pParent,
Window* pShrinkModeLabel, const ResId& rResId )
: Edit( _pParent, rResId )
, pAnyRefDlg( pParent )
, pLabelWidget(pShrinkModeLabel)
{
aTimer.SetTimeoutHdl( LINK( this, RefEdit, UpdateHdl ) );
aTimer.SetTimeout( SC_ENABLE_TIME );
}
extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeRefEdit(Window *pParent, VclBuilder::stringmap &) extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeRefEdit(Window *pParent, VclBuilder::stringmap &)
{ {
return new RefEdit(pParent, NULL, WB_BORDER); return new RefEdit(pParent, NULL, WB_BORDER);
...@@ -561,7 +571,6 @@ IMPL_LINK_NOARG(RefEdit, UpdateHdl) ...@@ -561,7 +571,6 @@ IMPL_LINK_NOARG(RefEdit, UpdateHdl)
} }
//class RefButton //class RefButton
RefButton::RefButton( Window* _pParent, WinBits nStyle ) : RefButton::RefButton( Window* _pParent, WinBits nStyle ) :
ImageButton( _pParent, nStyle ), ImageButton( _pParent, nStyle ),
aImgRefStart( ModuleRes( RID_BMP_REFBTN1 ) ), aImgRefStart( ModuleRes( RID_BMP_REFBTN1 ) ),
...@@ -574,6 +583,30 @@ RefButton::RefButton( Window* _pParent, WinBits nStyle ) : ...@@ -574,6 +583,30 @@ RefButton::RefButton( Window* _pParent, WinBits nStyle ) :
SetStartImage(); SetStartImage();
} }
RefButton::RefButton( Window* _pParent, const ResId& rResId) :
ImageButton( _pParent, rResId ),
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();
}
RefButton::RefButton( Window* _pParent, const ResId& rResId, RefEdit* pEdit, IControlReferenceHandler* _pDlg ) :
ImageButton( _pParent, rResId ),
aImgRefStart( ModuleRes( RID_BMP_REFBTN1 ) ),
aImgRefDone( ModuleRes( RID_BMP_REFBTN2 ) ),
aShrinkQuickHelp( ModuleRes( RID_STR_SHRINK ).toString() ),
aExpandQuickHelp( ModuleRes( RID_STR_EXPAND ).toString() ),
pAnyRefDlg( _pDlg ),
pRefEdit( pEdit )
{
SetStartImage();
}
extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeRefButton(Window *pParent, VclBuilder::stringmap &) extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeRefButton(Window *pParent, VclBuilder::stringmap &)
{ {
return new RefButton(pParent, 0); return new RefButton(pParent, 0);
......
...@@ -44,6 +44,7 @@ protected: ...@@ -44,6 +44,7 @@ protected:
virtual void LoseFocus() SAL_OVERRIDE; virtual void LoseFocus() SAL_OVERRIDE;
public: public:
RefEdit( Window* _pParent,IControlReferenceHandler* pParent, Window* pShrinkModeLabel, const ResId& rResId );
RefEdit( Window* _pParent, Window* pShrinkModeLabel, WinBits nStyle = WB_BORDER ); RefEdit( Window* _pParent, Window* pShrinkModeLabel, WinBits nStyle = WB_BORDER );
virtual ~RefEdit(); virtual ~RefEdit();
...@@ -94,7 +95,10 @@ protected: ...@@ -94,7 +95,10 @@ protected:
virtual void LoseFocus() SAL_OVERRIDE; virtual void LoseFocus() SAL_OVERRIDE;
public: public:
RefButton(Window* _pParent, const ResId& rResId);
RefButton(Window* _pParent, WinBits nStyle = 0); RefButton(Window* _pParent, WinBits nStyle = 0);
RefButton(Window* _pParent, const ResId& rResId,
RefEdit* pEdit, IControlReferenceHandler* pDlg);
void SetReferences( IControlReferenceHandler* pDlg, RefEdit* pEdit ); void SetReferences( IControlReferenceHandler* pDlg, RefEdit* pEdit );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment