diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-11-15 12:49:18 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-11-15 12:52:00 +0000 |
commit | 2dec3d1d4f3e91ce005bb3b5362b826e7c7590c8 (patch) | |
tree | e7d4f4278cd003d740323ea4379edeb4ac2df56a /svx | |
parent | 9013a3a76dd773cf3f292267c9aac8046f19f0aa (diff) |
convert 500th dialog (vectorize) to .ui
Change-Id: Ib1a8716091a16eb970c9f218f4a8e496de72ff51
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/graphctl.cxx | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/svx/source/dialog/graphctl.cxx b/svx/source/dialog/graphctl.cxx index c4fa12b48667..4fc18b71cbeb 100644 --- a/svx/source/dialog/graphctl.cxx +++ b/svx/source/dialog/graphctl.cxx @@ -74,6 +74,35 @@ GraphCtrl::GraphCtrl( Window* pParent, const ResId& rResId ) : EnableRTL( sal_False ); } +GraphCtrl::GraphCtrl( Window* pParent, WinBits nStyle ) : + Control ( pParent, nStyle ), + aMap100 ( MAP_100TH_MM ), + nWinStyle ( 0 ), + eObjKind ( OBJ_NONE ), + nPolyEdit ( 0 ), + bEditMode ( sal_False ), + bSdrMode ( sal_False ), + bAnim ( sal_False ), + mpAccContext ( NULL ), + pModel ( NULL ), + pView ( NULL ) +{ + pUserCall = new GraphCtrlUserCall( *this ); + aUpdateTimer.SetTimeout( 500 ); + aUpdateTimer.SetTimeoutHdl( LINK( this, GraphCtrl, UpdateHdl ) ); + aUpdateTimer.Start(); + EnableRTL( sal_False ); +} + +extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeGraphCtrl(Window *pParent, VclBuilder::stringmap &rMap) +{ + WinBits nWinStyle = 0; + OString sBorder = VclBuilder::extractCustomProperty(rMap); + if (!sBorder.isEmpty()) + nWinStyle |= WB_BORDER; + return new GraphCtrl(pParent, nWinStyle); +} + GraphCtrl::~GraphCtrl() { if( mpAccContext ) |