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

#include <PageHeaderPanel.hxx>

Inheritance diagram for sw::sidebar::PageHeaderPanel:
[legend]
Collaboration diagram for sw::sidebar::PageHeaderPanel:
[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
 
SfxBindingsGetBindings () const
 
 PageHeaderPanel (weld::Widget *pParent, SfxBindings *pBindings)
 
virtual ~PageHeaderPanel () 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)
 

Private Member Functions

void Initialize ()
 
void SetMarginsAndSpacingFieldUnit ()
 
void UpdateHeaderCheck ()
 
void UpdateMarginControl ()
 
void UpdateSpacingControl ()
 
void UpdateLayoutControl ()
 
 DECL_LINK (HeaderToggleHdl, weld::Toggleable &, void)
 
 DECL_LINK (HeaderLRMarginHdl, weld::ComboBox &, void)
 
 DECL_LINK (HeaderSpacingHdl, weld::ComboBox &, void)
 
 DECL_LINK (HeaderLayoutHdl, weld::ComboBox &, void)
 

Static Private Member Functions

static FieldUnit GetCurrentUnit (SfxItemState eState, const SfxPoolItem *pState)
 

Private Attributes

SfxBindingsmpBindings
 
::sfx2::sidebar::ControllerItem maHFToggleController
 
::sfx2::sidebar::ControllerItem maMetricController
 
::sfx2::sidebar::ControllerItem maHeaderLRMarginController
 
::sfx2::sidebar::ControllerItem maHeaderSpacingController
 
::sfx2::sidebar::ControllerItem maHeaderLayoutController
 
FieldUnit meFUnit
 
OUString m_aCustomEntry
 
::std::unique_ptr< SfxBoolItemmpHeaderItem
 
::std::unique_ptr< SvxLongLRSpaceItemmpHeaderLRMarginItem
 
::std::unique_ptr< SvxLongULSpaceItemmpHeaderSpacingItem
 
::std::unique_ptr< SfxInt16ItemmpHeaderLayoutItem
 
std::unique_ptr< weld::CheckButtonmxHeaderToggle
 
std::unique_ptr< weld::ComboBoxmxHeaderSpacingLB
 
std::unique_ptr< weld::ComboBoxmxHeaderMarginPresetLB
 
std::unique_ptr< weld::ComboBoxmxHeaderLayoutLB
 
std::unique_ptr< weld::LabelmxCustomEntry
 

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 32 of file PageHeaderPanel.hxx.

Constructor & Destructor Documentation

◆ PageHeaderPanel()

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

Definition at line 54 of file PageHeaderPanel.cxx.

References GetModuleFieldUnit(), and Initialize().

◆ ~PageHeaderPanel()

sw::sidebar::PageHeaderPanel::~PageHeaderPanel ( )
overridevirtual

Member Function Documentation

◆ Create()

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

Definition at line 36 of file PageHeaderPanel.cxx.

◆ DECL_LINK() [1/4]

sw::sidebar::PageHeaderPanel::DECL_LINK ( HeaderLayoutHdl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_LINK() [2/4]

sw::sidebar::PageHeaderPanel::DECL_LINK ( HeaderLRMarginHdl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_LINK() [3/4]

sw::sidebar::PageHeaderPanel::DECL_LINK ( HeaderSpacingHdl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_LINK() [4/4]

sw::sidebar::PageHeaderPanel::DECL_LINK ( HeaderToggleHdl  ,
weld::Toggleable ,
void   
)
private

◆ GetBindings()

SfxBindings * sw::sidebar::PageHeaderPanel::GetBindings ( ) const
inline

Definition at line 50 of file PageHeaderPanel.hxx.

References mpBindings.

◆ GetControlState()

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

◆ GetCurrentUnit()

FieldUnit sw::sidebar::PageHeaderPanel::GetCurrentUnit ( SfxItemState  eState,
const SfxPoolItem pState 
)
staticprivate

Definition at line 88 of file PageHeaderPanel.cxx.

References GetModuleFieldUnit(), and GetValue.

Referenced by NotifyItemUpdate().

◆ Initialize()

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

◆ NotifyItemUpdate()

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

◆ SetMarginsAndSpacingFieldUnit()

void sw::sidebar::PageHeaderPanel::SetMarginsAndSpacingFieldUnit ( )
private

◆ UpdateHeaderCheck()

void sw::sidebar::PageHeaderPanel::UpdateHeaderCheck ( )
private

◆ UpdateLayoutControl()

void sw::sidebar::PageHeaderPanel::UpdateLayoutControl ( )
private

Definition at line 177 of file PageHeaderPanel.cxx.

References mpHeaderLayoutItem, and mxHeaderLayoutLB.

Referenced by NotifyItemUpdate().

◆ UpdateMarginControl()

void sw::sidebar::PageHeaderPanel::UpdateMarginControl ( )
private

Definition at line 135 of file PageHeaderPanel.cxx.

References i, m_aCustomEntry, mpHeaderLRMarginItem, mxHeaderMarginPresetLB, and nCount.

Referenced by NotifyItemUpdate().

◆ UpdateSpacingControl()

void sw::sidebar::PageHeaderPanel::UpdateSpacingControl ( )
private

Definition at line 158 of file PageHeaderPanel.cxx.

References i, m_aCustomEntry, mpHeaderSpacingItem, mxHeaderSpacingLB, and nCount.

Referenced by NotifyItemUpdate().

Member Data Documentation

◆ m_aCustomEntry

OUString sw::sidebar::PageHeaderPanel::m_aCustomEntry
private

Definition at line 68 of file PageHeaderPanel.hxx.

Referenced by Initialize(), UpdateMarginControl(), and UpdateSpacingControl().

◆ maHeaderLayoutController

::sfx2::sidebar::ControllerItem sw::sidebar::PageHeaderPanel::maHeaderLayoutController
private

Definition at line 64 of file PageHeaderPanel.hxx.

◆ maHeaderLRMarginController

::sfx2::sidebar::ControllerItem sw::sidebar::PageHeaderPanel::maHeaderLRMarginController
private

Definition at line 62 of file PageHeaderPanel.hxx.

◆ maHeaderSpacingController

::sfx2::sidebar::ControllerItem sw::sidebar::PageHeaderPanel::maHeaderSpacingController
private

Definition at line 63 of file PageHeaderPanel.hxx.

◆ maHFToggleController

::sfx2::sidebar::ControllerItem sw::sidebar::PageHeaderPanel::maHFToggleController
private

Definition at line 60 of file PageHeaderPanel.hxx.

◆ maMetricController

::sfx2::sidebar::ControllerItem sw::sidebar::PageHeaderPanel::maMetricController
private

Definition at line 61 of file PageHeaderPanel.hxx.

◆ meFUnit

FieldUnit sw::sidebar::PageHeaderPanel::meFUnit
private

Definition at line 66 of file PageHeaderPanel.hxx.

Referenced by NotifyItemUpdate(), and SetMarginsAndSpacingFieldUnit().

◆ mpBindings

SfxBindings* sw::sidebar::PageHeaderPanel::mpBindings
private

Definition at line 58 of file PageHeaderPanel.hxx.

Referenced by GetBindings(), and Initialize().

◆ mpHeaderItem

::std::unique_ptr<SfxBoolItem> sw::sidebar::PageHeaderPanel::mpHeaderItem
private

Definition at line 77 of file PageHeaderPanel.hxx.

Referenced by NotifyItemUpdate().

◆ mpHeaderLayoutItem

::std::unique_ptr<SfxInt16Item> sw::sidebar::PageHeaderPanel::mpHeaderLayoutItem
private

Definition at line 80 of file PageHeaderPanel.hxx.

Referenced by NotifyItemUpdate(), and UpdateLayoutControl().

◆ mpHeaderLRMarginItem

::std::unique_ptr<SvxLongLRSpaceItem> sw::sidebar::PageHeaderPanel::mpHeaderLRMarginItem
private

Definition at line 78 of file PageHeaderPanel.hxx.

Referenced by NotifyItemUpdate(), and UpdateMarginControl().

◆ mpHeaderSpacingItem

::std::unique_ptr<SvxLongULSpaceItem> sw::sidebar::PageHeaderPanel::mpHeaderSpacingItem
private

Definition at line 79 of file PageHeaderPanel.hxx.

Referenced by NotifyItemUpdate(), and UpdateSpacingControl().

◆ mxCustomEntry

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

Definition at line 86 of file PageHeaderPanel.hxx.

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

◆ mxHeaderLayoutLB

std::unique_ptr<weld::ComboBox> sw::sidebar::PageHeaderPanel::mxHeaderLayoutLB
private

◆ mxHeaderMarginPresetLB

std::unique_ptr<weld::ComboBox> sw::sidebar::PageHeaderPanel::mxHeaderMarginPresetLB
private

◆ mxHeaderSpacingLB

std::unique_ptr<weld::ComboBox> sw::sidebar::PageHeaderPanel::mxHeaderSpacingLB
private

◆ mxHeaderToggle

std::unique_ptr<weld::CheckButton> sw::sidebar::PageHeaderPanel::mxHeaderToggle
private

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