diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2013-02-07 10:53:08 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2013-02-07 16:57:50 +0100 |
commit | e97e62a4707e09739f9c00f8fc4a943f0123a9cf (patch) | |
tree | 122adfb668891c298b1b6b46cc5dae714697d0ca /svx/source/dialog | |
parent | 0d47e4c4949edfd2be6af733c43d93aef6978fb6 (diff) |
convert drawinglayer gradient dialog to new .ui
Change-Id: Iaa91d3b1ab47e02edc69c2b9abdb33ae097571cb
Diffstat (limited to 'svx/source/dialog')
-rw-r--r-- | svx/source/dialog/dlgctrl.cxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/svx/source/dialog/dlgctrl.cxx b/svx/source/dialog/dlgctrl.cxx index ed5d5e9e9fa7..0d6770ea0147 100644 --- a/svx/source/dialog/dlgctrl.cxx +++ b/svx/source/dialog/dlgctrl.cxx @@ -1073,6 +1073,21 @@ GradientLB::GradientLB( Window* pParent, ResId Id, sal_Bool bUserDraw /*= sal_Tr EnableUserDraw( mbUserDraw); } +GradientLB::GradientLB( Window* pParent, WinBits nWinStyle, sal_Bool bUserDraw /*= sal_True*/ ) +: ListBox( pParent, nWinStyle ), + mpList(NULL), + mbUserDraw( bUserDraw ) +{ + EnableUserDraw( mbUserDraw); +} + +extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeGradientLB(Window *pParent, VclBuilder::stringmap &) +{ + GradientLB *pListBox = new GradientLB(pParent, WB_LEFT|WB_VCENTER|WB_3DLOOK|WB_SIMPLEMODE); + pListBox->EnableAutoSize(true); + return pListBox; +} + void GradientLB::Fill( const XGradientListRef &pList ) { mpList = pList; |