|
LibreOffice Module extensions (master) 1
|
#include <controlwizard.hxx>
Public Member Functions | |
| OControlWizard (weld::Window *_pParent, const css::uno::Reference< css::beans::XPropertySet > &_rxObjectModel, const css::uno::Reference< css::uno::XComponentContext > &_rxContext) | |
| virtual | ~OControlWizard () override |
| const css::uno::Reference< css::uno::XComponentContext > & | getComponentContext () const |
| const OControlWizardContext & | getContext () const |
| bool | updateContext (const OAccessRegulator &) |
| void | setFormConnection (const OAccessRegulator &, const css::uno::Reference< css::sdbc::XConnection > &_rxConn, bool _bAutoDispose) |
| css::uno::Reference< css::sdbc::XConnection > | getFormConnection (const OAccessRegulator &) const |
| css::uno::Reference< css::task::XInteractionHandler > | getInteractionHandler (weld::Window *_pWindow) const |
| returns the com.sun.star.task.InteractionHandler More... | |
| bool | travelNext () |
Public Member Functions inherited from vcl::WizardMachine | |
| 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 |
Public Member Functions inherited from weld::AssistantController | |
| AssistantController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId) | |
| virtual Dialog * | getDialog () override |
| virtual | ~AssistantController () override |
Public Member Functions inherited from weld::DialogController | |
| 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 |
Private Member Functions | |
| bool | initContext () |
| void | implGetDSContext () |
| void | implDetermineForm () |
| void | implDeterminePage () |
| void | implDetermineShape () |
Private Attributes | |
| OControlWizardContext | m_aContext |
| css::uno::Reference< css::uno::XComponentContext > | m_xContext |
Additional Inherited Members | |
Static Public Member Functions inherited from weld::DialogController | |
| static bool | runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &) |
Protected Attributes inherited from vcl::WizardMachine | |
| BuilderPage * | m_pCurTabPage |
| std::unique_ptr< weld::Button > | m_xFinish |
| std::unique_ptr< weld::Button > | m_xCancel |
| std::unique_ptr< weld::Button > | m_xNextPage |
| std::unique_ptr< weld::Button > | m_xPrevPage |
| std::unique_ptr< weld::Button > | m_xHelp |
Protected Attributes inherited from weld::AssistantController | |
| std::unique_ptr< weld::Builder > | m_xBuilder |
| std::unique_ptr< weld::Assistant > | m_xAssistant |
Definition at line 86 of file controlwizard.hxx.
| dbp::OControlWizard::OControlWizard | ( | weld::Window * | _pParent, |
| const css::uno::Reference< css::beans::XPropertySet > & | _rxObjectModel, | ||
| const css::uno::Reference< css::uno::XComponentContext > & | _rxContext | ||
| ) |
Definition at line 208 of file controlwizard.cxx.
References CANCEL, vcl::WizardMachine::defaultButton(), vcl::WizardMachine::enableButtons(), FINISH, initContext(), m_aContext, NEXT, PREVIOUS, and dbp::OControlWizardContext::xObjectModel.
|
overridevirtual |
Definition at line 220 of file controlwizard.cxx.
|
protectedpure virtual |
Implemented in dbp::OGridWizard, dbp::OGroupBoxWizard, and dbp::OListComboWizard.
Referenced by run().
|
protected |
Definition at line 600 of file controlwizard.cxx.
References Any, DBG_ASSERT, Exception, m_aContext, dbp::OControlWizardSettings::sControlLabel, TOOLS_WARN_EXCEPTION, and dbp::OControlWizardContext::xObjectModel.
Referenced by dbp::OGroupBoxWizard::onFinish().
|
inline |
Definition at line 106 of file controlwizard.hxx.
References m_xContext.
Referenced by dbp::OGroupBoxWizard::onFinish().
|
inline |
Definition at line 108 of file controlwizard.hxx.
References m_aContext.
Referenced by dbp::OGridWizard::approveControl(), dbp::OGroupBoxWizard::determineNextState(), dbp::OGroupBoxWizard::enterState(), dbp::OControlWizardPage::getContext(), dbp::OGridWizard::implApplySettings(), dbp::OListComboWizard::implApplySettings(), needDatasourceSelection(), dbp::OGroupBoxWizard::onFinish(), and run().
|
protected |
Definition at line 378 of file controlwizard.cxx.
References Exception, m_aContext, TOOLS_WARN_EXCEPTION, and dbp::OControlWizardContext::xForm.
Referenced by getFormConnection(), dbp::OListComboWizard::implApplySettings(), and setFormConnection().
| Reference< XConnection > dbp::OControlWizard::getFormConnection | ( | const OAccessRegulator & | ) | const |
Definition at line 373 of file controlwizard.cxx.
References getFormConnection().
Referenced by dbp::OControlWizardPage::getFormConnection().
| Reference< XInteractionHandler > dbp::OControlWizard::getInteractionHandler | ( | weld::Window * | _pWindow | ) | const |
returns the com.sun.star.task.InteractionHandler
| _pWindow | The window will be used when an error message has to be shown. |
Definition at line 428 of file controlwizard.cxx.
References Exception, m_xContext, ShowServiceNotAvailableError(), and u.
Referenced by dbp::OTableSelectionPage::implFillTables(), and initContext().
|
private |
Definition at line 280 of file controlwizard.cxx.
References DBG_ASSERT, m_aContext, dbp::OControlWizardContext::xForm, dbp::OControlWizardContext::xObjectModel, and dbp::OControlWizardContext::xRowSet.
Referenced by initContext().
|
private |
Definition at line 295 of file controlwizard.cxx.
References DBG_ASSERT, Exception, m_aContext, TOOLS_WARN_EXCEPTION, xController, dbp::OControlWizardContext::xDocumentModel, dbp::OControlWizardContext::xDrawPage, xModel, and dbp::OControlWizardContext::xObjectModel.
Referenced by initContext().
|
private |
Definition at line 249 of file controlwizard.cxx.
References DBG_ASSERT, i, m_aContext, dbp::OControlWizardContext::xDrawPage, dbp::OControlWizardContext::xObjectModel, and dbp::OControlWizardContext::xObjectShape.
Referenced by initContext().
|
private |
Definition at line 358 of file controlwizard.cxx.
References DBG_ASSERT, Exception, m_aContext, m_xContext, and dbp::OControlWizardContext::xDatasourceContext.
Referenced by initContext().
|
private |
Definition at line 443 of file controlwizard.cxx.
References dbp::OControlWizardContext::aFieldNames, Any, dbp::OControlWizardContext::aTypes, dbp::OControlWizardContext::bEmbedded, DBG_ASSERT, Exception, getInteractionHandler(), implDetermineForm(), implDeterminePage(), implDetermineShape(), implGetDSContext(), m_aContext, weld::AssistantController::m_xAssistant, m_xContext, compmodule::ModuleRes(), TOOLS_WARN_EXCEPTION, xColumn, dbp::OControlWizardContext::xDocumentModel, dbp::OControlWizardContext::xDrawPage, dbp::OControlWizardContext::xForm, dbp::OControlWizardContext::xObjectContainer, dbp::OControlWizardContext::xObjectModel, dbp::OControlWizardContext::xObjectShape, and dbp::OControlWizardContext::xRowSet.
Referenced by OControlWizard(), and updateContext().
|
protected |
Definition at line 626 of file controlwizard.cxx.
References DBG_ASSERT, Exception, m_aContext, dbp::OControlWizardSettings::sControlLabel, TOOLS_WARN_EXCEPTION, and dbp::OControlWizardContext::xObjectModel.
Referenced by dbp::OGridWizard::OGridWizard(), dbp::OGroupBoxWizard::OGroupBoxWizard(), and dbp::OListComboWizard::OListComboWizard().
|
protected |
Definition at line 651 of file controlwizard.cxx.
References dbp::OControlWizardContext::aFieldNames, and getContext().
Referenced by dbp::OGridWizard::OGridWizard(), and dbp::OListComboWizard::OListComboWizard().
|
overrideprotectedvirtual |
Reimplemented from weld::DialogController.
Definition at line 224 of file controlwizard.cxx.
References vcl::WizardMachine::ActivatePage(), approveControl(), Exception, getContext(), weld::AssistantController::m_xAssistant, RET_CANCEL, weld::DialogController::run(), and dbp::OControlWizardContext::xObjectModel.
| void dbp::OControlWizard::setFormConnection | ( | const OAccessRegulator & | , |
| const css::uno::Reference< css::sdbc::XConnection > & | _rxConn, | ||
| bool | _bAutoDispose | ||
| ) |
Definition at line 394 of file controlwizard.cxx.
References Any, disposeComponent(), Exception, getFormConnection(), m_aContext, TOOLS_WARN_EXCEPTION, and dbp::OControlWizardContext::xForm.
Referenced by dbp::OControlWizardPage::setFormConnection().
| bool vcl::WizardMachine::travelNext | ( | ) |
| bool dbp::OControlWizard::updateContext | ( | const OAccessRegulator & | ) |
Definition at line 423 of file controlwizard.cxx.
References initContext().
Referenced by dbp::OControlWizardPage::updateContext().
|
private |
Definition at line 89 of file controlwizard.hxx.
Referenced by commitControlSettings(), getContext(), getFormConnection(), implDetermineForm(), implDeterminePage(), implDetermineShape(), implGetDSContext(), initContext(), initControlSettings(), OControlWizard(), and setFormConnection().
|
private |
Definition at line 91 of file controlwizard.hxx.
Referenced by getComponentContext(), getInteractionHandler(), implGetDSContext(), and initContext().