LibreOffice Module sw (master) 1
Public Member Functions | Private Attributes | List of all members
SwTemplateDlgController Class Referencefinal

#include <tmpdlg.hxx>

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

Public Member Functions

 SwTemplateDlgController (weld::Window *pParent, SfxStyleSheetBase &rBase, SfxStyleFamily nRegion, const OString &sPage, SwWrtShell *pActShell, bool bNew)
 
virtual void RefreshInputSet () override
 
virtual void PageCreated (const OString &rId, SfxTabPage &rPage) override
 
virtual short Ok () override
 
- Public Member Functions inherited from SfxStyleDialogController
 SfxStyleDialogController (weld::Window *pParent, const OUString &rUIXMLDescription, const OString &rID, SfxStyleSheetBase &)
 
virtual ~SfxStyleDialogController () override
 
SfxStyleSheetBaseGetStyleSheet ()
 
const SfxStyleSheetBaseGetStyleSheet () const
 
virtual short Ok () override
 
- Public Member Functions inherited from SfxTabDialogController
 SfxTabDialogController (weld::Widget *pParent, const OUString &rUIXMLDescription, const OString &rID, const SfxItemSet *=nullptr, bool bEditFmt=false)
 
virtual ~SfxTabDialogController () override
 
void AddTabPage (const OString &rName, CreateTabPage pCreateFunc, GetTabPageRanges pRangesFunc)
 
void AddTabPage (const OString &rName, sal_uInt16 nPageCreateId)
 
void AddTabPage (const OString &rName, const OUString &rLabel, CreateTabPage pCreateFunc)
 
void AddTabPage (const OString &rName, const OUString &rLabel, sal_uInt16 nPageCreateId)
 
void RemoveTabPage (const OString &rName)
 
void SetCurPageId (const OString &rName)
 
void ShowPage (const OString &rName)
 
OString GetCurPageId () const
 
SfxTabPageGetCurTabPage () const
 
const WhichRangesContainerGetInputRanges (const SfxItemPool &)
 
void SetInputSet (const SfxItemSet *pInSet)
 
const SfxItemSetGetOutputItemSet () const
 
virtual weld::ButtonGetOKButton () const override
 
weld::ButtonGetCancelButton () const
 
weld::ButtonGetUserButton () const
 
weld::ButtonGetStandardButton () const
 
weld::ButtonGetApplyButton () const
 
weld::ButtonGetResetButton () const
 
void RemoveResetButton ()
 
void RemoveStandardButton ()
 
virtual short run () override
 
virtual const SfxItemSetGetExampleSet () const override
 
void SetApplyHandler (const Link< weld::Button &, void > &_rHdl)
 
bool Apply ()
 
void Applied ()
 
std::vector< OString > getAllPageUIXMLDescriptions () const
 
bool selectPageByUIXMLDescription (const OString &rUIXMLDescription)
 
BitmapEx createScreenshot () const
 
OString GetScreenshotId () const
 
- Public Member Functions inherited from SfxOkDialogController
 SfxOkDialogController (weld::Widget *pParent, const OUString &rUIXMLDescription, const OString &rID)
 
virtual weld::ButtonGetOKButton () const=0
 
virtual const SfxItemSetGetExampleSet () const=0
 
- Public Member Functions inherited from SfxDialogController
 SfxDialogController (weld::Widget *pParent, const OUString &rUIFile, const OString &rDialogId)
 
virtual void Activate ()
 
virtual void Deactivate ()
 
virtual void ChildWinDispose ()
 
virtual void Close ()
 
virtual void EndDialog (int nResponse)
 

Private Attributes

SfxStyleFamily nType
 
sal_uInt16 nHtmlMode
 
SwWrtShellpWrtShell
 
bool bNewStyle
 

Additional Inherited Members

- Static Public Member Functions inherited from SfxStyleDialogController
static OUString GenerateUnusedName (SfxStyleSheetBasePool &rPool, SfxStyleFamily eFam)
 
- Static Public Member Functions inherited from SfxTabDialogController
static bool runAsync (const std::shared_ptr< SfxTabDialogController > &rController, const std::function< void(sal_Int32)> &)
 
- Protected Member Functions inherited from SfxTabDialogController
 DECL_LINK (OkHdl, weld::Button &, void)
 
 DECL_DLLPRIVATE_LINK (ResetHdl, weld::Button &, void)
 
 DECL_DLLPRIVATE_LINK (BaseFmtHdl, weld::Button &, void)
 
 DECL_DLLPRIVATE_LINK (UserHdl, weld::Button &, void)
 
 DECL_DLLPRIVATE_LINK (CancelHdl, weld::Button &, void)
 
virtual short Ok ()
 
virtual void RefreshInputSet ()
 
virtual SfxItemSetCreateInputItemSet (const OString &rName)
 
virtual void PageCreated (const OString &rName, SfxTabPage &rPage)
 
SfxItemSetGetInputSetImpl ()
 
SfxTabPageGetTabPage (std::string_view rPageId) const
 
bool PrepareLeaveCurrentPage ()
 
void SavePosAndId ()
 
- Protected Attributes inherited from SfxTabDialogController
std::unique_ptr< weld::Notebookm_xTabCtrl
 
std::unique_ptr< SfxItemSetm_xExampleSet
 

Detailed Description

Definition at line 29 of file tmpdlg.hxx.

Constructor & Destructor Documentation

◆ SwTemplateDlgController()

SwTemplateDlgController::SwTemplateDlgController ( weld::Window pParent,
SfxStyleSheetBase rBase,
SfxStyleFamily  nRegion,
const OString &  sPage,
SwWrtShell pActShell,
bool  bNew 
)
Parameters
sPageIdentifies name of page to open at by default

Definition at line 63 of file tmpdlg.cxx.

References SfxTabDialogController::AddTabPage(), bNewStyle, SfxAbstractDialogFactory::Create(), SvxFooterPage::Create(), SvxHeaderPage::Create(), SwColumnPage::Create(), SwDropCapsPage::Create(), SwFramePage::Create(), SwFrameAddPage::Create(), SwParagraphNumTabPage::Create(), SwFootNotePage::Create(), SwTextGridPage::Create(), SwCondCollPage::Create(), SwWrapTabPage::Create(), SfxTabDialogController::GetApplyButton(), SwView::GetDocShell(), GetHtmlMode(), SvxFooterPage::GetRanges(), SvxHeaderPage::GetRanges(), SwColumnPage::GetRanges(), SwDropCapsPage::GetRanges(), SwFramePage::GetRanges(), SwFrameAddPage::GetRanges(), SwParagraphNumTabPage::GetRanges(), SwFootNotePage::GetRanges(), SwTextGridPage::GetRanges(), SwCondCollPage::GetRanges(), SwWrapTabPage::GetRanges(), SfxTabDialogController::GetResetButton(), SfxTabDialogController::GetStandardButton(), SfxAbstractDialogFactory::GetTabPageCreatorFunc(), SfxAbstractDialogFactory::GetTabPageRangesFunc(), SwWrtShell::GetView(), HTMLMODE_FULL_STYLES, HTMLMODE_ON, SvtCJKOptions::IsAsianTypographyEnabled(), SvtCJKOptions::IsDoubleLinesEnabled(), SvxHtmlOptions::IsPrintLayoutExtension(), nHtmlMode, nType, pWrtShell, SfxTabDialogController::RemoveTabPage(), RES_CONDTXTFMTCOLL(), weld::Widget::set_accessible_description(), weld::Button::set_label(), weld::Widget::set_tooltip_text(), SfxTabDialogController::SetCurPageId(), and SwResId().

Member Function Documentation

◆ Ok()

short SwTemplateDlgController::Ok ( )
overridevirtual

◆ PageCreated()

void SwTemplateDlgController::PageCreated ( const OString &  rId,
SfxTabPage rPage 
)
overridevirtual

◆ RefreshInputSet()

void SwTemplateDlgController::RefreshInputSet ( )
overridevirtual

Member Data Documentation

◆ bNewStyle

bool SwTemplateDlgController::bNewStyle
private

Definition at line 35 of file tmpdlg.hxx.

Referenced by SwTemplateDlgController().

◆ nHtmlMode

sal_uInt16 SwTemplateDlgController::nHtmlMode
private

Definition at line 33 of file tmpdlg.hxx.

Referenced by PageCreated(), and SwTemplateDlgController().

◆ nType

SfxStyleFamily SwTemplateDlgController::nType
private

Definition at line 32 of file tmpdlg.hxx.

Referenced by PageCreated().

◆ pWrtShell

SwWrtShell* SwTemplateDlgController::pWrtShell
private

Definition at line 34 of file tmpdlg.hxx.

Referenced by PageCreated(), and SwTemplateDlgController().


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