diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2013-07-04 17:17:58 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2013-07-04 18:32:21 +0200 |
commit | ef4926fe6640cc8ba48117075b0b5871f02e34f3 (patch) | |
tree | ea7855d7d5aeddd06966639840c9847ca125b10e | |
parent | a8bcd1a39eebb3b2e28972592915c793391c500d (diff) |
svx: add SvxRectCtl::SetCS()
This way CTL_STYLE can be set after the control has been created.
Change-Id: Ifaa93cdc17e6e0c694d2aa308d19ff996dd28a16
-rw-r--r-- | include/svx/dlgctrl.hxx | 1 | ||||
-rw-r--r-- | svx/source/dialog/dlgctrl.cxx | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/svx/dlgctrl.hxx b/include/svx/dlgctrl.hxx index d218ba2586fd..60aa0b041465 100644 --- a/include/svx/dlgctrl.hxx +++ b/include/svx/dlgctrl.hxx @@ -128,6 +128,7 @@ public: sal_Bool IsCompletelyDisabled() const { return mbCompleteDisable; } void DoCompletelyDisable(sal_Bool bNew); + void SetCS(CTL_STYLE eNew); }; /************************************************************************* diff --git a/svx/source/dialog/dlgctrl.cxx b/svx/source/dialog/dlgctrl.cxx index 29ac4d234ea4..247c6cb09839 100644 --- a/svx/source/dialog/dlgctrl.cxx +++ b/svx/source/dialog/dlgctrl.cxx @@ -731,6 +731,11 @@ void SvxRectCtl::DoCompletelyDisable(sal_Bool bNew) Invalidate(); } +void SvxRectCtl::SetCS(CTL_STYLE eNew) +{ + eCS = eNew; +} + // Control for editing bitmaps SvxPixelCtl::SvxPixelCtl( Window* pParent, const ResId& rResId, sal_uInt16 nNumber ) : |