Notethatthisclassisnotinitsfinalstate.
*/ class SlideSorter final
{ friendclass controller::SlotManager; public:
~SlideSorter();
/// Forbid copy construction and copy assignment
SlideSorter(const SlideSorter&) = delete;
SlideSorter& operator=(const SlideSorter&) = delete;
/** Create a new slide sorter that is strongly coupled to the given view shell.Usethisfunctionforaslidesorterintheleftpane. @paramrViewShell TypicallyaSlideSorterViewShellobject. @paramrpContentWindow TypicallythecontentwindowoftheViewShell. @paramrpHorizontalScrollBar TypicallythehorizontalscrollbaroftheViewShell. @paramrpVerticalScrollBar TypicallytheverticalscrollbaroftheViewShell.
*/ static std::shared_ptr<SlideSorter> CreateSlideSorter (
ViewShell& rViewShell,
sd::Window* pContentWindow,
ScrollAdaptor* pHorizontalScrollBar,
ScrollAdaptor* pVerticalScrollBar);
/** Return the control of the vertical scroll bar.
*/ const VclPtr<ScrollAdaptor>& GetVerticalScrollBar() const { return mpVerticalScrollBar;}
/** Return the control of the horizontal scroll bar.
*/ const VclPtr<ScrollAdaptor>& GetHorizontalScrollBar() const { return mpHorizontalScrollBar;}
/** Return the content window. This is a sibling and is geometrically enclosedbythescrollbars.
*/ const VclPtr<sd::Window>& GetContentWindow() const { return mpContentWindow;}
model::SlideSorterModel& GetModel() const;
view::SlideSorterView& GetView() const;
// Exported for unit test
SD_DLLPUBLIC controller::SlideSorterController& GetController() const;
/** Return the view shell that was given at construction. @return Maybeempty.
*/
ViewShell& GetViewShell() const { return mrViewShell;}
/** Return the XController object of the main view.
*/
css::uno::Reference<css::frame::XController>
GetXController() const;
/** Place and size the controls and windows. You may want to call this methodwhensomethinghaschangedthatforinstanceaffectsthe visibilitystateofthescrollbars.
*/ void ArrangeGUIElements ( const Point& rOffset, const Size& rSize);
void RelocateToWindow (vcl::Window* pWindow);
/** Set the current function at the view shell or, when it is not present,setitatthecontentwindow.Thismethodsupportstheuse offunctionsevenwhenthereisnoSlideSorterViewShell.
*/ void SetCurrentFunction (const rtl::Reference<FuPoor>& rpFunction);
/** Return a collection of properties that are used throughout the slide sorter.
*/
std::shared_ptr<controller::Properties> const & GetProperties() const;
/** Return the active theme which gives access to colors and fonts.
*/
std::shared_ptr<view::Theme> const & GetTheme() const;
private: /** This virtual method makes it possible to create a specialization of theslidesorterviewshellthatworkswithitsownimplementation ofmodel,view,andcontroller.Thedefaultimplementationsimply callstheCreateModel(),CreateView(),andCreateController() methodsinthisorder.
*/ void CreateModelViewController();
/** Create the model for the view shell. When called from the default implementationofCreateModelViewController()thenneitherviewnor controllerdoexist.Testtheirpointerswhenindoubt.
*/
model::SlideSorterModel* CreateModel();
/** Some slide sorter wide properties that are used in different classes.
*/
std::shared_ptr<controller::Properties> mpProperties;
std::shared_ptr<view::Theme> mpTheme;
void Init(); /** Create the controls for the slide sorter. This are the tab bar forswitchingtheeditmode,thescrollbar,andtheactual slidesorterviewwindow. Thismethodisusuallycalledexactlyonetimefromthe constructor.
*/ void SetupControls();
/** This method is usually called exactly one time from the constructor.
*/ void SetupListeners();
/** Release the listeners that have been installed in SetupListeners().
*/ void ReleaseListeners();
};
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.