public: /** This constructor is used by the view factory of the SFX macros. NotethatLateInit()hastobecalledaftertheconstructor terminatesandbeforedoinganythingelse.
*/
ViewShellBase (
SfxViewFrame& rFrame,
SfxViewShell* pOldShell);
virtual ~ViewShellBase() override;
/** This method is part of the object construction. It HAS to be called aftertheconstructorhascreatedanewobject.
*/ void LateInit (const OUString& rsDefaultView);
/** Return the main view shell stacked on the called ViewShellBase object.Thisisusuallytheviewshelldisplayedinthecenter pane.
*/
std::shared_ptr<ViewShell> GetMainViewShell() const;
/** When given a view frame this static method returns the correspondingsd::ViewShellBaseobject. @return WhentheSfxViewShellofthegivenframeisnota ViewShellBaseobjectthenNULLisreturned.
*/
SAL_RET_MAYBENULL static ViewShellBase* GetViewShellBase (SfxViewFrame const * pFrame);
/** Callback function for general slot calls. At the moment these are slotsforswitchingthepanedockingwindowsonandoff.
*/ virtualvoid Execute (SfxRequest& rRequest);
/** Callback function for retrieving item values related to certain slots.ThisisthecompanionofExecute()andhandlestheslots concernedwithshowingthepanedockingwindows.
*/ void GetState (SfxItemSet& rSet);
/** This call is forwarded to the main sub-shell.
*/ virtual ErrCode DoVerb(sal_Int32 nVerb) override;
/** Return a new renderer that can be used for example for printing the document.
*/ virtual css::uno::Reference<css::view::XRenderable> GetRenderable() override;
/// Forwarded to the print manager. virtual SfxPrinter* GetPrinter (bool bCreate = false) override;
/// Forwarded to the print manager. virtual sal_uInt16 SetPrinter (
SfxPrinter* pNewPrinter,
SfxPrinterChangeFlags nDiffFlags = SFX_PRINTER_ALL) override;
/// Forward methods to main sub shell. virtualvoid WriteUserDataSequence (
css::uno::Sequence< css::beans::PropertyValue >&) override;
/** Pass the given properties to the main view shell. After that we ensurethattherightviewshelltypeisdisplayedinthecenter pane.
*/ virtualvoid ReadUserDataSequence ( const css::uno::Sequence< css::beans::PropertyValue >&) override;
/** When <TRUE/> is given, then the mouse shape is set to hour glass (or whateverthebusyshapelookslikeonthesystem.)
*/ void SetBusyState (bool bBusy);
/** Call this method when the controls of this view shell or the embeddedsubshellneedtoberearranged.Thisisnecessary e.g.whentheborderhasbeenmodified(UpdateBorder()callsthis method).
/** Update the border that is set with SfxViewShell::SetBorderPixel(). ThisisdonebyaddingtheborderusedbytheViewShellBaseitself withtheborderusedbythemainviewshell.
/** With this method the UI controls can be turned on or off. It is usedbytheFuSlideShowtohidetheUIcontrolswhileshowinga non-full-screenorin-windowpresentationinthecenterpane.
*/ void ShowUIControls (bool bVisible);
/** Return an event multiplexer. It is a single class that forwards eventsfromvarioussources.Thismethodmustnotbecalledbefore LateInit()hasterminated.
*/
std::shared_ptr<tools::EventMultiplexer> const & GetEventMultiplexer() const;
/** returns the complete area of the current view relative to the frame window
*/ const ::tools::Rectangle& getClientRectangle() const;
/** Return the window that is used by the main view shell to display its viewandotherUIelements,likescrollbarsandrulers.Ownership ofthatwindowremainswiththecalledViewShellBaseobject.
*/
vcl::Window* GetViewWindow();
/** returns the ui descriptive name for the given uno slot. The result is taken from the configuration
and not cached, so do not use it excessive (f.e. in status updates) */
OUString RetrieveLabelFromCommand( const OUString& aCmdURL ) const; /// See SfxViewShell::getPart(). int getPart() const override; /// See SfxViewShell::getEditMode(). int getEditMode() const override; /// See SfxViewShell::setEditMode(). void setEditMode(int nMode); /// See SfxViewShell::afterCallbackRegistered(). void afterCallbackRegistered() override; /// See SfxViewShell::NotifyCursor(). void NotifyCursor(SfxViewShell* pViewShell) const override; /// See SfxViewShell::GetColorConfigColor().
::Color GetColorConfigColor(svtools::ColorConfigEntry nColorType) const override;
/** Determine from the properties of the document shell the initial type oftheviewshellinthecenterpane.Weusethismethodtoavoid startingwiththewrongtype.WhenReadUserDataSequence()iscalled wecheckthattherighttypeisactiveandchangeagainifthatis notthecasebecausesomethingwentwrong.
*/
OUString GetInitialViewShellType() const;
};
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.