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

#include <page.hxx>

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

Public Member Functions

 SvxPageDescPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
 
virtual ~SvxPageDescPage () override
 
virtual bool FillItemSet (SfxItemSet *rOutSet) override
 
virtual void Reset (const SfxItemSet *rSet) override
 
virtual void FillUserData () 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
 
void set_visible (bool bVisible)
 
const SfxItemSetGetItemSet () const
 
bool HasExchangeSupport () const
 
void SetExchangeSupport ()
 
void SetUserData (const OUString &rString)
 
const OUString & GetUserData () const
 
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
 
const SfxItemSetGetDialogExampleSet () const
 
OString GetHelpId () const
 
OString GetConfigId () const
 
bool IsVisible () const
 
weld::WindowGetFrameWeld () const
 

Static Public Member Functions

static std::unique_ptr< SfxTabPageCreate (weld::Container *pPage, weld::DialogController *pController, 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 (weld::Container *pPage, weld::DialogController *pController, 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 () const
 

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< weld::Labelm_xNumberFormatText
 
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 []
 

Detailed Description

Definition at line 65 of file page.hxx.

Constructor & Destructor Documentation

SvxPageDescPage::SvxPageDescPage ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rSet 
)
SvxPageDescPage::~SvxPageDescPage ( )
overridevirtual

Definition at line 289 of file page.cxx.

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

Member Function Documentation

void SvxPageDescPage::ActivatePage ( const SfxItemSet rSet)
overrideprotectedvirtual

Reimplemented from SfxTabPage.

Definition at line 1237 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 1481 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().

std::unique_ptr< SfxTabPage > SvxPageDescPage::Create ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rSet 
)
static

Definition at line 136 of file page.cxx.

Referenced by AbstractDialogFactory_Impl::GetTabPageCreatorFunc().

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 1443 of file page.cxx.

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

Referenced by Reset().

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

Reimplemented from SfxTabPage.

Definition at line 552 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 170 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 ( ) const
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 319 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 1414 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 176 of file page.hxx.

Referenced by PageCreated().

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

Member Data Documentation

bool SvxPageDescPage::bBorderModified
private

Definition at line 80 of file page.hxx.

Referenced by Reset(), and SvxPageDescPage().

bool SvxPageDescPage::bLandscape
private

Definition at line 79 of file page.hxx.

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

SvxModeType SvxPageDescPage::eMode
private

Definition at line 81 of file page.hxx.

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

Paper SvxPageDescPage::ePaperStart
private

Definition at line 82 of file page.hxx.

Referenced by Reset().

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

Definition at line 84 of file page.hxx.

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

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

Definition at line 119 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 127 of file page.hxx.

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

Definition at line 116 of file page.hxx.

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

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

Definition at line 124 of file page.hxx.

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

Definition at line 98 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 111 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 103 of file page.hxx.

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

Definition at line 113 of file page.hxx.

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

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

Definition at line 112 of file page.hxx.

Referenced by PageCreated().

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

Definition at line 96 of file page.hxx.

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

Definition at line 125 of file page.hxx.

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

Definition at line 110 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 93 of file page.hxx.

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

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

Definition at line 101 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 97 of file page.hxx.

Referenced by Init_Impl(), and Reset().

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

Definition at line 126 of file page.hxx.

Referenced by DeactivatePage().

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

Definition at line 121 of file page.hxx.

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

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

Definition at line 122 of file page.hxx.

Referenced by SetCollectionList().

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

Definition at line 123 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 105 of file page.hxx.

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

Definition at line 115 of file page.hxx.

Referenced by Reset().

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

Definition at line 100 of file page.hxx.

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

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

Definition at line 99 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 117 of file page.hxx.

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

bool SvxPageDescPage::mbDelPrinter
private

Definition at line 87 of file page.hxx.

Referenced by SvxPageDescPage(), and ~SvxPageDescPage().

bool SvxPageDescPage::mbEnableDrawingLayerFillStyles
private

Definition at line 88 of file page.hxx.

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

VclPtr<Printer> SvxPageDescPage::mpDefPrinter
private

Definition at line 85 of file page.hxx.

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

long SvxPageDescPage::nFirstBottomMargin
private

Definition at line 73 of file page.hxx.

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

long SvxPageDescPage::nFirstLeftMargin
private

Definition at line 70 of file page.hxx.

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

long SvxPageDescPage::nFirstRightMargin
private

Definition at line 71 of file page.hxx.

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

long SvxPageDescPage::nFirstTopMargin
private

Definition at line 72 of file page.hxx.

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

long SvxPageDescPage::nLastBottomMargin
private

Definition at line 77 of file page.hxx.

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

long SvxPageDescPage::nLastLeftMargin
private

Definition at line 74 of file page.hxx.

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

long SvxPageDescPage::nLastRightMargin
private

Definition at line 75 of file page.hxx.

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

long SvxPageDescPage::nLastTopMargin
private

Definition at line 76 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 67 of file page.hxx.

Referenced by GetRanges().

OUString SvxPageDescPage::sStandardRegister
private

Definition at line 69 of file page.hxx.

Referenced by SetCollectionList().


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