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 (vcl::Window *pParent, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > &rxFrame, SfxBindings *pBindings)
 
virtual ~PageHeaderPanel () override
 
virtual void dispose () override
 
- Public Member Functions inherited from PanelLayout
 PanelLayout (vcl::Window *pParent, const OString &rID, const OUString &rUIXMLDescription, const css::uno::Reference< css::frame::XFrame > &rFrame)
 
virtual ~PanelLayout () override
 
virtual Size GetOptimalSize () const override
 
virtual void setPosSizePixel (long nX, long nY, long nWidth, long nHeight, PosSizeFlags nFlags=PosSizeFlags::All) override
 
virtual void queue_resize (StateChangedType eReason=StateChangedType::Layout) override
 
virtual bool EventNotify (NotifyEvent &rNEvt) override
 
- Public Member Functions inherited from sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
virtual ~ItemUpdateReceiverInterface ()
 

Static Public Member Functions

static VclPtr< vcl::WindowCreate (vcl::Window *pParent, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > &rxFrame, SfxBindings *pBindings)
 

Private Member Functions

void Initialize ()
 
void SetMarginsAndSpacingFieldUnit ()
 
void UpdateHeaderCheck ()
 
void UpdateMarginControl ()
 
void UpdateSpacingControl ()
 
void UpdateLayoutControl ()
 
 DECL_LINK (HeaderToggleHdl, weld::ToggleButton &, 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 Attributes inherited from PanelLayout
std::unique_ptr< weld::Builderm_xBuilder
 
VclPtr< vcl::Windowm_xVclContentArea
 
std::unique_ptr< weld::Containerm_xContainer
 

Detailed Description

Definition at line 39 of file PageHeaderPanel.hxx.

Constructor & Destructor Documentation

sw::sidebar::PageHeaderPanel::PageHeaderPanel ( vcl::Window pParent,
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > &  rxFrame,
SfxBindings pBindings 
)

Definition at line 55 of file PageHeaderPanel.cxx.

References GetModuleFieldUnit(), and Initialize().

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

Definition at line 82 of file PageHeaderPanel.cxx.

Member Function Documentation

VclPtr< vcl::Window > sw::sidebar::PageHeaderPanel::Create ( vcl::Window pParent,
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > &  rxFrame,
SfxBindings pBindings 
)
static

Definition at line 34 of file PageHeaderPanel.cxx.

References VclPtr< reference_type >::Create().

sw::sidebar::PageHeaderPanel::DECL_LINK ( HeaderToggleHdl  ,
weld::ToggleButton ,
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
void sw::sidebar::PageHeaderPanel::dispose ( void  )
overridevirtual
SfxBindings* sw::sidebar::PageHeaderPanel::GetBindings ( ) const
inline

Definition at line 58 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 98 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 187 of file PageHeaderPanel.cxx.

References mpHeaderLayoutItem, and mxHeaderLayoutLB.

Referenced by NotifyItemUpdate().

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

Definition at line 145 of file PageHeaderPanel.cxx.

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

Referenced by NotifyItemUpdate().

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

Definition at line 168 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 78 of file PageHeaderPanel.hxx.

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

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

Definition at line 74 of file PageHeaderPanel.hxx.

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

Definition at line 72 of file PageHeaderPanel.hxx.

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

Definition at line 73 of file PageHeaderPanel.hxx.

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

Definition at line 70 of file PageHeaderPanel.hxx.

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

Definition at line 71 of file PageHeaderPanel.hxx.

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

Definition at line 76 of file PageHeaderPanel.hxx.

Referenced by NotifyItemUpdate(), and SetMarginsAndSpacingFieldUnit().

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

Definition at line 68 of file PageHeaderPanel.hxx.

Referenced by GetBindings(), and Initialize().

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

Definition at line 87 of file PageHeaderPanel.hxx.

Referenced by NotifyItemUpdate().

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

Definition at line 90 of file PageHeaderPanel.hxx.

Referenced by NotifyItemUpdate(), and UpdateLayoutControl().

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

Definition at line 88 of file PageHeaderPanel.hxx.

Referenced by NotifyItemUpdate(), and UpdateMarginControl().

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

Definition at line 89 of file PageHeaderPanel.hxx.

Referenced by NotifyItemUpdate(), and UpdateSpacingControl().

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

Definition at line 96 of file PageHeaderPanel.hxx.

Referenced by dispose(), and Initialize().

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

Definition at line 95 of file PageHeaderPanel.hxx.

Referenced by dispose(), Initialize(), UpdateHeaderCheck(), and UpdateLayoutControl().

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

Definition at line 92 of file PageHeaderPanel.hxx.

Referenced by dispose(), Initialize(), NotifyItemUpdate(), and UpdateHeaderCheck().


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