diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-09-29 14:06:42 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-09-30 18:14:25 +0200 |
commit | 64d764e02a848ed243409092d3fdcb4775db5153 (patch) | |
tree | 0f9167eb3959b9365bc95925c69c99d70cbab6b3 /include/svx/dlgctrl.hxx | |
parent | 20c6cff919e09bf3a42fa9e26cc3e7568743047d (diff) |
weld SvxLineEndDefTabPage
Change-Id: I3e947511bbffae4cd48388b17a8fb9a13d453bab
Reviewed-on: https://gerrit.libreoffice.org/61139
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/svx/dlgctrl.hxx')
-rw-r--r-- | include/svx/dlgctrl.hxx | 53 |
1 files changed, 52 insertions, 1 deletions
diff --git a/include/svx/dlgctrl.hxx b/include/svx/dlgctrl.hxx index 90c4fc6e8f6d..2061a211f312 100644 --- a/include/svx/dlgctrl.hxx +++ b/include/svx/dlgctrl.hxx @@ -268,7 +268,6 @@ public: void Modify(const XDashEntry& rEntry, sal_Int32 nPos, const BitmapEx& rBitmap ); }; - /************************************************************************/ class SAL_WARN_UNUSED SVX_DLLPUBLIC LineEndLB : public ListBox @@ -283,6 +282,27 @@ public: void Modify( const XLineEndEntry& rEntry, sal_Int32 nPos, const BitmapEx& rBitmap ); }; +class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxLineEndLB +{ +private: + std::unique_ptr<weld::ComboBox> m_xControl; + +public: + SvxLineEndLB(std::unique_ptr<weld::ComboBox> pControl); + + void Fill( const XLineEndListRef &pList, bool bStart = true ); + + void Append( const XLineEndEntry& rEntry, const BitmapEx& rBitmap ); + void Modify( const XLineEndEntry& rEntry, sal_Int32 nPos, const BitmapEx& rBitmap ); + + void clear() { m_xControl->clear(); } + void remove(int nPos) { m_xControl->remove(nPos); } + int get_active() const { return m_xControl->get_active(); } + void set_active(int nPos) { m_xControl->set_active(nPos); } + OUString get_active_text() const { return m_xControl->get_active_text(); } + void connect_changed(const Link<weld::ComboBox&, void>& rLink) { m_xControl->connect_changed(rLink); } + int get_count() const { return m_xControl->get_count(); } +}; class SdrObject; class SdrPathObj; @@ -353,6 +373,11 @@ public: mpBufferDevice->SetDrawMode(nDrawMode); } + Size GetOutputSize() const + { + return mpBufferDevice->PixelToLogic(GetOutputSizePixel()); + } + // dada read access SdrModel& getModel() const { @@ -398,6 +423,32 @@ public: virtual Size GetOptimalSize() const override; }; +class SAL_WARN_UNUSED SVX_DLLPUBLIC XLinePreview : public PreviewBase +{ +private: + SdrPathObj* mpLineObjA; + SdrPathObj* mpLineObjB; + SdrPathObj* mpLineObjC; + + Graphic* mpGraphic; + bool mbWithSymbol; + Size maSymbolSize; + +public: + XLinePreview(); + virtual void SetDrawingArea(weld::DrawingArea* pDrawingArea) override; + virtual ~XLinePreview() override; + + void SetLineAttributes(const SfxItemSet& rItemSet); + + void ShowSymbol( bool b ) { mbWithSymbol = b; }; + void SetSymbol( Graphic* p, const Size& s ); + void ResizeSymbol( const Size& s ); + + virtual void Paint( vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect ) override; + virtual void Resize() override; +}; + class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxXRectPreview : public PreviewBase { private: |