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

#include <PageMarginControl.hxx>

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

Public Member Functions

 PageMarginControl (PageMarginPopup *pControl, weld::Widget *pParent)
 
virtual void GrabFocus () override
 
virtual ~PageMarginControl () 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

 DECL_LINK (SelectMarginHdl, weld::Button &, void)
 
 DECL_LINK (ModifyLRMarginHdl, weld::MetricSpinButton &, void)
 
 DECL_LINK (ModifyULMarginHdl, weld::MetricSpinButton &, void)
 
 DECL_LINK (MoreButtonClickHdl_Impl, weld::Button &, void)
 
void SetMetricFieldMaxValues (const Size &rPageSize)
 
bool GetUserCustomValues ()
 
void StoreUserCustomValues ()
 
void FillHelpText (const bool bUserCustomValuesAvailable)
 

Static Private Member Functions

static void ExecuteMarginLRChange (const tools::Long nPageLeftMargin, const tools::Long nPageRightMargin)
 
static void ExecuteMarginULChange (const tools::Long nPageTopMargin, const tools::Long nPageBottomMargin)
 
static void ExecutePageLayoutChange (const bool bMirrored)
 

Private Attributes

std::unique_ptr< weld::Buttonm_xNarrow
 
std::unique_ptr< weld::Buttonm_xNormal
 
std::unique_ptr< weld::Buttonm_xWide
 
std::unique_ptr< weld::Buttonm_xMirrored
 
std::unique_ptr< weld::Buttonm_xLast
 
std::unique_ptr< weld::Buttonm_xMoreButton
 
std::unique_ptr< weld::Labelm_xLeft
 
std::unique_ptr< weld::Labelm_xRight
 
std::unique_ptr< weld::Labelm_xInner
 
std::unique_ptr< weld::Labelm_xOuter
 
std::unique_ptr< weld::MetricSpinButtonm_xLeftMarginEdit
 
std::unique_ptr< weld::MetricSpinButtonm_xRightMarginEdit
 
std::unique_ptr< weld::MetricSpinButtonm_xTopMarginEdit
 
std::unique_ptr< weld::MetricSpinButtonm_xBottomMarginEdit
 
std::unique_ptr< weld::MetricSpinButtonm_xWidthHeightField
 
rtl::Reference< PageMarginPopupm_xControl
 
tools::Long m_nPageLeftMargin
 
tools::Long m_nPageRightMargin
 
tools::Long m_nPageTopMargin
 
tools::Long m_nPageBottomMargin
 
bool m_bMirrored
 
const MapUnit m_eUnit
 
Size m_aPageSize
 
bool m_bUserCustomValuesAvailable
 
tools::Long m_nUserCustomPageLeftMargin
 
tools::Long m_nUserCustomPageRightMargin
 
tools::Long m_nUserCustomPageTopMargin
 
tools::Long m_nUserCustomPageBottomMargin
 
bool m_bUserCustomMirrored
 
bool m_bCustomValuesUsed
 

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 40 of file PageMarginControl.hxx.

Constructor & Destructor Documentation

◆ PageMarginControl()

sw::sidebar::PageMarginControl::PageMarginControl ( PageMarginPopup pControl,
weld::Widget pParent 
)
explicit

◆ ~PageMarginControl()

sw::sidebar::PageMarginControl::~PageMarginControl ( )
overridevirtual

Definition at line 232 of file PageMarginControl.cxx.

References StoreUserCustomValues().

Member Function Documentation

◆ DECL_LINK() [1/4]

sw::sidebar::PageMarginControl::DECL_LINK ( ModifyLRMarginHdl  ,
weld::MetricSpinButton ,
void   
)
private

◆ DECL_LINK() [2/4]

sw::sidebar::PageMarginControl::DECL_LINK ( ModifyULMarginHdl  ,
weld::MetricSpinButton ,
void   
)
private

◆ DECL_LINK() [3/4]

sw::sidebar::PageMarginControl::DECL_LINK ( MoreButtonClickHdl_Impl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [4/4]

sw::sidebar::PageMarginControl::DECL_LINK ( SelectMarginHdl  ,
weld::Button ,
void   
)
private

◆ ExecuteMarginLRChange()

void sw::sidebar::PageMarginControl::ExecuteMarginLRChange ( const tools::Long  nPageLeftMargin,
const tools::Long  nPageRightMargin 
)
staticprivate

◆ ExecuteMarginULChange()

void sw::sidebar::PageMarginControl::ExecuteMarginULChange ( const tools::Long  nPageTopMargin,
const tools::Long  nPageBottomMargin 
)
staticprivate

◆ ExecutePageLayoutChange()

void sw::sidebar::PageMarginControl::ExecutePageLayoutChange ( const bool  bMirrored)
staticprivate

Definition at line 447 of file PageMarginControl.cxx.

References SfxViewFrame::Current(), and SvxPageItem::SetPageUsage().

◆ FillHelpText()

void sw::sidebar::PageMarginControl::FillHelpText ( const bool  bUserCustomValuesAvailable)
private

◆ GetUserCustomValues()

bool sw::sidebar::PageMarginControl::GetUserCustomValues ( )
private

◆ GrabFocus()

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

Implements WeldToolbarPopup.

Definition at line 227 of file PageMarginControl.cxx.

References m_xMoreButton.

◆ SetMetricFieldMaxValues()

void sw::sidebar::PageMarginControl::SetMetricFieldMaxValues ( const Size rPageSize)
private

◆ StoreUserCustomValues()

void sw::sidebar::PageMarginControl::StoreUserCustomValues ( )
private

Member Data Documentation

◆ m_aPageSize

Size sw::sidebar::PageMarginControl::m_aPageSize
private

Definition at line 78 of file PageMarginControl.hxx.

Referenced by PageMarginControl().

◆ m_bCustomValuesUsed

bool sw::sidebar::PageMarginControl::m_bCustomValuesUsed
private

Definition at line 87 of file PageMarginControl.hxx.

Referenced by StoreUserCustomValues().

◆ m_bMirrored

bool sw::sidebar::PageMarginControl::m_bMirrored
private

Definition at line 74 of file PageMarginControl.hxx.

Referenced by PageMarginControl(), and StoreUserCustomValues().

◆ m_bUserCustomMirrored

bool sw::sidebar::PageMarginControl::m_bUserCustomMirrored
private

Definition at line 85 of file PageMarginControl.hxx.

Referenced by FillHelpText(), and GetUserCustomValues().

◆ m_bUserCustomValuesAvailable

bool sw::sidebar::PageMarginControl::m_bUserCustomValuesAvailable
private

Definition at line 80 of file PageMarginControl.hxx.

Referenced by PageMarginControl().

◆ m_eUnit

const MapUnit sw::sidebar::PageMarginControl::m_eUnit
private

Definition at line 76 of file PageMarginControl.hxx.

Referenced by FillHelpText(), PageMarginControl(), and SetMetricFieldMaxValues().

◆ m_nPageBottomMargin

tools::Long sw::sidebar::PageMarginControl::m_nPageBottomMargin
private

Definition at line 73 of file PageMarginControl.hxx.

Referenced by PageMarginControl(), and StoreUserCustomValues().

◆ m_nPageLeftMargin

tools::Long sw::sidebar::PageMarginControl::m_nPageLeftMargin
private

Definition at line 70 of file PageMarginControl.hxx.

Referenced by PageMarginControl(), and StoreUserCustomValues().

◆ m_nPageRightMargin

tools::Long sw::sidebar::PageMarginControl::m_nPageRightMargin
private

Definition at line 71 of file PageMarginControl.hxx.

Referenced by PageMarginControl(), and StoreUserCustomValues().

◆ m_nPageTopMargin

tools::Long sw::sidebar::PageMarginControl::m_nPageTopMargin
private

Definition at line 72 of file PageMarginControl.hxx.

Referenced by PageMarginControl(), and StoreUserCustomValues().

◆ m_nUserCustomPageBottomMargin

tools::Long sw::sidebar::PageMarginControl::m_nUserCustomPageBottomMargin
private

Definition at line 84 of file PageMarginControl.hxx.

Referenced by FillHelpText(), and GetUserCustomValues().

◆ m_nUserCustomPageLeftMargin

tools::Long sw::sidebar::PageMarginControl::m_nUserCustomPageLeftMargin
private

Definition at line 81 of file PageMarginControl.hxx.

Referenced by FillHelpText(), and GetUserCustomValues().

◆ m_nUserCustomPageRightMargin

tools::Long sw::sidebar::PageMarginControl::m_nUserCustomPageRightMargin
private

Definition at line 82 of file PageMarginControl.hxx.

Referenced by FillHelpText(), and GetUserCustomValues().

◆ m_nUserCustomPageTopMargin

tools::Long sw::sidebar::PageMarginControl::m_nUserCustomPageTopMargin
private

Definition at line 83 of file PageMarginControl.hxx.

Referenced by FillHelpText(), and GetUserCustomValues().

◆ m_xBottomMarginEdit

std::unique_ptr<weld::MetricSpinButton> sw::sidebar::PageMarginControl::m_xBottomMarginEdit
private

Definition at line 63 of file PageMarginControl.hxx.

Referenced by PageMarginControl(), and SetMetricFieldMaxValues().

◆ m_xControl

rtl::Reference<PageMarginPopup> sw::sidebar::PageMarginControl::m_xControl
private

Definition at line 68 of file PageMarginControl.hxx.

◆ m_xInner

std::unique_ptr<weld::Label> sw::sidebar::PageMarginControl::m_xInner
private

Definition at line 57 of file PageMarginControl.hxx.

Referenced by PageMarginControl().

◆ m_xLast

std::unique_ptr<weld::Button> sw::sidebar::PageMarginControl::m_xLast
private

Definition at line 52 of file PageMarginControl.hxx.

Referenced by FillHelpText(), and PageMarginControl().

◆ m_xLeft

std::unique_ptr<weld::Label> sw::sidebar::PageMarginControl::m_xLeft
private

Definition at line 55 of file PageMarginControl.hxx.

Referenced by PageMarginControl().

◆ m_xLeftMarginEdit

std::unique_ptr<weld::MetricSpinButton> sw::sidebar::PageMarginControl::m_xLeftMarginEdit
private

Definition at line 60 of file PageMarginControl.hxx.

Referenced by PageMarginControl(), and SetMetricFieldMaxValues().

◆ m_xMirrored

std::unique_ptr<weld::Button> sw::sidebar::PageMarginControl::m_xMirrored
private

Definition at line 51 of file PageMarginControl.hxx.

Referenced by FillHelpText(), and PageMarginControl().

◆ m_xMoreButton

std::unique_ptr<weld::Button> sw::sidebar::PageMarginControl::m_xMoreButton
private

Definition at line 53 of file PageMarginControl.hxx.

Referenced by GrabFocus(), and PageMarginControl().

◆ m_xNarrow

std::unique_ptr<weld::Button> sw::sidebar::PageMarginControl::m_xNarrow
private

Definition at line 48 of file PageMarginControl.hxx.

Referenced by FillHelpText(), and PageMarginControl().

◆ m_xNormal

std::unique_ptr<weld::Button> sw::sidebar::PageMarginControl::m_xNormal
private

Definition at line 49 of file PageMarginControl.hxx.

Referenced by FillHelpText(), and PageMarginControl().

◆ m_xOuter

std::unique_ptr<weld::Label> sw::sidebar::PageMarginControl::m_xOuter
private

Definition at line 58 of file PageMarginControl.hxx.

Referenced by PageMarginControl().

◆ m_xRight

std::unique_ptr<weld::Label> sw::sidebar::PageMarginControl::m_xRight
private

Definition at line 56 of file PageMarginControl.hxx.

Referenced by PageMarginControl().

◆ m_xRightMarginEdit

std::unique_ptr<weld::MetricSpinButton> sw::sidebar::PageMarginControl::m_xRightMarginEdit
private

Definition at line 61 of file PageMarginControl.hxx.

Referenced by PageMarginControl(), and SetMetricFieldMaxValues().

◆ m_xTopMarginEdit

std::unique_ptr<weld::MetricSpinButton> sw::sidebar::PageMarginControl::m_xTopMarginEdit
private

Definition at line 62 of file PageMarginControl.hxx.

Referenced by PageMarginControl(), and SetMetricFieldMaxValues().

◆ m_xWide

std::unique_ptr<weld::Button> sw::sidebar::PageMarginControl::m_xWide
private

Definition at line 50 of file PageMarginControl.hxx.

Referenced by FillHelpText(), and PageMarginControl().

◆ m_xWidthHeightField

std::unique_ptr<weld::MetricSpinButton> sw::sidebar::PageMarginControl::m_xWidthHeightField
private

Definition at line 66 of file PageMarginControl.hxx.

Referenced by FillHelpText(), and PageMarginControl().


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