From 9e5afc4e1be0ae76af3b66bc981d63b1a93c0a70 Mon Sep 17 00:00:00 2001 From: Olivier Hallot Date: Wed, 11 Sep 2013 21:34:32 -0300 Subject: Convert connector tab page to widget UI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also: * Rename dimensionline.ui to dimensionlinetabpage for naming consistency * Fix connector and measure dialogs for connectors and dimension lines Change-Id: I921890b33a5f9807a6e12341ef7f374312abfc8b Reviewed-on: https://gerrit.libreoffice.org/5920 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- include/svx/connctrl.hxx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'include/svx') diff --git a/include/svx/connctrl.hxx b/include/svx/connctrl.hxx index a559f615c14c..945746d28a7f 100644 --- a/include/svx/connctrl.hxx +++ b/include/svx/connctrl.hxx @@ -37,22 +37,23 @@ class SVX_DLLPUBLIC SvxXConnectionPreview : public Control friend class SvxConnectionPage; private: - const SfxItemSet& rAttrs; SdrEdgeObj* pEdgeObj; SdrObjList* pObjList; const SdrView* pView; SVX_DLLPRIVATE void SetStyles(); + SVX_DLLPRIVATE void AdaptSize(); public: - SvxXConnectionPreview( Window* pParent, const ResId& rResId, - const SfxItemSet& rInAttrs ); - ~SvxXConnectionPreview(); + SvxXConnectionPreview( Window* pParent, WinBits nStyle); + virtual ~SvxXConnectionPreview(); virtual void Paint( const Rectangle& rRect ); + virtual void Resize(); + virtual Size GetOptimalSize() const; virtual void MouseButtonDown( const MouseEvent& rMEvt ); void SetAttributes( const SfxItemSet& rInAttrs ); - sal_uInt16 GetLineDeltaAnz(); + sal_uInt16 GetLineDeltaAnz(); void Construct(); void SetView( const SdrView* pSdrView ) { pView = pSdrView; } -- cgit