wizardshell.hxx (01aa44aa) | wizardshell.hxx (89763fdb) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 37 unchanged lines hidden (view full) --- 46 //= WizardShell 47 //================================================================================================================== 48 typedef ::svt::RoadmapWizard WizardShell_Base; 49 class WizardShell : public WizardShell_Base 50 { 51 public: 52 WizardShell( 53 Window* _pParent, | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 37 unchanged lines hidden (view full) --- 46 //= WizardShell 47 //================================================================================================================== 48 typedef ::svt::RoadmapWizard WizardShell_Base; 49 class WizardShell : public WizardShell_Base 50 { 51 public: 52 WizardShell( 53 Window* _pParent, |
54 const ::com::sun::star::uno::Reference< ::com::sun::star::ui::dialogs::XWizard >& i_rWizard, | |
55 const ::com::sun::star::uno::Reference< ::com::sun::star::ui::dialogs::XWizardController >& i_rController, 56 const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< sal_Int16 > >& i_rPaths 57 ); 58 virtual ~WizardShell(); 59 60 // Dialog overridables 61 virtual short Execute(); 62 63 // OWizardMachine overridables 64 virtual TabPage* createPage( WizardState i_nState ); 65 virtual void enterState( WizardState i_nState ); 66 virtual sal_Bool leaveState( WizardState i_nState ); 67 virtual String getStateDisplayName( WizardState i_nState ) const; 68 virtual bool canAdvance() const; 69 virtual sal_Bool onFinish(); 70 virtual IWizardPageController* 71 getPageController( TabPage* _pCurrentPage ) const; 72 | 54 const ::com::sun::star::uno::Reference< ::com::sun::star::ui::dialogs::XWizardController >& i_rController, 55 const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< sal_Int16 > >& i_rPaths 56 ); 57 virtual ~WizardShell(); 58 59 // Dialog overridables 60 virtual short Execute(); 61 62 // OWizardMachine overridables 63 virtual TabPage* createPage( WizardState i_nState ); 64 virtual void enterState( WizardState i_nState ); 65 virtual sal_Bool leaveState( WizardState i_nState ); 66 virtual String getStateDisplayName( WizardState i_nState ) const; 67 virtual bool canAdvance() const; 68 virtual sal_Bool onFinish(); 69 virtual IWizardPageController* 70 getPageController( TabPage* _pCurrentPage ) const; 71 |
73 // attribute access 74 const ::com::sun::star::uno::Reference< ::com::sun::star::ui::dialogs::XWizard >& 75 getWizard() const { return m_xWizard; } 76 | |
77 static sal_Int16 convertCommitReasonToTravelType( const CommitPageReason i_eReason ); 78 79 // operations 80 sal_Bool advanceTo( const sal_Int16 i_nPageId ) 81 { 82 return skipUntil( impl_pageIdToState( i_nPageId ) ); 83 } 84 sal_Bool goBackTo( const sal_Int16 i_nPageId ) --- 41 unchanged lines hidden (view full) --- 126 using WizardShell_Base::skipUntil; 127 using WizardShell_Base::skipBackwardUntil; 128 using WizardShell_Base::getCurrentState; 129 using WizardShell_Base::activatePath; 130 131 private: 132 typedef ::std::map< TabPage*, PWizardPageController > Page2ControllerMap; 133 | 72 static sal_Int16 convertCommitReasonToTravelType( const CommitPageReason i_eReason ); 73 74 // operations 75 sal_Bool advanceTo( const sal_Int16 i_nPageId ) 76 { 77 return skipUntil( impl_pageIdToState( i_nPageId ) ); 78 } 79 sal_Bool goBackTo( const sal_Int16 i_nPageId ) --- 41 unchanged lines hidden (view full) --- 121 using WizardShell_Base::skipUntil; 122 using WizardShell_Base::skipBackwardUntil; 123 using WizardShell_Base::getCurrentState; 124 using WizardShell_Base::activatePath; 125 126 private: 127 typedef ::std::map< TabPage*, PWizardPageController > Page2ControllerMap; 128 |
134 const ::com::sun::star::uno::Reference< ::com::sun::star::ui::dialogs::XWizard > m_xWizard; | |
135 const ::com::sun::star::uno::Reference< ::com::sun::star::ui::dialogs::XWizardController > m_xController; 136 const sal_Int16 m_nFirstPageID; 137 Page2ControllerMap m_aPageControllers; 138 }; 139 140//...................................................................................................................... 141} } // namespace svt::uno 142//...................................................................................................................... 143 144#endif // SVT_UNO_WIZARD_SHELL | 129 const ::com::sun::star::uno::Reference< ::com::sun::star::ui::dialogs::XWizardController > m_xController; 130 const sal_Int16 m_nFirstPageID; 131 Page2ControllerMap m_aPageControllers; 132 }; 133 134//...................................................................................................................... 135} } // namespace svt::uno 136//...................................................................................................................... 137 138#endif // SVT_UNO_WIZARD_SHELL |