LibreOffice Module sw (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
sw::sidebar::PageOrientationControl Class Referencefinal

#include <PageOrientationControl.hxx>

Inheritance diagram for sw::sidebar::PageOrientationControl:
[legend]
Collaboration diagram for sw::sidebar::PageOrientationControl:
[legend]

Public Member Functions

 PageOrientationControl (PageOrientationPopup *pControl, weld::Widget *pParent)
 
virtual void GrabFocus () override
 
virtual ~PageOrientationControl () override
 
- Public Member Functions inherited from WeldToolbarPopup
 WeldToolbarPopup (css::uno::Reference< css::frame::XFrame > xFrame, weld::Widget *pParent, const OUString &rUIFile, const OUString &rId)
 
virtual ~WeldToolbarPopup ()
 
weld::ContainergetTopLevel ()
 
weld::ContainergetContainer ()
 
void AddStatusListener (const OUString &rCommandURL)
 
virtual void statusChanged (const css::frame::FeatureStateEvent &Event)
 
virtual void GrabFocus ()=0
 

Private Member Functions

void ExecuteMarginULChange (const tools::Long nPageTopMargin, const tools::Long nPageBottomMargin)
 
void ExecuteMarginLRChange (const tools::Long nPageLeftMargin, const tools::Long nPageRightMargin)
 
void ExecuteOrientationChange (const bool bLandscape)
 
 DECL_LINK (ImplOrientationHdl, weld::Button &, void)
 

Private Attributes

std::unique_ptr< weld::Buttonm_xPortrait
 
std::unique_ptr< weld::Buttonm_xLandscape
 
rtl::Reference< PageOrientationPopupm_xControl
 
std::unique_ptr< SvxPageItemmpPageItem
 
std::unique_ptr< SvxSizeItemmpPageSizeItem
 
std::unique_ptr< SvxLongLRSpaceItemmpPageLRMarginItem
 
std::unique_ptr< SvxLongULSpaceItemmpPageULMarginItem
 

Additional Inherited Members

- Protected Attributes inherited from WeldToolbarPopup
std::unique_ptr< weld::Builderm_xBuilder
 
std::unique_ptr< weld::Containerm_xTopLevel
 
std::unique_ptr< weld::Containerm_xContainer
 
css::uno::Reference< css::frame::XFrame > m_xFrame
 
rtl::Reference< svt::FrameStatusListenerm_xStatusListener
 

Detailed Description

Definition at line 31 of file PageOrientationControl.hxx.

Constructor & Destructor Documentation

◆ PageOrientationControl()

sw::sidebar::PageOrientationControl::PageOrientationControl ( PageOrientationPopup pControl,
weld::Widget pParent 
)
explicit

Definition at line 52 of file PageOrientationControl.cxx.

References LINK, m_xControl, m_xLandscape, and m_xPortrait.

◆ ~PageOrientationControl()

sw::sidebar::PageOrientationControl::~PageOrientationControl ( )
overridevirtual

Definition at line 71 of file PageOrientationControl.cxx.

Member Function Documentation

◆ DECL_LINK()

sw::sidebar::PageOrientationControl::DECL_LINK ( ImplOrientationHdl  ,
weld::Button ,
void   
)
private

◆ ExecuteMarginLRChange()

void sw::sidebar::PageOrientationControl::ExecuteMarginLRChange ( const tools::Long  nPageLeftMargin,
const tools::Long  nPageRightMargin 
)
private

Definition at line 75 of file PageOrientationControl.cxx.

References SfxViewFrame::Current(), and mpPageLRMarginItem.

Referenced by ExecuteOrientationChange().

◆ ExecuteMarginULChange()

void sw::sidebar::PageOrientationControl::ExecuteMarginULChange ( const tools::Long  nPageTopMargin,
const tools::Long  nPageBottomMargin 
)
private

Definition at line 86 of file PageOrientationControl.cxx.

References SfxViewFrame::Current(), and mpPageULMarginItem.

Referenced by ExecuteOrientationChange().

◆ ExecuteOrientationChange()

void sw::sidebar::PageOrientationControl::ExecuteOrientationChange ( const bool  bLandscape)
private

◆ GrabFocus()

void sw::sidebar::PageOrientationControl::GrabFocus ( )
overridevirtual

Implements WeldToolbarPopup.

Definition at line 66 of file PageOrientationControl.cxx.

References m_xPortrait.

Member Data Documentation

◆ m_xControl

rtl::Reference<PageOrientationPopup> sw::sidebar::PageOrientationControl::m_xControl
private

Definition at line 41 of file PageOrientationControl.hxx.

◆ m_xLandscape

std::unique_ptr<weld::Button> sw::sidebar::PageOrientationControl::m_xLandscape
private

Definition at line 40 of file PageOrientationControl.hxx.

Referenced by PageOrientationControl().

◆ m_xPortrait

std::unique_ptr<weld::Button> sw::sidebar::PageOrientationControl::m_xPortrait
private

Definition at line 39 of file PageOrientationControl.hxx.

Referenced by GrabFocus(), and PageOrientationControl().

◆ mpPageItem

std::unique_ptr<SvxPageItem> sw::sidebar::PageOrientationControl::mpPageItem
private

Definition at line 43 of file PageOrientationControl.hxx.

Referenced by ExecuteOrientationChange().

◆ mpPageLRMarginItem

std::unique_ptr<SvxLongLRSpaceItem> sw::sidebar::PageOrientationControl::mpPageLRMarginItem
private

Definition at line 45 of file PageOrientationControl.hxx.

Referenced by ExecuteMarginLRChange(), and ExecuteOrientationChange().

◆ mpPageSizeItem

std::unique_ptr<SvxSizeItem> sw::sidebar::PageOrientationControl::mpPageSizeItem
private

Definition at line 44 of file PageOrientationControl.hxx.

Referenced by ExecuteOrientationChange().

◆ mpPageULMarginItem

std::unique_ptr<SvxLongULSpaceItem> sw::sidebar::PageOrientationControl::mpPageULMarginItem
private

Definition at line 46 of file PageOrientationControl.hxx.

Referenced by ExecuteMarginULChange(), and ExecuteOrientationChange().


The documentation for this class was generated from the following files: