/** The DrawController is the UNO controller for Impress and Draw. It reliesobjectsthatimplementtheDrawSubControllerinterfaceforview specificbehaviour.ThelifetimeoftheDrawControllerisroughlythat ofViewShellBasebutnotethattheDrawControllercan(inthecaseofa reload)outlivetheViewShellBase.
/** Create a new DrawController object for the given ViewShellBase.
*/ explicit DrawController (ViewShellBase& rBase) noexcept;
virtual ~DrawController() noexcept override;
/** Replace the currently used sub controller with the given one. This newsubcontrollerisusedfromnowonfortheview(thatisthe mainviewshelltobeprecise)specifictasks.Callthismethod withasuitablesubcontrollerwhenevertheviewshellinthecenter paneisexchanged. @parampSubController TheViewShellspecificsubcontrollerorNULLwhen(temporarily whileswitchingtoanotherone)thereisnoViewShelldisplayed inthecenterpane.
*/ void SetSubController ( const css::uno::Reference<css::drawing::XDrawSubController>& rxSubController);
/** Call this method when the VisArea has changed.
*/ void FireVisAreaChanged (const ::tools::Rectangle& rVisArea) noexcept;
/** Call this method when the selection has changed.
*/ void FireSelectionChangeListener() noexcept;
/** Call this method when the edit mode has changed.
*/ void FireChangeEditMode (bool bMasterPageMode) noexcept;
/** Call this method when the layer mode has changed.
*/ void FireChangeLayerMode (bool bLayerMode) noexcept;
/** Call this method when there is a new current page.
*/ void FireSwitchCurrentPage (SdPage* pCurrentPage) noexcept;
/** Broadcast a sidebar context change that is caused by a view switch.
*/ void BroadcastContextChange() const; void NotifyAccUpdate(); void fireChangeLayer( const css::uno::Reference< css::drawing::XLayer>& xNewLayer ) noexcept; // change the parameter to int //void fireSwitchCurrentPage( String pageName) throw(); void fireSwitchCurrentPage( sal_Int32 pageIndex) noexcept; bool IsDisposing() const { return mbDisposing; }
/** Return a pointer to the ViewShellBase object that the DrawController isconnectedto. @return Thereturnedpointeris<NULL/>afteracallto ReleaseViewShellBase().
*/
ViewShellBase* GetViewShellBase() { return mpBase;}
/** This method is typically called from the destructor of ViewShellBase totelltheDrawControllerthatitanditsmembersmustnotaccess theViewShellBaseanymore. AfterthiscalltheDrawControllerissemi-disposed.
*/ void ReleaseViewShellBase();
private: /** This method must return the name to index table. This table containsallpropertynamesandtypesofthisobject.
*/ virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper() override;
/** The same as setFastPropertyValue, but no exception is thrown and nHandle isalwaysvalid.Youmustnotbroadcastthechangesinthismethod.
*/ virtualvoid SAL_CALL setFastPropertyValue_NoBroadcast(
sal_Int32 nHandle, const css::uno::Any& rValue ) override;
/** When the called object has been disposed already this method throws aDisposedexceptionanddoesnotreturn.
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.