LibreOffice Module reportdesign (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
rptui::OReportPage Class Referencefinal

#include <RptPage.hxx>

Inheritance diagram for rptui::OReportPage:
[legend]
Collaboration diagram for rptui::OReportPage:
[legend]

Public Member Functions

 OReportPage (OReportModel &rModel, const css::uno::Reference< css::report::XSection > &_xSection)
 
virtual SdrPageCloneSdrPage (SdrModel &rTargetModel) const override
 
virtual void NbcInsertObject (SdrObject *pObj, size_t nPos=SAL_MAX_SIZE) override
 
virtual SdrObjectRemoveObject (size_t nObjNum) override
 
size_t getIndexOf (const css::uno::Reference< css::report::XReportComponent > &_xObject)
 returns the index inside the object list which belongs to the report component. More...
 
void removeSdrObject (const css::uno::Reference< css::report::XReportComponent > &_xObject)
 removes the SdrObject which belongs to the report component. More...
 
void setSpecialMode ()
 
bool getSpecialMode () const
 
void resetSpecialMode ()
 
void insertObject (const css::uno::Reference< css::report::XReportComponent > &_xObject)
 insert a new SdrObject which belongs to the report component. More...
 
const css::uno::Reference< css::report::XSection > & getSection () const
 
- Public Member Functions inherited from SdrPage
void AddPageUser (sdr::PageUser &rNewUser)
 
void RemovePageUser (sdr::PageUser &rOldUser)
 
SdrModelgetSdrModelFromSdrPage () const
 
const sdr::contact::ViewContactGetViewContact () const
 
sdr::contact::ViewContactGetViewContact ()
 
void ActionChanged ()
 
SdrPagePropertiesgetSdrPageProperties ()
 
const SdrPagePropertiesgetSdrPageProperties () const
 
const SdrPagePropertiesgetCorrectSdrPageProperties () const
 
 SdrPage (SdrModel &rModel, bool bMasterPage=false)
 
virtual ~SdrPage () override
 
bool IsMasterPage () const
 
void SetInserted (bool bNew=true)
 
bool IsInserted () const
 
void SetChanged ()
 
virtual SdrPagegetSdrPageFromSdrObjList () const override
 
void SetPageNum (sal_uInt16 nNew)
 
sal_uInt16 GetPageNum () const
 
void setPageBorderOnlyLeftRight (bool bNew)
 
bool getPageBorderOnlyLeftRight () const
 
virtual void SetSize (const Size &aSiz)
 
Size GetSize () const
 
virtual void SetOrientation (Orientation eOri)
 
virtual Orientation GetOrientation () const
 
sal_Int32 GetWidth () const
 
sal_Int32 GetHeight () const
 
virtual void SetBorder (sal_Int32 nLft, sal_Int32 nUpp, sal_Int32 nRgt, sal_Int32 Lwr)
 
virtual void SetLeftBorder (sal_Int32 nBorder)
 
virtual void SetUpperBorder (sal_Int32 nBorder)
 
virtual void SetRightBorder (sal_Int32 nBorder)
 
virtual void SetLowerBorder (sal_Int32 nBorder)
 
sal_Int32 GetLeftBorder () const
 
sal_Int32 GetUpperBorder () const
 
sal_Int32 GetRightBorder () const
 
sal_Int32 GetLowerBorder () const
 
bool TRG_HasMasterPage () const
 
void TRG_SetMasterPage (SdrPage &rNew)
 
void TRG_ClearMasterPage ()
 
SdrPageTRG_GetMasterPage () const
 
const SdrLayerIDSetTRG_GetMasterPageVisibleLayers () const
 
void TRG_SetMasterPageVisibleLayers (const SdrLayerIDSet &rNew)
 
sdr::contact::ViewContactTRG_GetMasterPageDescriptorViewContact () const
 
void MakePageObjectsNamesUnique ()
 
const SdrLayerAdminGetLayerAdmin () const
 
SdrLayerAdminGetLayerAdmin ()
 
virtual OUString GetLayoutName () const
 
virtual const SdrPageGridFrameListGetGridFrameList (const SdrPageView *pPV, const tools::Rectangle *pRect) const
 
css::uno::Reference< css::uno::XInterface > const & getUnoPage ()
 
virtual SfxStyleSheetGetTextStyleSheetForObject (SdrObject *pObj) const
 
Color GetPageBackgroundColor () const
 
Color GetPageBackgroundColor (SdrPageView const *pView, bool bScreenDisplay=true) const
 
virtual bool checkVisibility (const sdr::contact::ViewObjectContact &rOriginal, const sdr::contact::DisplayInfo &rDisplayInfo, bool bEdit)
 
- Public Member Functions inherited from SdrObjList
virtual SdrObjectgetSdrObjectFromSdrObjList () const
 
void CopyObjects (const SdrObjList &rSrcList)
 
void ClearSdrObjList ()
 
void RecalcObjOrdNums ()
 
bool IsObjOrdNumsDirty () const
 
virtual void InsertObject (SdrObject *pObj, size_t nPos=SAL_MAX_SIZE)
 
void sort (std::vector< sal_Int32 > &sortOrder)
 
void InsertObjectThenMakeNameUnique (SdrObject *pObj)
 
void InsertObjectThenMakeNameUnique (SdrObject *pObj, std::unordered_set< rtl::OUString > &rNameSet, size_t nPos=SAL_MAX_SIZE)
 
virtual SdrObjectNbcRemoveObject (size_t nObjNum)
 
virtual SdrObjectReplaceObject (SdrObject *pNewObj, size_t nObjNum)
 
virtual SdrObjectSetObjectOrdNum (size_t nOldObjNum, size_t nNewObjNum)
 
void SetSdrObjListRectsDirty ()
 
const tools::RectangleGetAllObjSnapRect () const
 
const tools::RectangleGetAllObjBoundRect () const
 
void NbcReformatAllTextObjects ()
 
void ReformatAllTextObjects ()
 
void ReformatAllEdgeObjects ()
 
void BurnInStyleSheetAttributes ()
 
size_t GetObjCount () const
 
SdrObjectGetObj (size_t nNum) const
 
virtual bool IsReadOnly () const
 
void FlattenGroups ()
 
void UnGroupObj (size_t nObjNum)
 
bool HasObjectNavigationOrder () const
 
void SetObjectNavigationPosition (SdrObject &rObject, const sal_uInt32 nNewNavigationPosition)
 
SdrObjectGetObjectForNavigationPosition (const sal_uInt32 nNavigationPosition) const
 
void ClearObjectNavigationOrder ()
 
bool RecalcNavigationPositions ()
 
void SetNavigationOrder (const css::uno::Reference< css::container::XIndexAccess > &rxOrder)
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 

Private Member Functions

OReportPageoperator= (const OReportPage &)=delete
 
 OReportPage (const OReportPage &)=delete
 
void removeTempObject (SdrObject const *_pToRemoveObj)
 
virtual ~OReportPage () override
 
virtual css::uno::Reference< css::uno::XInterface > createUnoPage () override
 

Private Attributes

OReportModelrModel
 
css::uno::Reference< css::report::XSection > m_xSection
 
bool m_bSpecialInsertMode
 
std::vector< SdrObject * > m_aTemporaryObjectList
 

Additional Inherited Members

- Protected Member Functions inherited from SdrPage
std::unique_ptr< sdr::contact::ViewContactCreateObjectSpecificViewContact ()
 
void SetUnoPage (css::uno::Reference< css::drawing::XDrawPage > const &)
 
void lateInit (const SdrPage &rSrcPage)
 
void TRG_ImpMasterPageRemoved (const SdrPage &rRemovedPage)
 
- Protected Member Functions inherited from SdrObjList
void RecalcRects ()
 
 SdrObjList ()
 
virtual ~SdrObjList ()
 
- Protected Attributes inherited from SdrPage
std::unique_ptr< sdr::MasterPageDescriptormpMasterPageDescriptor
 
sal_uInt16 nPageNum
 
bool mbMaster
 
bool mbInserted
 
bool mbObjectsNotPersistent
 
bool mbPageBorderOnlyLeftRight
 

Detailed Description

Definition at line 35 of file RptPage.hxx.

Constructor & Destructor Documentation

rptui::OReportPage::OReportPage ( const OReportPage )
privatedelete

Referenced by CloneSdrPage().

rptui::OReportPage::~OReportPage ( )
overrideprivatevirtual

Definition at line 40 of file RptPage.cxx.

rptui::OReportPage::OReportPage ( OReportModel rModel,
const css::uno::Reference< css::report::XSection > &  _xSection 
)

Member Function Documentation

SdrPage * rptui::OReportPage::CloneSdrPage ( SdrModel rTargetModel) const
overridevirtual

Reimplemented from SdrPage.

Definition at line 44 of file RptPage.cxx.

References m_xSection, and OReportPage().

uno::Reference< uno::XInterface > rptui::OReportPage::createUnoPage ( )
overrideprivatevirtual

Reimplemented from SdrPage.

Definition at line 124 of file RptPage.cxx.

References m_xSection.

size_t rptui::OReportPage::getIndexOf ( const css::uno::Reference< css::report::XReportComponent > &  _xObject)

returns the index inside the object list which belongs to the report component.

Parameters
_xObjectthe report component

Definition at line 56 of file RptPage.cxx.

References SdrObjList::GetObj(), SdrObjList::GetObjCount(), rptui::OObjectBase::getReportComponent(), i, and nCount.

Referenced by rptui::FormattedFieldBeautifier::getVclWindowPeer(), rptui::FixedTextColor::getXControl(), insertObject(), and removeSdrObject().

const css::uno::Reference< css::report::XSection >& rptui::OReportPage::getSection ( ) const
inline
bool rptui::OReportPage::getSpecialMode ( ) const
inline

Definition at line 73 of file RptPage.hxx.

Referenced by NbcInsertObject(), and RemoveObject().

void rptui::OReportPage::insertObject ( const css::uno::Reference< css::report::XReportComponent > &  _xObject)

insert a new SdrObject which belongs to the report component.

Parameters
_xObjectthe report component

Definition at line 107 of file RptPage.cxx.

References getIndexOf(), SdrObjList::GetObjCount(), SvxShape::GetSdrObject(), nPos, and pObject.

Referenced by rptui::OXUndoEnvironment::elementInserted().

void rptui::OReportPage::NbcInsertObject ( SdrObject pObj,
size_t  nPos = SAL_MAX_SIZE 
)
overridevirtual
OReportPage& rptui::OReportPage::operator= ( const OReportPage )
privatedelete
SdrObject * rptui::OReportPage::RemoveObject ( size_t  nObjNum)
overridevirtual
void rptui::OReportPage::removeSdrObject ( const css::uno::Reference< css::report::XReportComponent > &  _xObject)

removes the SdrObject which belongs to the report component.

Parameters
_xObjectthe report component

Definition at line 72 of file RptPage.cxx.

References rptui::OObjectBase::EndListening(), getIndexOf(), SdrObjList::GetObj(), SdrObjList::GetObjCount(), nPos, and RemoveObject().

Referenced by rptui::OXUndoEnvironment::elementRemoved().

void rptui::OReportPage::removeTempObject ( SdrObject const *  _pToRemoveObj)
private

Definition at line 129 of file RptPage.cxx.

References SdrObjList::GetObj(), SdrObjList::GetObjCount(), i, RemoveObject(), and void().

Referenced by resetSpecialMode().

void rptui::OReportPage::resetSpecialMode ( )
void rptui::OReportPage::setSpecialMode ( )
inline

Member Data Documentation

std::vector<SdrObject*> rptui::OReportPage::m_aTemporaryObjectList
private

Definition at line 43 of file RptPage.hxx.

Referenced by NbcInsertObject(), and resetSpecialMode().

bool rptui::OReportPage::m_bSpecialInsertMode
private

Definition at line 42 of file RptPage.hxx.

Referenced by resetSpecialMode().

css::uno::Reference< css::report::XSection > rptui::OReportPage::m_xSection
private

Definition at line 41 of file RptPage.hxx.

Referenced by CloneSdrPage(), createUnoPage(), NbcInsertObject(), and RemoveObject().

OReportModel& rptui::OReportPage::rModel
private

Definition at line 40 of file RptPage.hxx.

Referenced by resetSpecialMode().


The documentation for this class was generated from the following files: