LibreOffice Module sw (master) 1
|
#include <fldtdlg.hxx>
Public Member Functions | |
SwFieldDlg (SfxBindings *pB, SwChildWinWrapper *pCW, weld::Window *pParent) | |
virtual | ~SwFieldDlg () override |
DECL_LINK (OKHdl, weld::Button &, void) | |
DECL_LINK (CancelHdl, weld::Button &, void) | |
void | Initialize (SfxChildWinInfo const *pInfo) |
void | ReInitDlg () |
void | EnableInsert (bool bEnable) |
void | InsertHdl () |
void | ActivateDatabasePage () |
void | ShowReferencePage () |
virtual void | Close () override |
virtual void | EndDialog (int nResponse) override |
virtual void | Activate () override |
Public Member Functions inherited from SfxTabDialogController | |
SfxTabDialogController (weld::Widget *pParent, const OUString &rUIXMLDescription, const OUString &rID, const SfxItemSet *=nullptr, bool bEditFmt=false) | |
virtual | ~SfxTabDialogController () override |
void | AddTabPage (const OUString &rName, CreateTabPage pCreateFunc, GetTabPageRanges pRangesFunc) |
void | AddTabPage (const OUString &rName, sal_uInt16 nPageCreateId) |
void | AddTabPage (const OUString &rName, const OUString &rLabel, CreateTabPage pCreateFunc) |
void | AddTabPage (const OUString &rName, const OUString &rLabel, sal_uInt16 nPageCreateId) |
void | RemoveTabPage (const OUString &rName) |
void | SetCurPageId (const OUString &rName) |
void | ShowPage (const OUString &rName) |
OUString | GetCurPageId () const |
SfxTabPage * | GetCurTabPage () const |
const WhichRangesContainer & | GetInputRanges (const SfxItemPool &) |
void | SetInputSet (const SfxItemSet *pInSet) |
const SfxItemSet * | GetOutputItemSet () const |
virtual weld::Button & | GetOKButton () const override |
weld::Button & | GetCancelButton () const |
weld::Button * | GetUserButton () const |
weld::Button * | GetStandardButton () const |
weld::Button * | GetApplyButton () const |
weld::Button * | GetResetButton () const |
void | RemoveResetButton () |
void | RemoveStandardButton () |
virtual short | run () override |
virtual const SfxItemSet * | GetExampleSet () const override |
void | SetApplyHandler (const Link< weld::Button &, void > &_rHdl) |
bool | Apply () |
void | Applied () |
std::vector< OUString > | getAllPageUIXMLDescriptions () const |
bool | selectPageByUIXMLDescription (const OUString &rUIXMLDescription) |
BitmapEx | createScreenshot () const |
OUString | GetScreenshotId () const |
Public Member Functions inherited from SfxOkDialogController | |
SfxOkDialogController (weld::Widget *pParent, const OUString &rUIXMLDescription, const OUString &rID) | |
virtual weld::Button & | GetOKButton () const=0 |
virtual const SfxItemSet * | GetExampleSet () const=0 |
Public Member Functions inherited from SfxDialogController | |
SfxDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId) | |
virtual void | Activate () |
virtual void | Deactivate () |
virtual void | ChildWinDispose () |
virtual void | Close () |
virtual void | EndDialog (int nResponse) |
virtual bool | CloseOnHide () const |
Private Member Functions | |
virtual SfxItemSet * | CreateInputItemSet (const OUString &rId) override |
virtual void | PageCreated (const OUString &rId, SfxTabPage &rPage) override |
void | ReInitTabPage (std::u16string_view rPageId, bool bOnlyActivate=false) |
Private Attributes | |
SwChildWinWrapper * | m_pChildWin |
SfxBindings * | m_pBindings |
bool | m_bHtmlMode |
bool | m_bDataBaseMode |
bool | m_bClosing |
std::unique_ptr< SfxItemSet > | mxInputItemSet |
Additional Inherited Members | |
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 SfxItemSet * | CreateInputItemSet (const OUString &rName) |
virtual void | PageCreated (const OUString &rName, SfxTabPage &rPage) |
virtual void | ActivatePage (const OUString &rPage) |
bool | DeactivatePage (std::u16string_view aPage) |
SfxItemSet * | GetInputSetImpl () |
SfxTabPage * | GetTabPage (std::u16string_view rPageId) const |
bool | PrepareLeaveCurrentPage () |
void | SavePosAndId () |
Protected Attributes inherited from SfxTabDialogController | |
std::unique_ptr< weld::Notebook > | m_xTabCtrl |
std::unique_ptr< SfxItemSet > | m_xExampleSet |
Definition at line 33 of file fldtdlg.hxx.
SwFieldDlg::SwFieldDlg | ( | SfxBindings * | pB, |
SwChildWinWrapper * | pCW, | ||
weld::Window * | pParent | ||
) |
Definition at line 51 of file fldtdlg.cxx.
References SfxTabDialogController::AddTabPage(), utl::OConfigurationTreeRoot::CM_READONLY, weld::Button::connect_clicked(), SwFieldDBPage::Create(), SwFieldDokInfPage::Create(), SwFieldDokPage::Create(), SwFieldFuncPage::Create(), SwFieldRefPage::Create(), SwFieldVarPage::Create(), utl::OConfigurationTreeRoot::createWithComponentContext(), SfxObjectShell::Current(), SfxTabDialogController::GetCancelButton(), GetHtmlMode(), utl::OConfigurationNode::getNodeValue(), SfxTabDialogController::GetOKButton(), HTMLMODE_ON, comphelper::LibreOfficeKit::isActive(), LINK, m_bHtmlMode, and SfxTabDialogController::RemoveTabPage().
|
overridevirtual |
Definition at line 101 of file fldtdlg.cxx.
|
overridevirtual |
Reimplemented from SfxDialogController.
Definition at line 222 of file fldtdlg.cxx.
References SfxObjectShell::Current(), GetActiveView(), SwCursorShell::GetCursor(), GetHtmlMode(), SfxTabDialogController::GetOKButton(), SwPaM::GetPoint(), SwView::GetWrtShell(), SwCursorShell::HasReadonlySel(), HTMLMODE_ON, SwCursorShell::IsReadOnlyAvailable(), SwCursorShell::PosInsideInputField(), ReInitTabPage(), weld::Widget::set_sensitive(), and u.
void SwFieldDlg::ActivateDatabasePage | ( | ) |
Definition at line 265 of file fldtdlg.cxx.
References SfxTabDialogController::GetTabPage(), m_bDataBaseMode, SfxTabDialogController::RemoveTabPage(), SfxTabDialogController::ShowPage(), and u.
|
overridevirtual |
Reimplemented from SfxDialogController.
Definition at line 112 of file fldtdlg.cxx.
References SfxDialogController::EndDialog(), Execute(), FN_INSERT_FIELD, FN_INSERT_FIELD_DATA_ONLY, SfxBindings::GetDispatcher(), m_bClosing, m_bDataBaseMode, m_pBindings, and RET_CLOSE.
Referenced by ReInitDlg().
|
overrideprivatevirtual |
Reimplemented from SfxTabDialogController.
Definition at line 136 of file fldtdlg.cxx.
References SfxObjectShell::Current(), FN_FIELD_DIALOG_DOC_PROPS, SfxObjectShell::GetModel(), SfxShell::GetPool(), and mxInputItemSet.
SwFieldDlg::DECL_LINK | ( | CancelHdl | , |
weld::Button & | , | ||
void | |||
) |
SwFieldDlg::DECL_LINK | ( | OKHdl | , |
weld::Button & | , | ||
void | |||
) |
void SwFieldDlg::EnableInsert | ( | bool | bEnable | ) |
Definition at line 244 of file fldtdlg.cxx.
References GetActiveView(), SwCursorShell::GetCursor(), SfxTabDialogController::GetOKButton(), SwPaM::GetPoint(), SwView::GetWrtShell(), SwCursorShell::HasReadonlySel(), SwCursorShell::IsReadOnlyAvailable(), SwCursorShell::PosInsideInputField(), and weld::Widget::set_sensitive().
|
overridevirtual |
Reimplemented from SfxDialogController.
Definition at line 105 of file fldtdlg.cxx.
References SfxDialogController::EndDialog(), and m_bClosing.
void SwFieldDlg::Initialize | ( | SfxChildWinInfo const * | pInfo | ) |
Definition at line 128 of file fldtdlg.cxx.
References SfxChildWinInfo::aWinState, and m_xDialog.
void SwFieldDlg::InsertHdl | ( | ) |
Definition at line 260 of file fldtdlg.cxx.
References weld::Button::clicked(), and SfxTabDialogController::GetOKButton().
|
overrideprivatevirtual |
Reimplemented from SfxTabDialogController.
Definition at line 289 of file fldtdlg.cxx.
References SfxBindings::GetDispatcher(), SfxViewShell::GetFirst(), SfxDispatcher::GetFrame(), SfxViewShell::GetNext(), SfxViewShell::GetViewFrame(), SwView::GetWrtShell(), and m_pBindings.
void SwFieldDlg::ReInitDlg | ( | ) |
Definition at line 176 of file fldtdlg.cxx.
References Close(), SfxObjectShell::Current(), SfxViewFrame::Current(), Execute(), FN_INSERT_FIELD, GetActiveView(), SwCursorShell::GetCursor(), SfxShell::GetDispatcher(), GetHtmlMode(), SfxTabDialogController::GetOKButton(), SwPaM::GetPoint(), SwView::GetWrtShell(), SwCursorShell::HasReadonlySel(), HTMLMODE_ON, SwCursorShell::IsReadOnlyAvailable(), m_bHtmlMode, m_pChildWin, SwCursorShell::PosInsideInputField(), ReInitTabPage(), weld::Widget::set_sensitive(), SwChildWinWrapper::SetOldDocShell(), and u.
|
private |
Definition at line 214 of file fldtdlg.cxx.
References SwFieldPage::EditNewField(), and SfxTabDialogController::GetTabPage().
Referenced by Activate(), and ReInitDlg().
void SwFieldDlg::ShowReferencePage | ( | ) |
Definition at line 284 of file fldtdlg.cxx.
References SfxTabDialogController::ShowPage().
|
private |
Definition at line 39 of file fldtdlg.hxx.
Referenced by Close(), and EndDialog().
|
private |
Definition at line 38 of file fldtdlg.hxx.
Referenced by ActivateDatabasePage(), and Close().
|
private |
Definition at line 37 of file fldtdlg.hxx.
Referenced by ReInitDlg(), and SwFieldDlg().
|
private |
Definition at line 36 of file fldtdlg.hxx.
Referenced by Close(), and PageCreated().
|
private |
Definition at line 35 of file fldtdlg.hxx.
Referenced by ReInitDlg().
|
private |
Definition at line 40 of file fldtdlg.hxx.
Referenced by CreateInputItemSet().