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 () override
 
weld::ContainergetTopLevel ()
 
weld::ContainergetContainer ()
 
- Public Member Functions inherited from svtools::ToolbarPopupBase
 ToolbarPopupBase (const css::uno::Reference< css::frame::XFrame > &rFrame)
 
virtual ~ToolbarPopupBase ()
 

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 long nPageLeftMargin, const long nPageRightMargin)
 
static void ExecuteMarginULChange (const long nPageTopMargin, const 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
 
long m_nPageLeftMargin
 
long m_nPageRightMargin
 
long m_nPageTopMargin
 
long m_nPageBottomMargin
 
bool m_bMirrored
 
const MapUnit m_eUnit
 
Size m_aPageSize
 
bool m_bUserCustomValuesAvailable
 
long m_nUserCustomPageLeftMargin
 
long m_nUserCustomPageRightMargin
 
long m_nUserCustomPageTopMargin
 
long m_nUserCustomPageBottomMargin
 
bool m_bUserCustomMirrored
 
bool m_bCustomValuesUsed
 

Additional Inherited Members

- Protected Member Functions inherited from svtools::ToolbarPopupBase
void AddStatusListener (const OUString &rCommandURL)
 
virtual void statusChanged (const css::frame::FeatureStateEvent &Event)
 
- Protected Attributes inherited from WeldToolbarPopup
std::unique_ptr< weld::Builderm_xBuilder
 
std::unique_ptr< weld::Containerm_xTopLevel
 
std::unique_ptr< weld::Containerm_xContainer
 
- Protected Attributes inherited from svtools::ToolbarPopupBase
css::uno::Reference< css::frame::XFrame > mxFrame
 
rtl::Reference< svt::FrameStatusListenermxStatusListener
 

Detailed Description

Definition at line 37 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.

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 long  nPageLeftMargin,
const long  nPageRightMargin 
)
staticprivate
void sw::sidebar::PageMarginControl::ExecuteMarginULChange ( const long  nPageTopMargin,
const 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 74 of file PageMarginControl.hxx.

Referenced by PageMarginControl().

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

Definition at line 83 of file PageMarginControl.hxx.

Referenced by StoreUserCustomValues().

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

Definition at line 70 of file PageMarginControl.hxx.

Referenced by PageMarginControl(), and StoreUserCustomValues().

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

Definition at line 81 of file PageMarginControl.hxx.

Referenced by FillHelpText(), and GetUserCustomValues().

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

Definition at line 76 of file PageMarginControl.hxx.

Referenced by PageMarginControl().

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

Definition at line 72 of file PageMarginControl.hxx.

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

long sw::sidebar::PageMarginControl::m_nPageBottomMargin
private

Definition at line 69 of file PageMarginControl.hxx.

Referenced by PageMarginControl(), and StoreUserCustomValues().

long sw::sidebar::PageMarginControl::m_nPageLeftMargin
private

Definition at line 66 of file PageMarginControl.hxx.

Referenced by PageMarginControl(), and StoreUserCustomValues().

long sw::sidebar::PageMarginControl::m_nPageRightMargin
private

Definition at line 67 of file PageMarginControl.hxx.

Referenced by PageMarginControl(), and StoreUserCustomValues().

long sw::sidebar::PageMarginControl::m_nPageTopMargin
private

Definition at line 68 of file PageMarginControl.hxx.

Referenced by PageMarginControl(), and StoreUserCustomValues().

long sw::sidebar::PageMarginControl::m_nUserCustomPageBottomMargin
private

Definition at line 80 of file PageMarginControl.hxx.

Referenced by FillHelpText(), and GetUserCustomValues().

long sw::sidebar::PageMarginControl::m_nUserCustomPageLeftMargin
private

Definition at line 77 of file PageMarginControl.hxx.

Referenced by FillHelpText(), and GetUserCustomValues().

long sw::sidebar::PageMarginControl::m_nUserCustomPageRightMargin
private

Definition at line 78 of file PageMarginControl.hxx.

Referenced by FillHelpText(), and GetUserCustomValues().

long sw::sidebar::PageMarginControl::m_nUserCustomPageTopMargin
private

Definition at line 79 of file PageMarginControl.hxx.

Referenced by FillHelpText(), and GetUserCustomValues().

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

Definition at line 59 of file PageMarginControl.hxx.

Referenced by PageMarginControl(), and SetMetricFieldMaxValues().

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

Definition at line 64 of file PageMarginControl.hxx.

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

Definition at line 53 of file PageMarginControl.hxx.

Referenced by PageMarginControl().

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

Definition at line 49 of file PageMarginControl.hxx.

Referenced by FillHelpText(), and PageMarginControl().

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

Definition at line 51 of file PageMarginControl.hxx.

Referenced by PageMarginControl().

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

Definition at line 56 of file PageMarginControl.hxx.

Referenced by PageMarginControl(), and SetMetricFieldMaxValues().

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

Definition at line 48 of file PageMarginControl.hxx.

Referenced by FillHelpText(), and PageMarginControl().

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

Definition at line 45 of file PageMarginControl.hxx.

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

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

Definition at line 46 of file PageMarginControl.hxx.

Referenced by FillHelpText(), and PageMarginControl().

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

Definition at line 54 of file PageMarginControl.hxx.

Referenced by PageMarginControl().

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

Definition at line 52 of file PageMarginControl.hxx.

Referenced by PageMarginControl().

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

Definition at line 57 of file PageMarginControl.hxx.

Referenced by PageMarginControl(), and SetMetricFieldMaxValues().

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

Definition at line 58 of file PageMarginControl.hxx.

Referenced by PageMarginControl(), and SetMetricFieldMaxValues().

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

Definition at line 47 of file PageMarginControl.hxx.

Referenced by FillHelpText(), and PageMarginControl().

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

Definition at line 62 of file PageMarginControl.hxx.

Referenced by FillHelpText(), and PageMarginControl().


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