diff options
Diffstat (limited to 'include/svx')
-rw-r--r-- | include/svx/frmdirlbox.hxx | 2 | ||||
-rw-r--r-- | include/svx/pagectrl.hxx | 110 |
2 files changed, 5 insertions, 107 deletions
diff --git a/include/svx/frmdirlbox.hxx b/include/svx/frmdirlbox.hxx index fb2208f59190..405065199da9 100644 --- a/include/svx/frmdirlbox.hxx +++ b/include/svx/frmdirlbox.hxx @@ -70,7 +70,7 @@ public: void set_active_id(SvxFrameDirection eDir) { m_xControl->set_active_id(OUString::number(static_cast<sal_uInt32>(eDir))); } void remove_id(SvxFrameDirection eDir) { m_xControl->remove_id(OUString::number(static_cast<sal_uInt32>(eDir))); } void hide() { m_xControl->hide(); } - void show() { m_xControl->show(); } + void show(bool bShow = true) { m_xControl->show(bShow); } int get_count() const { return m_xControl->get_count(); } /** Inserts a string with corresponding direction enum into the listbox. */ void append(SvxFrameDirection eDirection, const OUString& rString) diff --git a/include/svx/pagectrl.hxx b/include/svx/pagectrl.hxx index 074c936328c6..f2db16bbaa9b 100644 --- a/include/svx/pagectrl.hxx +++ b/include/svx/pagectrl.hxx @@ -28,112 +28,6 @@ class SvxBoxItem; enum class SvxPageUsage; enum class SvxFrameDirection; -class SVX_DLLPUBLIC SvxPageWindow : public vcl::Window -{ - using Window::GetBorder; - -private: - Size aWinSize; - Size aSize; - - long nTop; - long nBottom; - long nLeft; - long nRight; - - long nHdLeft; - long nHdRight; - long nHdDist; - long nHdHeight; - - long nFtLeft; - long nFtRight; - long nFtDist; - long nFtHeight; - - drawinglayer::attribute::SdrAllFillAttributesHelperPtr maHeaderFillAttributes; - drawinglayer::attribute::SdrAllFillAttributesHelperPtr maFooterFillAttributes; - drawinglayer::attribute::SdrAllFillAttributesHelperPtr maPageFillAttributes; - - bool bFooter : 1; - bool bHeader : 1; - - SvxPageUsage eUsage; - -protected: - virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect) override; - - virtual void DrawPage(vcl::RenderContext& rRenderContext, const Point& rPoint, - const bool bSecond, const bool bEnabled); - - void drawFillAttributes(vcl::RenderContext& rRenderContext, - const drawinglayer::attribute::SdrAllFillAttributesHelperPtr& rFillAttributes, - const tools::Rectangle& rPaintRange, const tools::Rectangle& rDefineRange); - -public: - SvxPageWindow(vcl::Window* pParent); - virtual ~SvxPageWindow() override; - - void setHeaderFillAttributes(const drawinglayer::attribute::SdrAllFillAttributesHelperPtr& rFillAttributes) - { - maHeaderFillAttributes = rFillAttributes; - } - void setFooterFillAttributes(const drawinglayer::attribute::SdrAllFillAttributesHelperPtr& rFillAttributes) - { - maFooterFillAttributes = rFillAttributes; - } - void setPageFillAttributes(const drawinglayer::attribute::SdrAllFillAttributesHelperPtr& rFillAttributes) - { - maPageFillAttributes = rFillAttributes; - } - const drawinglayer::attribute::SdrAllFillAttributesHelperPtr& getPageFillAttributes() const - { - return maPageFillAttributes; - } - void SetSize(const Size& rSize) - { - aSize = rSize; - } - const Size& GetSize() const - { - return aSize; - } - - void SetTop(long nNew) { nTop = nNew; } - void SetBottom(long nNew) { nBottom = nNew; } - void SetLeft(long nNew) { nLeft = nNew; } - void SetRight(long nNew) { nRight = nNew; } - - long GetTop() const { return nTop; } - long GetBottom() const { return nBottom; } - long GetLeft() const { return nLeft; } - long GetRight() const { return nRight; } - - void SetHdLeft(long nNew) { nHdLeft = nNew; } - void SetHdRight(long nNew) { nHdRight = nNew; } - void SetHdDist(long nNew) { nHdDist = nNew; } - void SetHdHeight(long nNew) { nHdHeight = nNew; } - - long GetHdDist() const { return nHdDist; } - long GetHdHeight() const { return nHdHeight; } - - void SetFtLeft(long nNew) { nFtLeft = nNew; } - void SetFtRight(long nNew) { nFtRight = nNew; } - void SetFtDist(long nNew) { nFtDist = nNew; } - void SetFtHeight(long nNew) { nFtHeight = nNew; } - - long GetFtDist() const { return nFtDist; } - long GetFtHeight() const { return nFtHeight; } - - void SetUsage(SvxPageUsage eU) { eUsage = eU; } - SvxPageUsage GetUsage() const { return eUsage; } - - void SetHeader( bool bNew ) { bHeader = bNew; } - void SetFooter( bool bNew ) { bFooter = bNew; } - - virtual Size GetOptimalSize() const override; -}; - class SVX_DLLPUBLIC PageWindow : public weld::CustomWidgetController { private: @@ -198,6 +92,10 @@ public: { maPageFillAttributes = rFillAttributes; } + const drawinglayer::attribute::SdrAllFillAttributesHelperPtr& getPageFillAttributes() const + { + return maPageFillAttributes; + } void SetSize(const Size& rSize) { aSize = rSize; |