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 (const css::uno::Reference< css::frame::XFrame > &rFrame, weld::Widget *pParent, const OUString &rUIFile, const OString &rId)
 
virtual ~WeldToolbarPopup ()
 
weld::ContainergetTopLevel ()
 
weld::ContainergetContainer ()
 
void AddStatusListener (const OUString &rCommandURL)
 
virtual void statusChanged (const css::frame::FeatureStateEvent &Event)
 

Private Member Functions

 DECL_LINK (SelectMarginHdl, weld::Button &, void)
 
 DECL_LINK (ModifyLRMarginHdl, weld::MetricSpinButton &, void)
 
 DECL_LINK (ModifyULMarginHdl, weld::MetricSpinButton &, 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::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

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

Definition at line 234 of file PageMarginControl.cxx.

References StoreUserCustomValues().

Member Function Documentation

sw::sidebar::PageMarginControl::DECL_LINK ( SelectMarginHdl  ,
weld::Button ,
void   
)
private
sw::sidebar::PageMarginControl::DECL_LINK ( ModifyLRMarginHdl  ,
weld::MetricSpinButton ,
void   
)
private
sw::sidebar::PageMarginControl::DECL_LINK ( ModifyULMarginHdl  ,
weld::MetricSpinButton ,
void   
)
private
void sw::sidebar::PageMarginControl::ExecuteMarginLRChange ( const tools::Long  nPageLeftMargin,
const tools::Long  nPageRightMargin 
)
staticprivate
void sw::sidebar::PageMarginControl::ExecuteMarginULChange ( const tools::Long  nPageTopMargin,
const tools::Long  nPageBottomMargin 
)
staticprivate
void sw::sidebar::PageMarginControl::ExecutePageLayoutChange ( const bool  bMirrored)
staticprivate
void sw::sidebar::PageMarginControl::FillHelpText ( const bool  bUserCustomValuesAvailable)
private
bool sw::sidebar::PageMarginControl::GetUserCustomValues ( )
private
void sw::sidebar::PageMarginControl::GrabFocus ( )
overridevirtual

Implements WeldToolbarPopup.

Definition at line 229 of file PageMarginControl.cxx.

References m_xNarrow.

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

Member Data Documentation

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

Definition at line 77 of file PageMarginControl.hxx.

Referenced by PageMarginControl().

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

Definition at line 86 of file PageMarginControl.hxx.

Referenced by StoreUserCustomValues().

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

Definition at line 73 of file PageMarginControl.hxx.

Referenced by PageMarginControl(), and StoreUserCustomValues().

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

Definition at line 84 of file PageMarginControl.hxx.

Referenced by FillHelpText(), and GetUserCustomValues().

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

Definition at line 79 of file PageMarginControl.hxx.

Referenced by PageMarginControl().

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

Definition at line 75 of file PageMarginControl.hxx.

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

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

Definition at line 72 of file PageMarginControl.hxx.

Referenced by PageMarginControl(), and StoreUserCustomValues().

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

Definition at line 69 of file PageMarginControl.hxx.

Referenced by PageMarginControl(), and StoreUserCustomValues().

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

Definition at line 70 of file PageMarginControl.hxx.

Referenced by PageMarginControl(), and StoreUserCustomValues().

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

Definition at line 71 of file PageMarginControl.hxx.

Referenced by PageMarginControl(), and StoreUserCustomValues().

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

Definition at line 83 of file PageMarginControl.hxx.

Referenced by FillHelpText(), and GetUserCustomValues().

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

Definition at line 80 of file PageMarginControl.hxx.

Referenced by FillHelpText(), and GetUserCustomValues().

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

Definition at line 81 of file PageMarginControl.hxx.

Referenced by FillHelpText(), and GetUserCustomValues().

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

Definition at line 82 of file PageMarginControl.hxx.

Referenced by FillHelpText(), and GetUserCustomValues().

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

Definition at line 62 of file PageMarginControl.hxx.

Referenced by PageMarginControl(), and SetMetricFieldMaxValues().

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

Definition at line 67 of file PageMarginControl.hxx.

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

Definition at line 56 of file PageMarginControl.hxx.

Referenced by PageMarginControl().

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

Definition at line 52 of file PageMarginControl.hxx.

Referenced by FillHelpText(), and PageMarginControl().

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

Definition at line 54 of file PageMarginControl.hxx.

Referenced by PageMarginControl().

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

Definition at line 59 of file PageMarginControl.hxx.

Referenced by PageMarginControl(), and SetMetricFieldMaxValues().

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

Definition at line 51 of file PageMarginControl.hxx.

Referenced by FillHelpText(), and PageMarginControl().

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

Definition at line 48 of file PageMarginControl.hxx.

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

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

Definition at line 49 of file PageMarginControl.hxx.

Referenced by FillHelpText(), and PageMarginControl().

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

Definition at line 57 of file PageMarginControl.hxx.

Referenced by PageMarginControl().

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

Definition at line 55 of file PageMarginControl.hxx.

Referenced by PageMarginControl().

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

Definition at line 60 of file PageMarginControl.hxx.

Referenced by PageMarginControl(), and SetMetricFieldMaxValues().

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

Definition at line 61 of file PageMarginControl.hxx.

Referenced by PageMarginControl(), and SetMetricFieldMaxValues().

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

Definition at line 50 of file PageMarginControl.hxx.

Referenced by FillHelpText(), and PageMarginControl().

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

Definition at line 65 of file PageMarginControl.hxx.

Referenced by FillHelpText(), and PageMarginControl().


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