diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2016-12-25 03:11:31 +0200 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2017-01-05 00:11:29 +0200 |
commit | 9ae8e4d35681890c5db153c53c74377428fa31d4 (patch) | |
tree | 6f2324fdcc009a4ad1386491c2681031db9c33b3 /include | |
parent | 835556b51afd21f47b1bd1910cad0b7389ca04a8 (diff) |
Base SvxLineEndWindow on ToolbarPopup
Fixes size and position issues under gtk3/wayland
Change-Id: I357a5935e2b44fd3d5effde8cf7d3499e26384db
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/linectrl.hxx | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/include/svx/linectrl.hxx b/include/svx/linectrl.hxx index bc6f82b6d409..2c476118d446 100644 --- a/include/svx/linectrl.hxx +++ b/include/svx/linectrl.hxx @@ -72,62 +72,6 @@ public: virtual VclPtr<vcl::Window> CreateItemWindow( vcl::Window *pParent ) override; }; - -// class SvxLineEndWindow - -class SvxLineEndWindow : public SfxPopupWindow -{ -private: - XLineEndListRef mpLineEndList; - VclPtr<ValueSet> mpLineEndSet; - sal_uInt16 mnCols; - sal_uInt16 mnLines; - Size maBmpSize; - css::uno::Reference< css::frame::XFrame > mxFrame; - - - DECL_LINK( SelectHdl, ValueSet*, void ); - void FillValueSet(); - void SetSize(); - void implInit(); - -protected: - /** This function is called when the window gets the focus. It grabs - the focus to the line ends value set so that it can be controlled with - the keyboard. - */ - virtual void GetFocus() override; - -public: - SvxLineEndWindow( sal_uInt16 nId, - const css::uno::Reference< css::frame::XFrame >& rFrame, - vcl::Window* pParentWindow, - const OUString& rWndTitle ); - virtual ~SvxLineEndWindow() override; - virtual void dispose() override; - - void StartSelection(); - - virtual void statusChanged( const css::frame::FeatureStateEvent& rEvent ) override; -}; - - -// class SvxLineEndToolBoxControl - - -class SVX_DLLPUBLIC SvxLineEndToolBoxControl : public SfxToolBoxControl -{ -public: - SFX_DECL_TOOLBOX_CONTROL(); - SvxLineEndToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); - virtual ~SvxLineEndToolBoxControl() override; - - virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, - const SfxPoolItem* pState ) override; - virtual VclPtr<SfxPopupWindow> CreatePopupWindow() override; -}; - - #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |