LibreOffice Module svtools (master) 1
|
#include <wizardshell.hxx>
Public Member Functions | |
WizardShell (weld::Window *pParent, const css::uno::Reference< css::ui::dialogs::XWizardController > &i_rController, const css::uno::Sequence< css::uno::Sequence< sal_Int16 > > &i_rPaths) | |
virtual short | run () override |
virtual std::unique_ptr< BuilderPage > | createPage (WizardState i_nState) override |
virtual void | enterState (WizardState i_nState) override |
virtual bool | leaveState (WizardState i_nState) override |
virtual OUString | getStateDisplayName (WizardState i_nState) const override |
virtual bool | canAdvance () const override |
virtual bool | onFinish () override |
virtual vcl::IWizardPageController * | getPageController (BuilderPage *pCurrentPage) const override |
bool | advanceTo (const sal_Int16 i_nPageId) |
bool | goBackTo (const sal_Int16 i_nPageId) |
void | activatePath (const sal_Int16 i_nPathID, const bool i_bFinal) |
css::uno::Reference< css::ui::dialogs::XWizardPage > | getCurrentWizardPage () const |
sal_Int16 | getCurrentPage () const |
void | enablePage (const sal_Int16 i_PageID, const bool i_Enable) |
bool | knowsPage (const sal_Int16 i_nPageID) const |
![]() | |
RoadmapWizardMachine (weld::Window *_pParent) | |
virtual | ~RoadmapWizardMachine () override |
void | SetRoadmapHelpId (const OUString &_rId) |
bool | isStateEnabled (WizardTypes::WizardState nState) const |
virtual bool | canAdvance () const override |
virtual void | updateTravelUI () override |
![]() | |
WizardMachine (weld::Window *_pParent, WizardButtonFlags _nButtonFlags) | |
virtual | ~WizardMachine () override |
bool | Finish (short nResult=RET_CANCEL) |
bool | ShowPage (WizardTypes::WizardState nState) |
bool | ShowNextPage () |
bool | ShowPrevPage () |
void | AddPage (std::unique_ptr< BuilderPage > xPage) |
void | RemovePage (const BuilderPage *pPage) |
void | SetPage (WizardTypes::WizardState nLevel, std::unique_ptr< BuilderPage > xPage) |
BuilderPage * | GetPage (WizardTypes::WizardState eState) const |
void | enableButtons (WizardButtonFlags _nWizardButtonFlags, bool _bEnable) |
void | defaultButton (WizardButtonFlags _nWizardButtonFlags) |
void | defaultButton (weld::Button *_pNewDefButton) |
void | setTitleBase (const OUString &_rTitleBase) |
virtual bool | canAdvance () const |
virtual void | updateTravelUI () |
void | suspendTraveling (AccessGuard) |
void | resumeTraveling (AccessGuard) |
bool | isTravelingSuspended () const |
![]() | |
AssistantController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId) | |
virtual Dialog * | getDialog () override |
virtual | ~AssistantController () override |
![]() | |
virtual Dialog * | getDialog ()=0 |
const Dialog * | getConstDialog () const |
virtual short | run () |
void | set_title (const OUString &rTitle) |
OUString | get_title () const |
void | set_help_id (const OUString &rHelpId) |
OUString | get_help_id () const |
void | response (int nResponse) |
virtual | ~DialogController () COVERITY_NOEXCEPT_FALSE |
Static Public Member Functions | |
static sal_Int16 | convertCommitReasonToTravelType (const CommitPageReason i_eReason) |
![]() | |
static bool | runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &) |
Private Types | |
typedef std::map< BuilderPage *, PWizardPageController > | Page2ControllerMap |
Private Member Functions | |
sal_Int16 | impl_stateToPageId (const WizardState i_nState) const |
WizardState | impl_pageIdToState (const sal_Int16 i_nPageId) const |
PWizardPageController | impl_getController (BuilderPage *i_pPage) const |
virtual OUString | getPageIdentForState (WizardState nState) const override |
virtual WizardState | getStateFromPageIdent (const OUString &rIdent) const override |
void | activatePath (RoadmapWizardTypes::PathId _nPathId, bool _bDecideForIt=false) |
Private Attributes | |
const css::uno::Reference< css::ui::dialogs::XWizardController > | m_xController |
const sal_Int16 | m_nFirstPageID |
Page2ControllerMap | m_aPageControllers |
Definition at line 41 of file wizardshell.hxx.
|
private |
Definition at line 120 of file wizardshell.hxx.
svt::uno::WizardShell::WizardShell | ( | weld::Window * | pParent, |
const css::uno::Reference< css::ui::dialogs::XWizardController > & | i_rController, | ||
const css::uno::Sequence< css::uno::Sequence< sal_Int16 > > & | i_rPaths | ||
) |
Definition at line 54 of file wizardshell.cxx.
References vcl::RoadmapWizardMachine::declarePath(), vcl::WizardMachine::enableAutomaticNextButtonState(), ENSURE_OR_THROW, vcl::WizardMachine::GetOrCreatePage(), i, impl_pageIdToState(), weld::AssistantController::m_xAssistant, m_xController, and nPageId.
|
inline |
Definition at line 76 of file wizardshell.hxx.
References vcl::RoadmapWizardMachine::activatePath().
|
private |
|
inline |
Definition at line 65 of file wizardshell.hxx.
References impl_pageIdToState(), and vcl::WizardMachine::skipUntil().
|
overridevirtual |
Reimplemented from vcl::RoadmapWizardMachine.
Definition at line 232 of file wizardshell.cxx.
References vcl::RoadmapWizardMachine::canAdvance(), DBG_UNHANDLED_EXCEPTION, Exception, and m_xController.
|
static |
Definition at line 96 of file wizardshell.cxx.
References vcl::WizardTypes::eFinish, vcl::WizardTypes::eTravelBackward, and vcl::WizardTypes::eTravelForward.
Referenced by svt::uno::WizardPageController::commitPage().
|
overridevirtual |
Implements vcl::WizardMachine.
Definition at line 194 of file wizardshell.cxx.
References ENSURE_OR_RETURN, impl_stateToPageId(), m_aPageControllers, weld::AssistantController::m_xAssistant, m_xController, and nPageId.
void svt::uno::WizardShell::enablePage | ( | const sal_Int16 | i_PageID, |
const bool | i_Enable | ||
) |
Definition at line 174 of file wizardshell.cxx.
References vcl::RoadmapWizardMachine::enableState(), and impl_pageIdToState().
|
overridevirtual |
Reimplemented from vcl::RoadmapWizardMachine.
Definition at line 117 of file wizardshell.cxx.
References DBG_UNHANDLED_EXCEPTION, vcl::RoadmapWizardMachine::enterState(), Exception, impl_stateToPageId(), and m_xController.
|
inline |
Definition at line 84 of file wizardshell.hxx.
References vcl::WizardMachine::getCurrentState(), and impl_stateToPageId().
Reference< XWizardPage > svt::uno::WizardShell::getCurrentWizardPage | ( | ) | const |
Definition at line 164 of file wizardshell.cxx.
References ENSURE_OR_RETURN, vcl::WizardMachine::getCurrentState(), vcl::WizardMachine::GetPage(), and impl_getController().
|
overridevirtual |
Reimplemented from vcl::WizardMachine.
Definition at line 211 of file wizardshell.cxx.
References impl_getController().
|
overrideprivatevirtual |
Reimplemented from vcl::WizardMachine.
Definition at line 86 of file wizardshell.cxx.
References impl_stateToPageId(), and nState.
|
overridevirtual |
Reimplemented from vcl::RoadmapWizardMachine.
Definition at line 216 of file wizardshell.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, impl_stateToPageId(), and m_xController.
|
overrideprivatevirtual |
Reimplemented from vcl::WizardMachine.
Definition at line 91 of file wizardshell.cxx.
References impl_pageIdToState().
|
inline |
Definition at line 69 of file wizardshell.hxx.
References impl_pageIdToState(), and vcl::WizardMachine::skipBackwardUntil().
|
private |
Definition at line 156 of file wizardshell.cxx.
References ENSURE_OR_RETURN, m_aPageControllers, and pos.
Referenced by getCurrentWizardPage(), and getPageController().
|
inlineprivate |
Definition at line 102 of file wizardshell.hxx.
References m_nFirstPageID.
Referenced by advanceTo(), enablePage(), getStateFromPageIdent(), goBackTo(), knowsPage(), and WizardShell().
|
inlineprivate |
Definition at line 97 of file wizardshell.hxx.
References m_nFirstPageID.
Referenced by createPage(), enterState(), getCurrentPage(), getPageIdentForState(), getStateDisplayName(), and leaveState().
|
inline |
Definition at line 91 of file wizardshell.hxx.
References impl_pageIdToState(), and vcl::RoadmapWizardMachine::knowsState().
|
overridevirtual |
Reimplemented from vcl::WizardMachine.
Definition at line 135 of file wizardshell.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, impl_stateToPageId(), vcl::WizardMachine::leaveState(), and m_xController.
|
overridevirtual |
Reimplemented from vcl::WizardMachine.
Definition at line 248 of file wizardshell.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, m_xController, and vcl::WizardMachine::onFinish().
|
overridevirtual |
Reimplemented from weld::DialogController.
Definition at line 80 of file wizardshell.cxx.
References vcl::WizardMachine::ActivatePage(), and weld::DialogController::run().
|
private |
Definition at line 124 of file wizardshell.hxx.
Referenced by createPage(), and impl_getController().
|
private |
Definition at line 123 of file wizardshell.hxx.
Referenced by impl_pageIdToState(), and impl_stateToPageId().
|
private |
Definition at line 122 of file wizardshell.hxx.
Referenced by canAdvance(), createPage(), enterState(), getStateDisplayName(), leaveState(), onFinish(), and WizardShell().