LibreOffice Module sw (master) 1
|
#include <envfmt.hxx>
Public Member Functions | |
SwEnvFormatPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet) | |
void | Init (SwEnvDlg *pDialog) |
virtual | ~SwEnvFormatPage () override |
virtual void | ActivatePage (const SfxItemSet &rSet) override |
virtual DeactivateRC | DeactivatePage (SfxItemSet *pSet) override |
void | FillItem (SwEnvItem &rItem) |
virtual bool | FillItemSet (SfxItemSet *rSet) override |
virtual void | Reset (const SfxItemSet *rSet) override |
Public Member Functions inherited from SfxTabPage | |
void | SetDialogController (SfxOkDialogController *pDialog) |
virtual | ~SfxTabPage () override |
void | set_visible (bool bVisible) |
const SfxItemSet & | GetItemSet () const |
virtual bool | FillItemSet (SfxItemSet *) |
virtual void | Reset (const SfxItemSet *) |
virtual bool | DeferResetToFirstActivation () |
bool | HasExchangeSupport () const |
void | SetExchangeSupport () |
virtual void | ActivatePage (const SfxItemSet &) |
virtual DeactivateRC | DeactivatePage (SfxItemSet *pSet) |
void | SetUserData (const OUString &rString) |
const OUString & | GetUserData () const |
virtual void | FillUserData () |
virtual bool | IsReadOnly () const |
virtual void | PageCreated (const SfxAllItemSet &aSet) |
virtual void | ChangesApplied () |
void | SetFrame (const css::uno::Reference< css::frame::XFrame > &xFrame) |
css::uno::Reference< css::frame::XFrame > | GetFrame () const |
const SfxItemSet * | GetDialogExampleSet () const |
OUString | GetHelpId () const |
OUString | GetConfigId () const |
bool | IsVisible () const |
weld::Window * | GetFrameWeld () const |
std::unordered_map< OUString, css::uno::Any > & | getAdditionalProperties () |
Static Public Member Functions | |
static std::unique_ptr< SfxTabPage > | Create (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet) |
Static Public Member Functions inherited from SfxTabPage | |
static const SfxPoolItem * | GetItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true) |
static const T * | GetItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true) |
Private Member Functions | |
DECL_LINK (ModifyHdl, weld::MetricSpinButton &, void) | |
DECL_LINK (AddrEditHdl, const OUString &, void) | |
DECL_LINK (SendEditHdl, const OUString &, void) | |
DECL_LINK (FormatHdl, weld::ComboBox &, void) | |
void | SetMinMax () |
SfxItemSet * | GetCollItemSet (SwTextFormatColl const *pColl, bool bSender) |
void | Edit (std::u16string_view rIdent, bool bSender) |
SwEnvDlg * | GetParentSwEnvDlg () |
Private Attributes | |
SwEnvDlg * | m_pDialog |
std::vector< sal_uInt16 > | m_aIDs |
SwEnvPreview | m_aPreview |
std::unique_ptr< weld::MetricSpinButton > | m_xAddrLeftField |
std::unique_ptr< weld::MetricSpinButton > | m_xAddrTopField |
std::unique_ptr< weld::MenuButton > | m_xAddrEditButton |
std::unique_ptr< weld::MetricSpinButton > | m_xSendLeftField |
std::unique_ptr< weld::MetricSpinButton > | m_xSendTopField |
std::unique_ptr< weld::MenuButton > | m_xSendEditButton |
std::unique_ptr< weld::ComboBox > | m_xSizeFormatBox |
std::unique_ptr< weld::MetricSpinButton > | m_xSizeWidthField |
std::unique_ptr< weld::MetricSpinButton > | m_xSizeHeightField |
std::unique_ptr< weld::CustomWeld > | m_xPreview |
Additional Inherited Members | |
Protected Member Functions inherited from SfxTabPage | |
SfxTabPage (weld::Container *pPage, weld::DialogController *pController, const OUString &rUIXMLDescription, const OUString &rID, const SfxItemSet *rAttrSet) | |
sal_uInt16 | GetWhich (sal_uInt16 nSlot, bool bDeep=true) const |
TypedWhichId< T > | GetWhich (TypedWhichId< T > nSlot, bool bDeep=true) const |
const SfxPoolItem * | GetOldItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true) |
const T * | GetOldItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true) |
SfxOkDialogController * | GetDialogController () const |
Definition at line 30 of file envfmt.hxx.
SwEnvFormatPage::SwEnvFormatPage | ( | weld::Container * | pPage, |
weld::DialogController * | pController, | ||
const SfxItemSet & | rSet | ||
) |
Definition at line 54 of file envfmt.cxx.
References CM, GetDfltMetric(), SvxPaperInfo::GetName(), i, LINK, m_aIDs, m_xAddrEditButton, m_xAddrLeftField, m_xAddrTopField, m_xSendEditButton, m_xSendLeftField, m_xSendTopField, m_xSizeFormatBox, m_xSizeHeightField, m_xSizeWidthField, nPos, PAPER_A3, PAPER_KAI32BIG, PAPER_USER, rSet, and SfxTabPage::SetExchangeSupport().
|
overridevirtual |
Definition at line 123 of file envfmt.cxx.
|
overridevirtual |
Reimplemented from SfxTabPage.
Definition at line 356 of file envfmt.cxx.
References GetParentSwEnvDlg(), SfxItemSet::Put(), Reset(), and rSet.
|
static |
|
overridevirtual |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 172 of file envfmt.cxx.
References SfxItemSet::ClearItem(), ConvertAttrCharToGen(), ConvertAttrGenToChar(), SfxItemSet::Count(), SwAbstractDialogFactory::CreateSwCharDlg(), DLG_ENVELOP, Env, SfxItemSet::Get(), SdrModel::GetBitmapList(), GetCollItemSet(), SdrModel::GetColorList(), SwView::GetCurShell(), SfxItemPool::GetDefaultItem(), SwDocShell::GetDoc(), SwView::GetDocShell(), IDocumentDrawModelAccess::GetDrawModel(), swui::GetFactory(), SfxTabPage::GetFrameWeld(), SdrModel::GetGradientList(), SdrModel::GetHatchList(), SwDoc::getIDocumentDrawModelAccess(), SfxItemSet::GetItemIfSet(), SwFormat::GetName(), SfxTabDialogController::GetOutputItemSet(), GetParentSwEnvDlg(), SdrModel::GetPatternList(), SfxShell::GetPool(), GetTabDist(), SwEditShell::GetTextCollFromPool(), CntUInt16Item::GetValue(), SwWrtShell::GetView(), SwEnvDlg::m_pSh, MakeDefTabs(), PrepareBoxInfo(), SfxItemSet::Put(), RES_MARGIN_TEXTLEFT(), RES_PARATR_TABSTOP(), RES_POOLCOLL_ENVELOPE_ADDRESS, RES_POOLCOLL_SEND_ADDRESS, RET_OK, SfxTabDialogController::run(), SwEditShell::SetDefault(), o3tl::starts_with(), and u.
void SwEnvFormatPage::FillItem | ( | SwEnvItem & | rItem | ) |
Definition at line 370 of file envfmt.cxx.
References getfieldval(), SvxPaperInfo::GetPaperSize(), Size::Height(), m_aIDs, SwEnvItem::m_nAddrFromLeft, SwEnvItem::m_nAddrFromTop, SwEnvItem::m_nHeight, SwEnvItem::m_nSendFromLeft, SwEnvItem::m_nSendFromTop, SwEnvItem::m_nWidth, m_xAddrLeftField, m_xAddrTopField, m_xSendLeftField, m_xSendTopField, m_xSizeFormatBox, m_xSizeHeightField, m_xSizeWidthField, min(), PAPER_USER, and Size::Width().
Referenced by FillItemSet().
|
overridevirtual |
Reimplemented from SfxTabPage.
Definition at line 394 of file envfmt.cxx.
References FillItem(), GetParentSwEnvDlg(), SfxItemSet::Put(), and rSet.
Referenced by DeactivatePage().
|
private |
Definition at line 261 of file envfmt.cxx.
References SwFormat::GetAttrSet(), GetParentSwEnvDlg(), SfxItemSet::GetRanges(), svl::Items, SwEnvDlg::m_pAddresseeSet, SwEnvDlg::m_pSenderSet, RES_BACKGROUND(), RES_MARGIN_FIRSTLINE(), RES_MARGIN_RIGHT(), RES_PARATR_ADJUST(), RES_PARATR_BEGIN(), RES_PARATR_END(), RES_PARATR_TABSTOP(), RES_SHADOW(), and RES_UL_SPACE().
Referenced by Edit().
|
inlineprivate |
Definition at line 58 of file envfmt.hxx.
References m_pDialog.
Referenced by ActivatePage(), Edit(), FillItemSet(), GetCollItemSet(), and Reset().
void SwEnvFormatPage::Init | ( | SwEnvDlg * | pDialog | ) |
Definition at line 117 of file envfmt.cxx.
References m_aPreview, m_pDialog, and SwEnvPreview::SetDialog().
|
overridevirtual |
Reimplemented from SfxTabPage.
Definition at line 401 of file envfmt.cxx.
References FN_ENVELOP, SfxItemSet::Get(), GetParentSwEnvDlg(), SvxPaperInfo::GetSvxPaper(), i, m_aIDs, SwEnvItem::m_nAddrFromLeft, SwEnvItem::m_nAddrFromTop, SwEnvItem::m_nHeight, SwEnvItem::m_nSendFromLeft, SwEnvItem::m_nSendFromTop, SwEnvItem::m_nWidth, SwEnvDlg::m_pAddresseeSet, SwEnvDlg::m_pSenderSet, m_xAddrLeftField, m_xAddrTopField, m_xSendLeftField, m_xSendTopField, m_xSizeFormatBox, m_xSizeHeightField, m_xSizeWidthField, min(), rSet, setfieldval(), and SetMinMax().
Referenced by ActivatePage().
|
private |
Definition at line 332 of file envfmt.cxx.
References getfieldval(), m_xAddrLeftField, m_xAddrTopField, m_xSendLeftField, m_xSendTopField, m_xSizeHeightField, m_xSizeWidthField, and min().
Referenced by Reset().
|
private |
Definition at line 33 of file envfmt.hxx.
Referenced by FillItem(), Reset(), and SwEnvFormatPage().
|
private |
Definition at line 35 of file envfmt.hxx.
Referenced by Init().
|
private |
Definition at line 32 of file envfmt.hxx.
Referenced by GetParentSwEnvDlg(), and Init().
|
private |
Definition at line 38 of file envfmt.hxx.
Referenced by SwEnvFormatPage().
|
private |
Definition at line 36 of file envfmt.hxx.
Referenced by FillItem(), Reset(), SetMinMax(), and SwEnvFormatPage().
|
private |
Definition at line 37 of file envfmt.hxx.
Referenced by FillItem(), Reset(), SetMinMax(), and SwEnvFormatPage().
|
private |
Definition at line 45 of file envfmt.hxx.
|
private |
Definition at line 41 of file envfmt.hxx.
Referenced by SwEnvFormatPage().
|
private |
Definition at line 39 of file envfmt.hxx.
Referenced by FillItem(), Reset(), SetMinMax(), and SwEnvFormatPage().
|
private |
Definition at line 40 of file envfmt.hxx.
Referenced by FillItem(), Reset(), SetMinMax(), and SwEnvFormatPage().
|
private |
Definition at line 42 of file envfmt.hxx.
Referenced by FillItem(), Reset(), and SwEnvFormatPage().
|
private |
Definition at line 44 of file envfmt.hxx.
Referenced by FillItem(), Reset(), SetMinMax(), and SwEnvFormatPage().
|
private |
Definition at line 43 of file envfmt.hxx.
Referenced by FillItem(), Reset(), SetMinMax(), and SwEnvFormatPage().