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 OString &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 ~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 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

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

Definition at line 54 of file PageHeaderPanel.cxx.

References GetModuleFieldUnit(), and Initialize().

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

Member Function Documentation

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

Definition at line 36 of file PageHeaderPanel.cxx.

sw::sidebar::PageHeaderPanel::DECL_LINK ( HeaderToggleHdl  ,
weld::Toggleable ,
void   
)
private
sw::sidebar::PageHeaderPanel::DECL_LINK ( HeaderLRMarginHdl  ,
weld::ComboBox ,
void   
)
private
sw::sidebar::PageHeaderPanel::DECL_LINK ( HeaderSpacingHdl  ,
weld::ComboBox ,
void   
)
private
sw::sidebar::PageHeaderPanel::DECL_LINK ( HeaderLayoutHdl  ,
weld::ComboBox ,
void   
)
private
SfxBindings* sw::sidebar::PageHeaderPanel::GetBindings ( ) const
inline

Definition at line 50 of file PageHeaderPanel.hxx.

References mpBindings.

virtual void sw::sidebar::PageHeaderPanel::GetControlState ( const sal_uInt16  ,
boost::property_tree::ptree &   
)
inlineoverridevirtual
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().

void sw::sidebar::PageHeaderPanel::Initialize ( )
private
void sw::sidebar::PageHeaderPanel::NotifyItemUpdate ( const sal_uInt16  nSId,
const SfxItemState  eState,
const SfxPoolItem pState 
)
overridevirtual
void sw::sidebar::PageHeaderPanel::SetMarginsAndSpacingFieldUnit ( )
private
void sw::sidebar::PageHeaderPanel::UpdateHeaderCheck ( )
private
void sw::sidebar::PageHeaderPanel::UpdateLayoutControl ( )
private

Definition at line 177 of file PageHeaderPanel.cxx.

References mpHeaderLayoutItem, and mxHeaderLayoutLB.

Referenced by NotifyItemUpdate().

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

Definition at line 135 of file PageHeaderPanel.cxx.

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

Referenced by NotifyItemUpdate().

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

Definition at line 158 of file PageHeaderPanel.cxx.

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

Referenced by NotifyItemUpdate().

Member Data Documentation

OUString sw::sidebar::PageHeaderPanel::aCustomEntry
private

Definition at line 68 of file PageHeaderPanel.hxx.

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

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

Definition at line 64 of file PageHeaderPanel.hxx.

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

Definition at line 62 of file PageHeaderPanel.hxx.

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

Definition at line 63 of file PageHeaderPanel.hxx.

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

Definition at line 60 of file PageHeaderPanel.hxx.

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

Definition at line 61 of file PageHeaderPanel.hxx.

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

Definition at line 66 of file PageHeaderPanel.hxx.

Referenced by NotifyItemUpdate(), and SetMarginsAndSpacingFieldUnit().

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

Definition at line 58 of file PageHeaderPanel.hxx.

Referenced by GetBindings(), and Initialize().

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

Definition at line 77 of file PageHeaderPanel.hxx.

Referenced by NotifyItemUpdate().

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

Definition at line 80 of file PageHeaderPanel.hxx.

Referenced by NotifyItemUpdate(), and UpdateLayoutControl().

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

Definition at line 78 of file PageHeaderPanel.hxx.

Referenced by NotifyItemUpdate(), and UpdateMarginControl().

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

Definition at line 79 of file PageHeaderPanel.hxx.

Referenced by NotifyItemUpdate(), and UpdateSpacingControl().

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

Definition at line 86 of file PageHeaderPanel.hxx.

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

std::unique_ptr<weld::ComboBox> sw::sidebar::PageHeaderPanel::mxHeaderLayoutLB
private
std::unique_ptr<weld::ComboBox> sw::sidebar::PageHeaderPanel::mxHeaderMarginPresetLB
private
std::unique_ptr<weld::ComboBox> sw::sidebar::PageHeaderPanel::mxHeaderSpacingLB
private
std::unique_ptr<weld::CheckButton> sw::sidebar::PageHeaderPanel::mxHeaderToggle
private

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