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

#include <PageFormatPanel.hxx>

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

Public Member Functions

virtual void NotifyItemUpdate (const sal_uInt16 nSId, const SfxItemState eState, const SfxPoolItem *pState) override
 
virtual void GetControlState (const sal_uInt16, boost::property_tree::ptree &) override
 
 PageFormatPanel (weld::Widget *pParent, SfxBindings *pBindings)
 
virtual ~PageFormatPanel () override
 
- Public Member Functions inherited from PanelLayout
 PanelLayout (weld::Widget *pParent, const OUString &rID, const OUString &rUIXMLDescription)
 
void SetPanel (sfx2::sidebar::Panel *pPanel)
 
virtual ~PanelLayout ()
 
Size get_preferred_size () const
 
void queue_resize ()
 
- Public Member Functions inherited from sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
virtual void NotifyItemUpdate (const sal_uInt16 nSId, const SfxItemState eState, const SfxPoolItem *pState)=0
 
virtual void GetControlState (const sal_uInt16 nSId, boost::property_tree::ptree &rState)=0
 
virtual ~ItemUpdateReceiverInterface ()
 

Static Public Member Functions

static std::unique_ptr< PanelLayoutCreate (weld::Widget *pParent, SfxBindings *pBindings)
 
static FieldUnit GetCurrentUnit (SfxItemState eState, const SfxPoolItem *pState)
 

Private Member Functions

void Initialize ()
 
void SetMarginFieldUnit ()
 
void UpdateMarginBox ()
 
void ExecuteMarginLRChange (const tools::Long nPageLeftMargin, const tools::Long nPageRightMargin)
 
void ExecuteMarginULChange (const tools::Long nPageTopMargin, const tools::Long nPageBottomMargin)
 
 DECL_LINK (PaperFormatModifyHdl, weld::ComboBox &, void)
 
 DECL_LINK (PaperSizeModifyHdl, weld::MetricSpinButton &, void)
 
 DECL_LINK (PaperModifyMarginHdl, weld::ComboBox &, void)
 

Private Attributes

SfxBindingsmpBindings
 
std::unique_ptr< SvxPaperSizeListBoxmxPaperSizeBox
 
std::unique_ptr< SvxRelativeFieldmxPaperWidth
 
std::unique_ptr< SvxRelativeFieldmxPaperHeight
 
std::unique_ptr< weld::ComboBoxmxPaperOrientation
 
std::unique_ptr< weld::ComboBoxmxMarginSelectBox
 
std::unique_ptr< weld::LabelmxCustomEntry
 
::sfx2::sidebar::ControllerItem maPaperSizeController
 
::sfx2::sidebar::ControllerItem maPaperOrientationController
 
::sfx2::sidebar::ControllerItem maMetricController
 
::sfx2::sidebar::ControllerItem maSwPageLRControl
 
::sfx2::sidebar::ControllerItem maSwPageULControl
 
std::unique_ptr< SvxPageItemmpPageItem
 
std::unique_ptr< SvxLongLRSpaceItemmpPageLRMarginItem
 
std::unique_ptr< SvxLongULSpaceItemmpPageULMarginItem
 
FieldUnit meFUnit
 
MapUnit meUnit
 
tools::Long mnPageLeftMargin
 
tools::Long mnPageRightMargin
 
tools::Long mnPageTopMargin
 
tools::Long mnPageBottomMargin
 
OUString m_aCustomEntry
 

Additional Inherited Members

- Protected Member Functions inherited from PanelLayout
virtual void DataChanged (const DataChangedEvent &rEvent)
 
virtual void DumpAsPropertyTree (tools::JsonWriter &)
 
virtual weld::WindowGetFrameWeld () const
 
- Protected Attributes inherited from PanelLayout
std::unique_ptr< weld::Builderm_xBuilder
 
std::unique_ptr< weld::Containerm_xContainer
 
sfx2::sidebar::Panelm_pPanel
 

Detailed Description

Definition at line 36 of file PageFormatPanel.hxx.

Constructor & Destructor Documentation

◆ PageFormatPanel()

sw::sidebar::PageFormatPanel::PageFormatPanel ( weld::Widget pParent,
SfxBindings pBindings 
)

Definition at line 83 of file PageFormatPanel.cxx.

References CM, GetModuleFieldUnit(), and Initialize().

◆ ~PageFormatPanel()

sw::sidebar::PageFormatPanel::~PageFormatPanel ( )
overridevirtual

Member Function Documentation

◆ Create()

std::unique_ptr< PanelLayout > sw::sidebar::PageFormatPanel::Create ( weld::Widget pParent,
SfxBindings pBindings 
)
static

Definition at line 46 of file PageFormatPanel.cxx.

◆ DECL_LINK() [1/3]

sw::sidebar::PageFormatPanel::DECL_LINK ( PaperFormatModifyHdl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_LINK() [2/3]

sw::sidebar::PageFormatPanel::DECL_LINK ( PaperModifyMarginHdl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_LINK() [3/3]

sw::sidebar::PageFormatPanel::DECL_LINK ( PaperSizeModifyHdl  ,
weld::MetricSpinButton ,
void   
)
private

◆ ExecuteMarginLRChange()

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

◆ ExecuteMarginULChange()

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

◆ GetControlState()

virtual void sw::sidebar::PageFormatPanel::GetControlState ( const  sal_uInt16,
boost::property_tree::ptree &   
)
inlineoverridevirtual

◆ GetCurrentUnit()

FieldUnit sw::sidebar::PageFormatPanel::GetCurrentUnit ( SfxItemState  eState,
const SfxPoolItem pState 
)
static

◆ Initialize()

void sw::sidebar::PageFormatPanel::Initialize ( )
private

◆ NotifyItemUpdate()

void sw::sidebar::PageFormatPanel::NotifyItemUpdate ( const sal_uInt16  nSId,
const SfxItemState  eState,
const SfxPoolItem pState 
)
overridevirtual

◆ SetMarginFieldUnit()

void sw::sidebar::PageFormatPanel::SetMarginFieldUnit ( )
private

◆ UpdateMarginBox()

void sw::sidebar::PageFormatPanel::UpdateMarginBox ( )
private

Member Data Documentation

◆ m_aCustomEntry

OUString sw::sidebar::PageFormatPanel::m_aCustomEntry
private

Definition at line 89 of file PageFormatPanel.hxx.

Referenced by Initialize(), and UpdateMarginBox().

◆ maMetricController

::sfx2::sidebar::ControllerItem sw::sidebar::PageFormatPanel::maMetricController
private

Definition at line 74 of file PageFormatPanel.hxx.

Referenced by ~PageFormatPanel().

◆ maPaperOrientationController

::sfx2::sidebar::ControllerItem sw::sidebar::PageFormatPanel::maPaperOrientationController
private

Definition at line 73 of file PageFormatPanel.hxx.

Referenced by ~PageFormatPanel().

◆ maPaperSizeController

::sfx2::sidebar::ControllerItem sw::sidebar::PageFormatPanel::maPaperSizeController
private

Definition at line 72 of file PageFormatPanel.hxx.

Referenced by Initialize(), NotifyItemUpdate(), and ~PageFormatPanel().

◆ maSwPageLRControl

::sfx2::sidebar::ControllerItem sw::sidebar::PageFormatPanel::maSwPageLRControl
private

Definition at line 75 of file PageFormatPanel.hxx.

Referenced by ~PageFormatPanel().

◆ maSwPageULControl

::sfx2::sidebar::ControllerItem sw::sidebar::PageFormatPanel::maSwPageULControl
private

Definition at line 76 of file PageFormatPanel.hxx.

Referenced by ~PageFormatPanel().

◆ meFUnit

FieldUnit sw::sidebar::PageFormatPanel::meFUnit
private

Definition at line 82 of file PageFormatPanel.hxx.

Referenced by Initialize(), NotifyItemUpdate(), and SetMarginFieldUnit().

◆ meUnit

MapUnit sw::sidebar::PageFormatPanel::meUnit
private

Definition at line 83 of file PageFormatPanel.hxx.

Referenced by Initialize(), and NotifyItemUpdate().

◆ mnPageBottomMargin

tools::Long sw::sidebar::PageFormatPanel::mnPageBottomMargin
private

Definition at line 88 of file PageFormatPanel.hxx.

Referenced by UpdateMarginBox().

◆ mnPageLeftMargin

tools::Long sw::sidebar::PageFormatPanel::mnPageLeftMargin
private

Definition at line 85 of file PageFormatPanel.hxx.

Referenced by UpdateMarginBox().

◆ mnPageRightMargin

tools::Long sw::sidebar::PageFormatPanel::mnPageRightMargin
private

Definition at line 86 of file PageFormatPanel.hxx.

Referenced by UpdateMarginBox().

◆ mnPageTopMargin

tools::Long sw::sidebar::PageFormatPanel::mnPageTopMargin
private

Definition at line 87 of file PageFormatPanel.hxx.

Referenced by UpdateMarginBox().

◆ mpBindings

SfxBindings* sw::sidebar::PageFormatPanel::mpBindings
private

Definition at line 63 of file PageFormatPanel.hxx.

Referenced by ExecuteMarginLRChange(), ExecuteMarginULChange(), and Initialize().

◆ mpPageItem

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

Definition at line 78 of file PageFormatPanel.hxx.

Referenced by NotifyItemUpdate(), UpdateMarginBox(), and ~PageFormatPanel().

◆ mpPageLRMarginItem

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

◆ mpPageULMarginItem

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

◆ mxCustomEntry

std::unique_ptr<weld::Label> sw::sidebar::PageFormatPanel::mxCustomEntry
private

Definition at line 70 of file PageFormatPanel.hxx.

Referenced by Initialize(), and ~PageFormatPanel().

◆ mxMarginSelectBox

std::unique_ptr<weld::ComboBox> sw::sidebar::PageFormatPanel::mxMarginSelectBox
private

◆ mxPaperHeight

std::unique_ptr<SvxRelativeField> sw::sidebar::PageFormatPanel::mxPaperHeight
private

Definition at line 67 of file PageFormatPanel.hxx.

Referenced by Initialize(), NotifyItemUpdate(), and ~PageFormatPanel().

◆ mxPaperOrientation

std::unique_ptr<weld::ComboBox> sw::sidebar::PageFormatPanel::mxPaperOrientation
private

Definition at line 68 of file PageFormatPanel.hxx.

Referenced by Initialize(), NotifyItemUpdate(), and ~PageFormatPanel().

◆ mxPaperSizeBox

std::unique_ptr<SvxPaperSizeListBox> sw::sidebar::PageFormatPanel::mxPaperSizeBox
private

Definition at line 65 of file PageFormatPanel.hxx.

Referenced by Initialize(), NotifyItemUpdate(), and ~PageFormatPanel().

◆ mxPaperWidth

std::unique_ptr<SvxRelativeField> sw::sidebar::PageFormatPanel::mxPaperWidth
private

Definition at line 66 of file PageFormatPanel.hxx.

Referenced by Initialize(), NotifyItemUpdate(), and ~PageFormatPanel().


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