summaryrefslogtreecommitdiff
path: root/formula/inc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-04-16 20:41:34 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-04-17 10:25:10 +0100
commit02179ab7e771fae9d012724b8ff1397f4265cfc1 (patch)
tree2f56bf55fcfe40f2833a4d028b90e6c80e8cd532 /formula/inc
parenta59565f855cb30fff56eb3d889376bfd27dc728f (diff)
stash the label widget for shrink mode in the edit, not the button
because we always have we a refedit, but sometimes not a refbutton, so set the label widget to use for the dialog shrink mode on the refedit instead of the refbutton. This way we get the shrunken dialog title bar updated with the label contents regardless of using the shrink button or clicking in the editbox and dragging the mouse around the spreadsheet triggering the shrink mode Change-Id: Ifdff01a30d5c65aa964d4bf544017a2927757d67
Diffstat (limited to 'formula/inc')
-rw-r--r--formula/inc/formula/funcutl.hxx17
1 files changed, 9 insertions, 8 deletions
diff --git a/formula/inc/formula/funcutl.hxx b/formula/inc/formula/funcutl.hxx
index 76a2287ed45c..6676117cdf20 100644
--- a/formula/inc/formula/funcutl.hxx
+++ b/formula/inc/formula/funcutl.hxx
@@ -34,6 +34,7 @@ class FORMULA_DLLPUBLIC RefEdit : public Edit
private:
Timer aTimer;
IControlReferenceHandler* pAnyRefDlg; // parent dialog
+ Window* pLabelWidget;
DECL_LINK( UpdateHdl, void* );
@@ -43,8 +44,10 @@ protected:
virtual void LoseFocus();
public:
- RefEdit( Window* _pParent,IControlReferenceHandler* pParent, const ResId& rResId );
- RefEdit( Window* _pParent, WinBits nStyle = WB_BORDER );
+ RefEdit( Window* _pParent,IControlReferenceHandler* pParent,
+ Window* pShrinkModeLabel, const ResId& rResId );
+ RefEdit( Window* _pParent, Window* pShrinkModeLabel,
+ WinBits nStyle = WB_BORDER );
virtual ~RefEdit();
void SetRefString( const XubString& rStr );
@@ -61,8 +64,9 @@ public:
void StartUpdateData();
- void SetRefDialog( IControlReferenceHandler* pDlg );
+ void SetReferences( IControlReferenceHandler* pDlg, Window *pLabelWidget );
IControlReferenceHandler* GetRefDialog() { return pAnyRefDlg; }
+ Window* GetLabelWidgetForShrinkMode() { return pLabelWidget; }
};
@@ -77,7 +81,6 @@ private:
OUString aExpandQuickHelp;
IControlReferenceHandler* pAnyRefDlg; // parent dialog
RefEdit* pRefEdit; // zugeordnetes Edit-Control
- Window* pLabelWidget;
protected:
virtual void Click();
@@ -89,16 +92,14 @@ public:
RefButton(Window* _pParent, const ResId& rResId);
RefButton(Window* _pParent, WinBits nStyle = 0);
RefButton(Window* _pParent, const ResId& rResId,
- RefEdit* pEdit, Window* pShrinkModeLabel,
- IControlReferenceHandler* pDlg);
+ RefEdit* pEdit, IControlReferenceHandler* pDlg);
void SetReferences( IControlReferenceHandler* pDlg,
- RefEdit* pEdit, Window* pShrinkModeLabel );
+ RefEdit* pEdit );
void SetStartImage();
void SetEndImage();
void DoRef() { Click(); }
- Window* GetLabelWidgetForShrinkMode() { return pLabelWidget; }
};
} // formula