Go to the documentation of this file.
12 #include <boost/shared_ptr.hpp>
13 #include <boost/weak_ptr.hpp>
35 using Ptr = boost::shared_ptr<Viewable>;
36 using WeakPtr = boost::weak_ptr<Viewable>;
74 using Ptr = boost::shared_ptr<PresentationInterface>;
75 using WeakPtr = boost::weak_ptr<PresentationInterface>;
102 virtual bool getProperty(
const std::string& name, std::string& value) = 0;
127 virtual std::set<ViewInterface::WeakPtr>
getViews() = 0;
133 std::set<ViewInterface::WeakPtr>
views;
147 using Ptr = boost::shared_ptr<Aggregate>;
virtual std::set< ViewInterface::WeakPtr > getViews()=0
virtual void open(ViewInterface::WeakPtr vi)=0
Definition: presentationinterface.hh:69
virtual void close(ViewInterface::WeakPtr vi)=0
boost::weak_ptr< Viewable > WeakPtr
Definition: presentationinterface.hh:36
std::set< ViewInterface::WeakPtr > views
Definition: presentationinterface.hh:133
virtual Scroom::Utils::Point< double > getAspectRatio() const
Definition: presentationinterface.hh:110
virtual void redraw(ViewInterface::Ptr const &vi, cairo_t *cr, Scroom::Utils::Rectangle< double > presentationArea, int zoom)=0
boost::shared_ptr< ViewInterface > Ptr
Definition: viewinterface.hh:193
virtual void addPresentation(PresentationInterface::Ptr const &presentation)=0
Definition: presentationinterface.hh:144
virtual void viewRemoved(ViewInterface::WeakPtr vi)=0
Point< T > make_point(T x, T y)
Definition: point.hh:116
virtual bool isPropertyDefined(const std::string &name)=0
void observerAdded(Viewable::Ptr const &viewable, Scroom::Bookkeeping::Token const &t) override
Definition: presentationinterface.cc:35
virtual std::string getTitle()=0
boost::shared_ptr< PresentationInterface > Ptr
Definition: presentationinterface.hh:74
boost::weak_ptr< ViewInterface > WeakPtr
Definition: viewinterface.hh:194
boost::shared_ptr< Observable< T > > Ptr
Definition: observable.hh:75
virtual bool getProperty(const std::string &name, std::string &value)=0
void viewRemoved(ViewInterface::WeakPtr vi) final
Definition: presentationinterface.hh:137
void open(ViewInterface::WeakPtr vi) override
Definition: presentationinterface.cc:11
virtual void viewAdded(ViewInterface::WeakPtr vi)=0
virtual Scroom::Utils::Rectangle< double > getRect()=0
Definition: presentationinterface.hh:113
Definition: observable.hh:24
void close(ViewInterface::WeakPtr vi) override
Definition: presentationinterface.cc:23
Definition: interface.hh:10
Definition: presentationinterface.hh:130
Definition: presentationinterface.hh:32
std::set< ViewInterface::WeakPtr > getViews() final
Definition: presentationinterface.hh:138
Definition: bookkeeping.hh:37
boost::shared_ptr< Viewable > Ptr
Definition: presentationinterface.hh:35
boost::shared_ptr< Aggregate > Ptr
Definition: presentationinterface.hh:147
void viewAdded(ViewInterface::WeakPtr vi) final
Definition: presentationinterface.hh:136