LibreOffice Module cui (master)  1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
SvxPageDescPage Class Reference

#include <page.hxx>

Inheritance diagram for SvxPageDescPage:
[legend]
Collaboration diagram for SvxPageDescPage:
[legend]

Public Member Functions

virtual bool FillItemSet (SfxItemSet *rOutSet) override
 
virtual void Reset (const SfxItemSet *rSet) override
 
virtual void FillUserData () override
 
virtual ~SvxPageDescPage () override
 
virtual void dispose () override
 
void SetPaperFormatRanges (Paper eStart)
 
void SetCollectionList (const std::vector< OUString > &aList)
 
virtual void PageCreated (const SfxAllItemSet &aSet) override
 
- Public Member Functions inherited from SfxTabPage
void SetDialogController (SfxOkDialogController *pDialog)
 
virtual ~SfxTabPage () override
 
const SfxItemSetGetItemSet () const
 
bool HasExchangeSupport () const
 
void SetExchangeSupport ()
 
void SetUserData (const OUString &rString)
 
const OUString & GetUserData ()
 
virtual bool IsReadOnly () const
 
virtual void ChangesApplied ()
 
void SetFrame (const css::uno::Reference< css::frame::XFrame > &xFrame)
 
css::uno::Reference< css::frame::XFrame > GetFrame ()
 
const SfxItemSetGetDialogExampleSet () const
 
OString GetConfigId () const
 
weld::WindowGetDialogFrameWeld () const
 

Static Public Member Functions

static VclPtr< SfxTabPageCreate (TabPageParent pParent, const SfxItemSet *rSet)
 
static const sal_uInt16 * GetRanges ()
 
- Static Public Member Functions inherited from SfxTabPage
static const SfxPoolItemGetItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true)
 
static const T * GetItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true)
 

Protected Member Functions

virtual void ActivatePage (const SfxItemSet &rSet) override
 
virtual DeactivateRC DeactivatePage (SfxItemSet *pSet) override
 
- Protected Member Functions inherited from SfxTabPage
 SfxTabPage (vcl::Window *pParent, const OString &rID, const OUString &rUIXMLDescription, const SfxItemSet *rAttrSet)
 
 SfxTabPage (TabPageParent pParent, const OUString &rUIXMLDescription, const OString &rID, const SfxItemSet *rAttrSet)
 
sal_uInt16 GetWhich (sal_uInt16 nSlot, bool bDeep=true) const
 
const SfxPoolItemGetOldItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true)
 
const T * GetOldItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true)
 
SfxOkDialogControllerGetDialogController () const
 

Private Member Functions

void Init_Impl ()
 
 DECL_LINK (LayoutHdl_Impl, weld::ComboBox &, void)
 
 DECL_LINK (PaperBinHdl_Impl, weld::Widget &, void)
 
 DECL_LINK (SwapOrientation_Impl, weld::Button &, void)
 
void SwapFirstValues_Impl (bool bSet)
 
 DECL_LINK (BorderModify_Impl, weld::MetricSpinButton &, void)
 
void InitHeadFoot_Impl (const SfxItemSet &rSet)
 
 DECL_LINK (CenterHdl_Impl, weld::ToggleButton &, void)
 
void UpdateExample_Impl (bool bResetbackground=false)
 
 DECL_LINK (PaperSizeSelect_Impl, weld::ComboBox &, void)
 
 DECL_LINK (PaperSizeModify_Impl, weld::MetricSpinButton &, void)
 
 DECL_LINK (FrameDirectionModify_Impl, weld::ComboBox &, void)
 
void ResetBackground_Impl (const SfxItemSet &rSet)
 
void RangeHdl_Impl ()
 
void CalcMargin_Impl ()
 
 DECL_LINK (RegisterModify, weld::ToggleButton &, void)
 
void DisableVerticalPageDir ()
 Disables vertical page direction entries in the text flow listbox. More...
 
bool IsPrinterRangeOverflow (weld::MetricSpinButton &rField, long nFirstMargin, long nLastMargin, MarginPosition nPos)
 
void CheckMarginEdits (bool _bClear)
 Check if a value of a margin edit is outside the printer paper margins and save this information. More...
 
bool IsMarginOutOfRange ()
 
 SvxPageDescPage (TabPageParent pParent, const SfxItemSet &rSet)
 

Private Attributes

OUString sStandardRegister
 
long nFirstLeftMargin
 
long nFirstRightMargin
 
long nFirstTopMargin
 
long nFirstBottomMargin
 
long nLastLeftMargin
 
long nLastRightMargin
 
long nLastTopMargin
 
long nLastBottomMargin
 
bool bLandscape
 
bool bBorderModified
 
SvxModeType eMode
 
Paper ePaperStart
 
MarginPosition m_nPos
 
VclPtr< PrintermpDefPrinter
 
bool mbDelPrinter: 1
 
bool mbEnableDrawingLayerFillStyles: 1
 
SvxPageWindow m_aBspWin
 
std::unique_ptr< SvxPaperSizeListBoxm_xPaperSizeBox
 
std::unique_ptr< weld::MetricSpinButtonm_xPaperWidthEdit
 
std::unique_ptr< weld::MetricSpinButtonm_xPaperHeightEdit
 
std::unique_ptr< weld::Labelm_xOrientationFT
 
std::unique_ptr< weld::RadioButtonm_xPortraitBtn
 
std::unique_ptr< weld::RadioButtonm_xLandscapeBtn
 
std::unique_ptr< weld::Labelm_xTextFlowLbl
 
std::unique_ptr< svx::FrameDirectionListBoxm_xTextFlowBox
 
std::unique_ptr< weld::ComboBoxm_xPaperTrayBox
 
std::unique_ptr< weld::Labelm_xLeftMarginLbl
 
std::unique_ptr< weld::MetricSpinButtonm_xLeftMarginEdit
 
std::unique_ptr< weld::Labelm_xRightMarginLbl
 
std::unique_ptr< weld::MetricSpinButtonm_xRightMarginEdit
 
std::unique_ptr< weld::MetricSpinButtonm_xTopMarginEdit
 
std::unique_ptr< weld::MetricSpinButtonm_xBottomMarginEdit
 
std::unique_ptr< weld::Labelm_xPageText
 
std::unique_ptr< weld::ComboBoxm_xLayoutBox
 
std::unique_ptr< SvxPageNumberListBoxm_xNumberFormatBox
 
std::unique_ptr< weld::Labelm_xTblAlignFT
 
std::unique_ptr< weld::CheckButtonm_xHorzBox
 
std::unique_ptr< weld::CheckButtonm_xVertBox
 
std::unique_ptr< weld::CheckButtonm_xAdaptBox
 
std::unique_ptr< weld::CheckButtonm_xRegisterCB
 
std::unique_ptr< weld::Labelm_xRegisterFT
 
std::unique_ptr< weld::ComboBoxm_xRegisterLB
 
std::unique_ptr< weld::Labelm_xInsideLbl
 
std::unique_ptr< weld::Labelm_xOutsideLbl
 
std::unique_ptr< weld::Labelm_xPrintRangeQueryText
 
std::unique_ptr< weld::CustomWeldm_xBspWin
 

Static Private Attributes

static const sal_uInt16 pRanges []
 

Friends

class VclPtr< SvxPageDescPage >
 

Additional Inherited Members

- Protected Attributes inherited from SfxTabPage
std::unique_ptr< weld::Builderm_xBuilder
 
std::unique_ptr< weld::Containerm_xContainer
 

Detailed Description

Definition at line 66 of file page.hxx.

Constructor & Destructor Documentation

SvxPageDescPage::SvxPageDescPage ( TabPageParent  pParent,
const SfxItemSet rSet 
)
private
SvxPageDescPage::~SvxPageDescPage ( )
overridevirtual

Definition at line 293 of file page.cxx.

Member Function Documentation

void SvxPageDescPage::ActivatePage ( const SfxItemSet rSet)
overrideprotectedvirtual

Reimplemented from SfxTabPage.

Definition at line 1247 of file page.cxx.

References InitHeadFoot_Impl(), RangeHdl_Impl(), ResetBackground_Impl(), and UpdateExample_Impl().

void SvxPageDescPage::CalcMargin_Impl ( )
private
void SvxPageDescPage::CheckMarginEdits ( bool  _bClear)
private

Check if a value of a margin edit is outside the printer paper margins and save this information.

Definition at line 1491 of file page.cxx.

References m_nPos, m_xBottomMarginEdit, m_xLeftMarginEdit, m_xRightMarginEdit, m_xTopMarginEdit, MARGIN_BOTTOM, MARGIN_LEFT, MARGIN_RIGHT, MARGIN_TOP, nLastBottomMargin, nLastLeftMargin, nLastRightMargin, and nLastTopMargin.

Referenced by DeactivatePage(), and Reset().

VclPtr< SfxTabPage > SvxPageDescPage::Create ( TabPageParent  pParent,
const SfxItemSet rSet 
)
static
DeactivateRC SvxPageDescPage::DeactivatePage ( SfxItemSet pSet)
overrideprotectedvirtual
SvxPageDescPage::DECL_LINK ( LayoutHdl_Impl  ,
weld::ComboBox ,
void   
)
private
SvxPageDescPage::DECL_LINK ( PaperBinHdl_Impl  ,
weld::Widget ,
void   
)
private
SvxPageDescPage::DECL_LINK ( SwapOrientation_Impl  ,
weld::Button ,
void   
)
private
SvxPageDescPage::DECL_LINK ( BorderModify_Impl  ,
weld::MetricSpinButton ,
void   
)
private
SvxPageDescPage::DECL_LINK ( CenterHdl_Impl  ,
weld::ToggleButton ,
void   
)
private
SvxPageDescPage::DECL_LINK ( PaperSizeSelect_Impl  ,
weld::ComboBox ,
void   
)
private
SvxPageDescPage::DECL_LINK ( PaperSizeModify_Impl  ,
weld::MetricSpinButton ,
void   
)
private
SvxPageDescPage::DECL_LINK ( FrameDirectionModify_Impl  ,
weld::ComboBox ,
void   
)
private
SvxPageDescPage::DECL_LINK ( RegisterModify  ,
weld::ToggleButton ,
void   
)
private
void SvxPageDescPage::DisableVerticalPageDir ( )
private

Disables vertical page direction entries in the text flow listbox.

Definition at line 1453 of file page.cxx.

References SvxPageWindow::EnableFrameDirection(), m_aBspWin, m_xTextFlowBox, and m_xTextFlowLbl.

Referenced by Reset().

void SvxPageDescPage::dispose ( void  )
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 298 of file page.cxx.

References SfxTabPage::dispose(), VclPtr< Printer >::disposeAndClear(), mbDelPrinter, and mpDefPrinter.

bool SvxPageDescPage::FillItemSet ( SfxItemSet rOutSet)
overridevirtual
void SvxPageDescPage::FillUserData ( )
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 562 of file page.cxx.

References eMode, m_xAdaptBox, SfxTabPage::SetUserData(), and SVX_PAGE_MODE_PRESENTATION.

static const sal_uInt16* SvxPageDescPage::GetRanges ( )
inlinestatic

Definition at line 173 of file page.hxx.

References pRanges.

Referenced by AbstractDialogFactory_Impl::GetTabPageRangesFunc().

void SvxPageDescPage::Init_Impl ( )
private
void SvxPageDescPage::InitHeadFoot_Impl ( const SfxItemSet rSet)
private
bool SvxPageDescPage::IsMarginOutOfRange ( )
private
bool SvxPageDescPage::IsPrinterRangeOverflow ( weld::MetricSpinButton rField,
long  nFirstMargin,
long  nLastMargin,
MarginPosition  nPos 
)
private
void SvxPageDescPage::PageCreated ( const SfxAllItemSet aSet)
overridevirtual
void SvxPageDescPage::RangeHdl_Impl ( )
private
void SvxPageDescPage::Reset ( const SfxItemSet rSet)
overridevirtual

!! hidden, because not implemented by StarDraw

UpdateExample_Impl();

Reimplemented from SfxTabPage.

Definition at line 329 of file page.cxx.

References bBorderModified, bLandscape, CheckMarginEdits(), ConvertLong_Impl(), DBG_ASSERT, DisableVerticalPageDir(), EditResId(), eMode, ePaperStart, SfxItemSet::Get(), SfxTabPage::GetItem(), SfxItemSet::GetItemState(), SvxLRSpaceItem::GetLeft(), SvxULSpaceItem::GetLower(), SfxItemPool::GetMetric(), SvxPageItem::GetNumType(), Printer::GetOrientation(), SvxPageItem::GetPageUsage(), Printer::GetPaperBinCount(), Printer::GetPaperBinName(), SvxPaperInfo::GetPaperSize(), SfxItemSet::GetPool(), SvxLRSpaceItem::GetRight(), SvxPaperInfo::GetSvxPaper(), SvxULSpaceItem::GetUpper(), GetValue, SfxTabPage::GetWhich(), Printer::HasSupport(), Size::Height(), i, InitHeadFoot_Impl(), SvxPageItem::IsLandscape(), LINK, OutputDevice::LogicToLogic(), m_aBspWin, m_xAdaptBox, m_xBottomMarginEdit, m_xHorzBox, m_xLandscapeBtn, m_xLayoutBox, m_xLeftMarginEdit, m_xNumberFormatBox, m_xPageText, m_xPaperHeightEdit, m_xPaperSizeBox, m_xPaperTrayBox, m_xPaperWidthEdit, m_xPortraitBtn, m_xRegisterCB, m_xRegisterLB, m_xRightMarginEdit, m_xTblAlignFT, m_xTextFlowBox, m_xTopMarginEdit, m_xVertBox, mpDefPrinter, PageUsageToPos_Impl(), PAPER_A3, PAPER_USER, PAPERBIN_PRINTER_SETTINGS, RangeHdl_Impl(), ResetBackground_Impl(), SvxPageWindow::SetBottom(), SvxPageWindow::SetFrameDirection(), SvxPageWindow::SetHorz(), SvxPageWindow::SetLeft(), SetMetricValue(), SvxPageWindow::SetRight(), SvxPageWindow::SetSize(), SvxPageWindow::SetTable(), SvxPageWindow::SetTop(), SvxPageWindow::SetUsage(), SvxPageWindow::SetVert(), SVX_NUM_ARABIC, SVX_PAGE_MODE_CENTER, SVX_PAGE_MODE_PRESENTATION, Swap(), SwapFirstValues_Impl(), UpdateExample_Impl(), and Size::Width().

void SvxPageDescPage::ResetBackground_Impl ( const SfxItemSet rSet)
private
void SvxPageDescPage::SetCollectionList ( const std::vector< OUString > &  aList)

Definition at line 1424 of file page.cxx.

References i, LINK, m_xRegisterCB, m_xRegisterFT, m_xRegisterLB, and sStandardRegister.

Referenced by PageCreated().

void SvxPageDescPage::SetPaperFormatRanges ( Paper  eStart)
inline

Definition at line 182 of file page.hxx.

Referenced by PageCreated().

void SvxPageDescPage::SwapFirstValues_Impl ( bool  bSet)
private
void SvxPageDescPage::UpdateExample_Impl ( bool  bResetbackground = false)
private

Friends And Related Function Documentation

friend class VclPtr< SvxPageDescPage >
friend

Definition at line 68 of file page.hxx.

Member Data Documentation

bool SvxPageDescPage::bBorderModified
private

Definition at line 85 of file page.hxx.

Referenced by Reset(), and SvxPageDescPage().

bool SvxPageDescPage::bLandscape
private

Definition at line 84 of file page.hxx.

Referenced by InitHeadFoot_Impl(), Reset(), and SwapFirstValues_Impl().

SvxModeType SvxPageDescPage::eMode
private

Definition at line 86 of file page.hxx.

Referenced by FillItemSet(), FillUserData(), PageCreated(), and Reset().

Paper SvxPageDescPage::ePaperStart
private

Definition at line 87 of file page.hxx.

Referenced by Reset().

SvxPageWindow SvxPageDescPage::m_aBspWin
private
MarginPosition SvxPageDescPage::m_nPos
private

Definition at line 89 of file page.hxx.

Referenced by CheckMarginEdits(), IsMarginOutOfRange(), and IsPrinterRangeOverflow().

std::unique_ptr<weld::CheckButton> SvxPageDescPage::m_xAdaptBox
private

Definition at line 123 of file page.hxx.

Referenced by FillItemSet(), FillUserData(), and Reset().

std::unique_ptr<weld::MetricSpinButton> SvxPageDescPage::m_xBottomMarginEdit
private
std::unique_ptr<weld::CustomWeld> SvxPageDescPage::m_xBspWin
private

Definition at line 131 of file page.hxx.

std::unique_ptr<weld::CheckButton> SvxPageDescPage::m_xHorzBox
private

Definition at line 120 of file page.hxx.

Referenced by FillItemSet(), Init_Impl(), and Reset().

std::unique_ptr<weld::Label> SvxPageDescPage::m_xInsideLbl
private

Definition at line 128 of file page.hxx.

std::unique_ptr<weld::RadioButton> SvxPageDescPage::m_xLandscapeBtn
private

Definition at line 103 of file page.hxx.

Referenced by FillItemSet(), Init_Impl(), InitHeadFoot_Impl(), and Reset().

std::unique_ptr<weld::ComboBox> SvxPageDescPage::m_xLayoutBox
private

Definition at line 116 of file page.hxx.

Referenced by FillItemSet(), Init_Impl(), Reset(), and UpdateExample_Impl().

std::unique_ptr<weld::MetricSpinButton> SvxPageDescPage::m_xLeftMarginEdit
private
std::unique_ptr<weld::Label> SvxPageDescPage::m_xLeftMarginLbl
private

Definition at line 108 of file page.hxx.

std::unique_ptr<SvxPageNumberListBox> SvxPageDescPage::m_xNumberFormatBox
private

Definition at line 117 of file page.hxx.

Referenced by FillItemSet(), Reset(), and SvxPageDescPage().

std::unique_ptr<weld::Label> SvxPageDescPage::m_xOrientationFT
private

Definition at line 101 of file page.hxx.

std::unique_ptr<weld::Label> SvxPageDescPage::m_xOutsideLbl
private

Definition at line 129 of file page.hxx.

std::unique_ptr<weld::Label> SvxPageDescPage::m_xPageText
private

Definition at line 115 of file page.hxx.

Referenced by Reset().

std::unique_ptr<weld::MetricSpinButton> SvxPageDescPage::m_xPaperHeightEdit
private
std::unique_ptr<SvxPaperSizeListBox> SvxPageDescPage::m_xPaperSizeBox
private

Definition at line 98 of file page.hxx.

Referenced by DeactivatePage(), FillItemSet(), Init_Impl(), and Reset().

std::unique_ptr<weld::ComboBox> SvxPageDescPage::m_xPaperTrayBox
private

Definition at line 106 of file page.hxx.

Referenced by FillItemSet(), and Reset().

std::unique_ptr<weld::MetricSpinButton> SvxPageDescPage::m_xPaperWidthEdit
private
std::unique_ptr<weld::RadioButton> SvxPageDescPage::m_xPortraitBtn
private

Definition at line 102 of file page.hxx.

Referenced by Init_Impl(), and Reset().

std::unique_ptr<weld::Label> SvxPageDescPage::m_xPrintRangeQueryText
private

Definition at line 130 of file page.hxx.

Referenced by DeactivatePage().

std::unique_ptr<weld::CheckButton> SvxPageDescPage::m_xRegisterCB
private

Definition at line 125 of file page.hxx.

Referenced by FillItemSet(), Reset(), and SetCollectionList().

std::unique_ptr<weld::Label> SvxPageDescPage::m_xRegisterFT
private

Definition at line 126 of file page.hxx.

Referenced by SetCollectionList().

std::unique_ptr<weld::ComboBox> SvxPageDescPage::m_xRegisterLB
private

Definition at line 127 of file page.hxx.

Referenced by FillItemSet(), Reset(), SetCollectionList(), and SvxPageDescPage().

std::unique_ptr<weld::MetricSpinButton> SvxPageDescPage::m_xRightMarginEdit
private
std::unique_ptr<weld::Label> SvxPageDescPage::m_xRightMarginLbl
private

Definition at line 110 of file page.hxx.

std::unique_ptr<weld::Label> SvxPageDescPage::m_xTblAlignFT
private

Definition at line 119 of file page.hxx.

Referenced by Reset().

std::unique_ptr<svx::FrameDirectionListBox> SvxPageDescPage::m_xTextFlowBox
private

Definition at line 105 of file page.hxx.

Referenced by DisableVerticalPageDir(), FillItemSet(), Reset(), and SvxPageDescPage().

std::unique_ptr<weld::Label> SvxPageDescPage::m_xTextFlowLbl
private

Definition at line 104 of file page.hxx.

Referenced by DisableVerticalPageDir(), and SvxPageDescPage().

std::unique_ptr<weld::MetricSpinButton> SvxPageDescPage::m_xTopMarginEdit
private
std::unique_ptr<weld::CheckButton> SvxPageDescPage::m_xVertBox
private

Definition at line 121 of file page.hxx.

Referenced by FillItemSet(), Init_Impl(), and Reset().

bool SvxPageDescPage::mbDelPrinter
private

Definition at line 92 of file page.hxx.

Referenced by dispose(), and SvxPageDescPage().

bool SvxPageDescPage::mbEnableDrawingLayerFillStyles
private

Definition at line 93 of file page.hxx.

Referenced by InitHeadFoot_Impl(), PageCreated(), and ResetBackground_Impl().

VclPtr<Printer> SvxPageDescPage::mpDefPrinter
private

Definition at line 90 of file page.hxx.

Referenced by dispose(), Reset(), SvxPageDescPage(), and SwapFirstValues_Impl().

long SvxPageDescPage::nFirstBottomMargin
private

Definition at line 78 of file page.hxx.

Referenced by DeactivatePage(), IsMarginOutOfRange(), SvxPageDescPage(), and SwapFirstValues_Impl().

long SvxPageDescPage::nFirstLeftMargin
private

Definition at line 75 of file page.hxx.

Referenced by DeactivatePage(), IsMarginOutOfRange(), SvxPageDescPage(), and SwapFirstValues_Impl().

long SvxPageDescPage::nFirstRightMargin
private

Definition at line 76 of file page.hxx.

Referenced by DeactivatePage(), IsMarginOutOfRange(), SvxPageDescPage(), and SwapFirstValues_Impl().

long SvxPageDescPage::nFirstTopMargin
private

Definition at line 77 of file page.hxx.

Referenced by DeactivatePage(), IsMarginOutOfRange(), SvxPageDescPage(), and SwapFirstValues_Impl().

long SvxPageDescPage::nLastBottomMargin
private

Definition at line 82 of file page.hxx.

Referenced by CheckMarginEdits(), DeactivatePage(), IsMarginOutOfRange(), and SvxPageDescPage().

long SvxPageDescPage::nLastLeftMargin
private

Definition at line 79 of file page.hxx.

Referenced by CheckMarginEdits(), DeactivatePage(), IsMarginOutOfRange(), and SvxPageDescPage().

long SvxPageDescPage::nLastRightMargin
private

Definition at line 80 of file page.hxx.

Referenced by CheckMarginEdits(), DeactivatePage(), IsMarginOutOfRange(), and SvxPageDescPage().

long SvxPageDescPage::nLastTopMargin
private

Definition at line 81 of file page.hxx.

Referenced by CheckMarginEdits(), DeactivatePage(), IsMarginOutOfRange(), and SvxPageDescPage().

const sal_uInt16 SvxPageDescPage::pRanges
staticprivate
Initial value:
=
{
SID_ATTR_BORDER_OUTER,
SID_ATTR_BORDER_SHADOW,
SID_ATTR_LRSPACE,
SID_ATTR_PAGE_SHARED,
SID_SWREGISTER_COLLECTION,
SID_SWREGISTER_MODE,
0
}

Definition at line 72 of file page.hxx.

Referenced by GetRanges().

OUString SvxPageDescPage::sStandardRegister
private

Definition at line 74 of file page.hxx.

Referenced by SetCollectionList().


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