20#ifndef INCLUDED_SD_INC_SDPAGE_HXX
21#define INCLUDED_SD_INC_SDPAGE_HXX
23#include <com/sun/star/drawing/XDrawPage.hpp>
24#include <com/sun/star/presentation/FadeEffect.hpp>
25#include <com/sun/star/office/XAnnotation.hpp>
82 typedef std::vector< css::uno::Reference< css::office::XAnnotation > >
AnnotationVector;
134 virtual css::uno::Reference< css::uno::XInterface > createUnoPage()
override;
158 virtual void SetSize(
const Size& aSize)
override;
159 virtual void SetBorder(sal_Int32 nLft, sal_Int32 nUpp, sal_Int32 nRgt, sal_Int32 Lwr)
override;
160 virtual void SetLeftBorder(sal_Int32 nBorder)
override;
161 virtual void SetRightBorder(sal_Int32 nBorder)
override;
162 virtual void SetUpperBorder(sal_Int32 nBorder)
override;
163 virtual void SetLowerBorder(sal_Int32 nBorder)
override;
168 void EnsureMasterPageDefaultBackground();
169 SdrObject* CreatePresObj(
PresObjKind eObjKind,
bool bVertical, const ::tools::Rectangle& rRect);
174 OUString GetPresObjText(
PresObjKind eObjKind)
const;
177 sal_Int64 GetHashCode()
const;
178 bool RestoreDefaultText(
SdrObject* pObj );
184 void RemovePresObj(
const SdrObject* pObj);
189 void SetAutoLayout(
AutoLayout eLayout,
bool bInit=
false,
bool bCreate=
false);
191 void CreateTitleAndLayout(
bool bInit=
false,
bool bCreate=
false);
194 virtual void NbcInsertObject(
SdrObject* pObj,
size_t nPos=SAL_MAX_SIZE)
override;
210 void SetFadeEffect(css::presentation::FadeEffect eNewEffect);
211 css::presentation::FadeEffect GetFadeEffect()
const;
216 void SetTime(
double fNewTime) { mfTime = fNewTime; }
219 void SetSound(
bool bNewSoundOn) { mbSoundOn = bNewSoundOn; }
222 void SetExcluded(
bool bNewExcluded) { mbExcluded = bNewExcluded; }
237 void setTransitionType( sal_Int16 nTransitionType );
240 void setTransitionSubtype( sal_Int16 nTransitionSubtype );
243 void setTransitionDirection(
bool bTransitionbDirection );
246 void setTransitionFadeColor( sal_Int32 nTransitionFadeColor );
249 void setTransitionDuration(
double fTransitionDuration );
252 const ::tools::Rectangle& rOldBoundRect)
override;
254 void SetLayoutName(
const OUString& aName);
263 void DisconnectLink();
265 void ScaleObjects(
const Size& rNewPageSize, const ::tools::Rectangle& rNewBorderRect,
268 const OUString&
GetName()
const;
271 void SetPresentationLayout(std::u16string_view rLayoutName,
272 bool bReplaceStyleSheets =
true,
273 bool bSetMasterPage =
true,
274 bool bReverseOrder =
false);
275 void EndListenOutlineText();
280 virtual Orientation GetOrientation()
const override;
284 bool setAlienAttributes(
const css::uno::Any& rAttributes );
285 void getAlienAttributes( css::uno::Any& rAttributes );
291 css::uno::Reference< css::animations::XAnimationNode >
const & getAnimationNode();
297 void setAnimationNode( css::uno::Reference< css::animations::XAnimationNode >
const & xNode );
300 std::shared_ptr< sd::MainSequence >
const & getMainSequence();
306 bool hasAnimationNode()
const;
309 static SdPage* getImplementation(
const css::uno::Reference< css::drawing::XDrawPage >& xPage );
312 void removeAnimations(
const SdrObject* pObj );
315 void notifyObjectRenamed(
const SdrObject* pObj);
319 void SetName (
const OUString& rName);
331 virtual bool checkVisibility(
334 bool bEdit )
override;
347 SdStyleSheet* getPresentationStyle( sal_uInt32 nHelpId )
const;
350 void RemoveEmptyPresentationObjects();
355 static void CalculateHandoutAreas(
SdDrawDocument& rModel,
AutoLayout eLayout,
bool bHorizontal, std::vector< ::tools::Rectangle >& rAreas );
359 void SetPrecious (
const bool bIsPrecious);
370 void createAnnotation( css::uno::Reference< css::office::XAnnotation >& xAnnotation );
371 void addAnnotation(
const css::uno::Reference< css::office::XAnnotation >& xAnnotation,
int nIndex );
372 void removeAnnotation(
const css::uno::Reference< css::office::XAnnotation >& xAnnotation );
374 bool Equals(
const SdPage&)
const;
382 void getGraphicsForPrefetch(std::vector<Graphic*>& graphics)
const;
396 void cloneAnimations(
SdPage& rTargetPage )
const;
399 void onRemoveObject(
SdrObject* pObject );
const OUString & GetName() const
double mfTime
Display time in seconds.
bool getTransitionDirection() const
AutoLayout meAutoLayout
AutoLayout.
rtl_TextEncoding meCharSet
Text encoding.
sal_Int16 getTransitionSubtype() const
bool mbScaleObjects
Objects should be scaled.
PageKind GetPageKind() const
const OUString & GetFileName() const
OUString maLayoutName
Name of the layout.
void SetTime(double fNewTime)
static sal_uInt16 mnLastPageId
const sd::AnnotationVector & getAnnotations() const
sal_Int16 getTransitionType() const
PresChange GetPresChange() const
OUString maSoundFile
Path to sound file (MS-DOS notation).
sd::AnnotationVector maAnnotations
void SetExcluded(bool bNewExcluded)
sd::ScopeLock maLockAutoLayoutArrangement
SdPageLink * mpPageLink
Page link (at left sides only)
OUString const & GetRealName() const
SdPage & operator=(const SdPage &)=delete
bool IsScaleObjects() const
std::unique_ptr< SfxItemSet > mpItems
PageKind mePageKind
page type
void SetBookmarkName(const OUString &aName)
sal_uInt16 mnPaperBin
PaperBin.
double getTransitionDuration() const
bool IsPrecious() const
The "precious" flag is used for master pages to prevent some unused master pages from being deleted a...
OUString maCreatedPageName
generated page name by GetPageName.
bool mbSelected
selection identifier
sd::ShapeList & GetPresentationShapeList()
sd::HeaderFooterSettings maHeaderFooterSettings
double mfTransitionDuration
const OUString & GetSoundFile() const
void SetPaperBin(sal_uInt16 nBin)
void SetLoopSound(bool bLoopSound)
std::shared_ptr< sd::MainSequence > mpMainSequence
a helper class to manipulate effects inside the main sequence
css::uno::Reference< css::animations::XAnimationNode > mxAnimationNode
holds the smil animation sequences for this page
bool mbTransitionDirection
bool mbExcluded
will (not) be displayed during show.
void SetFileName(const OUString &aName)
const OUString & GetBookmarkName() const
SdPage(const SdPage &)=delete
void SetPresChange(PresChange eChange)
void SetSelected(bool bSel)
OUString maBookmarkName
Bookmark name.
sal_Int32 mnTransitionFadeColor
virtual OUString GetLayoutName() const override
void SetPageKind(PageKind ePgType)
sal_Int16 mnTransitionSubtype
void SetSoundFile(const OUString &rStr)
sal_uInt16 GetPaperBin() const
void SetStopSound(bool bStopSound)
sal_uInt16 getPageId() const
sal_Int32 getTransitionFadeColor() const
PresChange mePresChange
manual / automatic / semi automatic
AutoLayout GetAutoLayout() const
sal_Int16 mnTransitionType
OUString maFileName
file name.
void SetSound(bool bNewSoundOn)
sd::ShapeList maPresentationShapeList
presentation objects
bool mbSoundOn
with / without sound.
virtual OUString GetName() const override
constexpr OUStringLiteral IsReadOnly(u"IsReadOnly")
struct _xmlTextWriter * xmlTextWriterPtr
std::vector< css::uno::Reference< css::office::XAnnotation > > AnnotationVector
void createAnnotation(uno::Reference< office::XAnnotation > &xAnnotation, SdPage *pPage)
sal_Int16 mnTransitionType
RGBColor mnTransitionFadeColor
bool operator==(const XclFontData &rLeft, const XclFontData &rRight)