30#include <com/sun/star/container/XIndexAccess.hpp>
31#include <com/sun/star/drawing/XDrawPage.hpp>
75 static void impChildInserted(
SdrObject const & rChild);
81 void impClearSdrObjList(
bool bBroadcast);
92 virtual SdrPage* getSdrPageFromSdrObjList()
const;
93 virtual SdrObject* getSdrObjectFromSdrObjList()
const;
100 void ClearSdrObjList();
103 void RecalcObjOrdNums();
105 virtual void NbcInsertObject(
SdrObject* pObj,
size_t nPos=SAL_MAX_SIZE);
106 virtual void InsertObject(
SdrObject* pObj,
size_t nPos=SAL_MAX_SIZE);
107 void sort( std::vector<sal_Int32>& sortOrder );
109 void InsertObjectThenMakeNameUnique(
SdrObject* pObj);
122 virtual SdrObject* SetObjectOrdNum(
size_t nOldObjNum,
size_t nNewObjNum);
125 void SetExistingObjectOrdNum(
SdrObject* pExistingObj,
size_t nNewObjNum);
127 void SetSdrObjListRectsDirty();
133 void NbcReformatAllTextObjects();
134 void ReformatAllTextObjects();
137 void ReformatAllEdgeObjects();
140 void BurnInStyleSheetAttributes();
142 size_t GetObjCount()
const;
156 void FlattenGroups();
167 void UnGroupObj(
size_t nObjNum );
176 bool HasObjectNavigationOrder()
const;
182 void SetObjectNavigationPosition (
184 const sal_uInt32 nNewNavigationPosition);
196 SdrObject* GetObjectForNavigationPosition (
const sal_uInt32 nNavigationPosition)
const;
200 void ClearObjectNavigationOrder();
212 bool RecalcNavigationPositions();
223 void SetNavigationOrder (
const css::uno::Reference<
224 css::container::XIndexAccess>& rxOrder);
231 std::deque<rtl::Reference<SdrObject>>
maList;
252 void InsertObjectIntoContainer (
254 const sal_uInt32 nInsertPosition);
265 void ReplaceObjectInContainer (
267 const sal_uInt32 nObjectPosition);
276 void RemoveObjectFromContainer (
277 const sal_uInt32 nObjectPosition);
279 void ImplReformatAllEdgeObjects(
const SdrObjList& );
283#define SDRPAGE_NOTFOUND 0xFFFF
298 std::vector<SdrPageGridFrame*>
aList;
308 sal_uInt16
GetCount()
const {
return sal_uInt16(aList.size()); }
325 void ImpRemoveStyleSheet();
339 virtual bool isUsedByModel()
const override;
345 void ClearItem(
const sal_uInt16 nWhich = 0);
351 void SetTheme(std::shared_ptr<model::Theme>
const& pTheme);
352 std::shared_ptr<model::Theme>
const& GetTheme()
const;
406 std::unique_ptr<sdr::contact::ViewContact> CreateObjectSpecificViewContact();
412 void ActionChanged();
425 bool mbBackgroundFullSize =
false;
449 void SetUnoPage(css::uno::Reference<css::drawing::XDrawPage>
const&);
450 virtual css::uno::Reference< css::uno::XInterface > createUnoPage();
465 void SetInserted(
bool bNew =
true);
470 virtual SdrPage* getSdrPageFromSdrObjList()
const override;
473 void SetPageNum(sal_uInt16 nNew);
474 sal_uInt16 GetPageNum()
const;
481 virtual void SetSize(
const Size& aSiz);
482 Size GetSize()
const;
487 virtual void SetBorder(sal_Int32 nLft, sal_Int32 nUpp, sal_Int32 nRgt, sal_Int32 Lwr);
488 virtual void SetLeftBorder(sal_Int32 nBorder);
489 virtual void SetUpperBorder(sal_Int32 nBorder);
490 virtual void SetRightBorder(sal_Int32 nBorder);
491 virtual void SetLowerBorder(sal_Int32 nBorder);
492 sal_Int32 GetLeftBorder()
const;
493 sal_Int32 GetUpperBorder()
const;
494 sal_Int32 GetRightBorder()
const;
495 sal_Int32 GetLowerBorder()
const;
496 void SetBackgroundFullSize(
bool bIn);
497 bool IsBackgroundFullSize()
const;
501 void TRG_SetMasterPage(
SdrPage& rNew);
502 void TRG_ClearMasterPage();
503 SdrPage& TRG_GetMasterPage()
const;
505 void TRG_SetMasterPageVisibleLayers(
const SdrLayerIDSet& rNew);
508 void MakePageObjectsNamesUnique();
511 void TRG_ImpMasterPageRemoved(
const SdrPage& rRemovedPage);
518 virtual OUString GetLayoutName()
const;
525 css::uno::Reference< css::uno::XInterface >
const & getUnoPage();
531 Color GetPageBackgroundColor()
const;
535 Color GetPageBackgroundColor(
SdrPageView const * pView,
bool bScreenDisplay =
true)
const;
542 virtual bool checkVisibility(
tools::Rectangle maSdrObjListOutRect
void InsertObjectThenMakeNameUnique(SdrObject *pObj, std::unordered_set< rtl::OUString > &rNameSet, size_t nPos=SAL_MAX_SIZE)
std::deque< rtl::Reference< SdrObject > > maList
std::optional< std::vector< unotools::WeakReference< SdrObject > > > mxNavigationOrder
This list, if it exists, defines the navigation order.
SdrObjList & operator=(const SdrObjList &rSrcList)=delete
bool IsObjOrdNumsDirty() const
SdrObjList(const SdrObjList &rSrcList)=delete
tools::Rectangle maSdrObjListSnapRect
bool mbIsNavigationOrderDirty
This flag is <TRUE> when the mpNavigation list has been changed but the indices of the referenced Sdr...
SdrPageGridFrame * GetObject(sal_uInt16 i) const
SdrPageGridFrame & operator[](sal_uInt16 nPos)
SdrPageGridFrameList(const SdrPageGridFrameList &rSrcList)=delete
sal_uInt16 GetCount() const
std::vector< SdrPageGridFrame * > aList
void operator=(const SdrPageGridFrameList &rSrcList)=delete
const SdrPageGridFrame & operator[](sal_uInt16 nPos) const
void Insert(const SdrPageGridFrame &rGF)
for the snap-to-grid in Writer
const tools::Rectangle & GetUserArea() const
const tools::Rectangle & GetPaperRect() const
tools::Rectangle aUserArea
SdrPageGridFrame(const tools::Rectangle &rPaper, const tools::Rectangle &rUser)
const SfxItemSet & GetItemSet() const
SfxStyleSheet * mpStyleSheet
SdrPageProperties & operator=(const SdrPageProperties &rCandidate)=delete
void sendLOKitThemeChangedCallback()
SfxStyleSheet * GetStyleSheet() const
std::shared_ptr< model::Theme > mpTheme
A SdrPage contains exactly one SdrObjList and a description of the physical page dimensions (size / m...
std::unique_ptr< SdrLayerAdmin > mpLayerAdmin
sdr::PageUserVector maPageUsers
bool mbPageBorderOnlyLeftRight
bool getPageBorderOnlyLeftRight() const
css::uno::Reference< css::uno::XInterface > mxUnoPage
std::unique_ptr< SdrPageProperties > mpSdrPageProperties
bool IsMasterPage() const
void setPageBorderOnlyLeftRight(bool bNew)
std::unique_ptr< sdr::MasterPageDescriptor > mpMasterPageDescriptor
SdrModel & mrSdrModelFromSdrPage
SdrPage & operator=(const SdrPage &)=delete
std::unique_ptr< sdr::contact::ViewContact > mpViewContact
bool mbObjectsNotPersistent
bool TRG_HasMasterPage() const
SdrModel & getSdrModelFromSdrPage() const
SdrPage(const SdrPage &)=delete
virtual css::uno::Reference< css::embed::XEmbeddedObject > GetObject() override
constexpr OUStringLiteral IsReadOnly(u"IsReadOnly")
struct _xmlTextWriter * xmlTextWriterPtr
SvGenericNameContainerMapImpl maProperties
void Clear(EHistoryType eHistory)
::std::vector< PageUser * > PageUserVector
#define SVXCORE_DLLPUBLIC