36 struct RoadmapWizardImpl;
39 namespace RoadmapWizardTypes
110 virtual void dispose()
override;
112 virtual void Resize()
override;
138 void InsertRoadmapItem(
int nIndex,
const OUString& rLabel,
int nId,
bool bEnabled);
@ Default
Use given parent or get a default one using GetDefaultParent(...)
An idle is a timer to be scheduled immediately.
helper class to temporarily suspend any traveling in the wizard
RoadmapWizardTravelSuspension(RoadmapWizard &rWizard)
~RoadmapWizardTravelSuspension()
VclPtr< RoadmapWizard > m_pOWizard
VclPtr< OKButton > m_pFinish
bool ShowPage(sal_uInt16 nLevel)
sal_uInt16 GetCurLevel() const
void enterState(WizardTypes::WizardState _nState)
will be called when a new page is about to be displayed
ImplWizPageData * mpFirstPage
std::unique_ptr< WizardMachineImplData > m_xWizardImpl
virtual void StateChanged(StateChangedType nStateChange) override
void SetRoadmapHelpId(const OUString &_rId)
void GetOrCreatePage(const WizardTypes::WizardState i_nState)
void ShowRoadmap(bool bShow)
DECL_LINK(OnPrevPage, Button *, void)
DECL_LINK(ImplHandleWizardLayoutTimerHdl, Timer *, void)
tools::Long LogicalCoordinateToPixel(int iCoordinate) const
DECL_LINK(OnRoadmapItemSelected, LinkParamNone *, void)
void SetItemSelectHdl(const Link< LinkParamNone *, void > &_rHdl)
bool isTravelingSuspended() const
std::unique_ptr< RoadmapWizardImpl > m_xRoadmapImpl
void AddPage(TabPage *pPage)
virtual void Resize() override
void implUpdateRoadmap()
updates the roadmap control to show the given path, as far as possible (modulo conflicts with other p...
VclPtr< TabPage > createPage(WizardTypes::WizardState nState)
to override to create new pages
VclPtr< PushButton > mpNextBtn
RoadmapWizard(vcl::Window *pParent, WinBits nStyle=WB_STDDIALOG, InitFlag eFlag=InitFlag::Default)
VclPtr< TabPage > mpCurTabPage
int GetCurrentRoadmapItemID() const
sal_Int16 mnLeftAlignCount
void SetLeftAlignedButtonCount(sal_Int16 _nCount)
sets the number of buttons which should be left-aligned.
DECL_LINK(OnFinish, Button *, void)
void InsertRoadmapItem(int nIndex, const OUString &rLabel, int nId, bool bEnabled)
TabPage * ImplGetPage(sal_uInt16 nLevel) const
virtual void DumpAsPropertyTree(tools::JsonWriter &rJsonWriter) override
Dumps itself and potentially its children to a property tree, to be written easily to JSON.
virtual void dispose() override
This is intended to be used to clear any locally held references to other Window-subclass objects.
void AddButton(Button *pButton, tools::Long nOffset=0)
ImplWizButtonData * mpFirstBtn
const Size & GetPageSizePixel() const
void DeleteRoadmapItems()
void RemoveButton(Button *pButton)
void Finish(tools::Long nResult=0)
void ImplCalcSize(Size &rSize)
VclPtr< CancelButton > m_pCancel
void SetRoadmapBitmap(const BitmapEx &maBitmap)
void SetPage(sal_uInt16 nLevel, TabPage *pPage)
WizardTypes::WizardState getCurrentState() const
returns the current state of the machine
virtual bool EventNotify(NotifyEvent &rNEvt) override
void travelNext()
travel to the next state
virtual void queue_resize(StateChangedType eReason=StateChangedType::Layout) override
VclPtr< vcl::Window > mpViewWindow
FactoryFunction GetUITestFactory() const override
void SelectRoadmapItemByID(int nId, bool bGrabFocus=true)
void travelPrevious()
travel to the previous state
bool skipBackwardUntil(WizardTypes::WizardState nTargetState)
moves back one or more states, until a given state is reached
void ImplShowTabPage(TabPage *pPage)
VclPtr< PushButton > mpPrevBtn
void removePageFromHistory(WizardTypes::WizardState nToRemove)
removes a page from the history.
bool skipUntil(WizardTypes::WizardState nTargetState)
skips one or more states, until a given state is reached
void SetPageSizePixel(const Size &rSize)
VclPtr< PushButton > m_pNextPage
void resumeTraveling(AccessGuard)
WizardTypes::WizardState determineNextState(WizardTypes::WizardState nCurrentState) const
determine the next state to travel from the given one
void RemovePage(TabPage *pPage)
VclPtr< PushButton > m_pPrevPage
DECL_LINK(OnNextPage, Button *, void)
void suspendTraveling(AccessGuard)
VclPtr< HelpButton > m_pHelp
OUString getStateDisplayName(WizardTypes::WizardState nState) const
returns a human readable name for a given state
virtual ~RoadmapWizard() override
TabPage * GetPage(sal_uInt16 nLevel) const
void implConstruct(const WizardButtonFlags _nButtonFlags)
std::function< std::unique_ptr< UIObject >(vcl::Window *)> FactoryFunction
VclPtr< TabPage >(* RoadmapPageFactory)(RoadmapWizard &)
WinBits const WB_STDDIALOG