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

#include <RptModel.hxx>

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

Public Member Functions

 OReportModel (::reportdesign::OReportDefinition *_pReportDefinition)
 
virtual ~OReportModel () override
 
virtual void SetChanged (bool bFlg=true) override
 
virtual SdrPageAllocPage (bool bMasterPage) override
 
virtual SdrPageRemovePage (sal_uInt16 nPgNum) override
 
virtual SvxNumType GetPageNumType () const override
 
OXUndoEnvironmentGetUndoEnv ()
 
void SetModified (bool _bModified)
 
dbaui::DBSubComponentControllergetController () const
 
void attachController (dbaui::DBSubComponentController &_rController)
 
void detachController ()
 
OReportPagecreateNewPage (const css::uno::Reference< css::report::XSection > &_xSection)
 
OReportPagegetPage (const css::uno::Reference< css::report::XSection > &_xSection)
 returns the page which belongs to a section More...
 
css::uno::Reference< css::report::XReportDefinition > getReportDefinition () const
 returns the XReportDefinition which the OReportModel belongs to More...
 
css::uno::Reference< css::uno::XInterface > createShape (const OUString &aServiceSpecifier, css::uno::Reference< css::drawing::XShape > &_rShape, sal_Int32 nOrientation=-1)
 
- Public Member Functions inherited from SdrModel
std::vector< SdrOutliner * > GetActiveOutliners () const
 
sal_uInt16 getHandoutPageCount () const
 
void setHandoutPageCount (sal_uInt16 nHandoutPageCount)
 
virtual void adaptSizeAndBorderForAllPages (const Size &rNewSize, long nLeft=0, long nRight=0, long nUpper=0, long nLower=0)
 
virtual SVX_DLLPRIVATE bool IsCreatingDataObj () const
 
bool IsTransportContainer () const
 
bool IsPasteResize () const
 
void SetPasteResize (bool bOn)
 
 SdrModel (SfxItemPool *pPool=nullptr,::comphelper::IEmbeddedHelper *pPers=nullptr, bool bDisablePropertyFiles=false)
 
virtual ~SdrModel () override
 
void ClearModel (bool bCalledFromDestructor)
 
virtual css::uno::Reference< css::embed::XStorage > GetDocumentStorage () const
 
css::uno::Reference< css::io::XInputStream > GetDocumentStream (OUString const &rURL,::comphelper::LifecycleProxy const &rProxy) const
 
void BurnInStyleSheetAttributes ()
 
virtual SdrModelAllocModel () const
 
const SdrLayerAdminGetLayerAdmin () const
 
SdrLayerAdminGetLayerAdmin ()
 
const SfxItemPoolGetItemPool () const
 
SfxItemPoolGetItemPool ()
 
SdrOutlinerGetDrawOutliner (const SdrTextObj *pObj=nullptr) const
 
SdrOutlinerGetHitTestOutliner () const
 
const SdrTextObjGetFormattingTextObj () const
 
void SetTextDefaults () const
 
SdrOutlinerGetChainingOutliner (const SdrTextObj *pObj) const
 
TextChainGetTextChain () const
 
void SetRefDevice (OutputDevice *pDev)
 
OutputDeviceGetRefDevice () const
 
void RefDeviceChanged ()
 
void SetDefaultFontHeight (sal_Int32 nVal)
 
void SetDefaultTabulator (sal_uInt16 nVal)
 
sal_uInt16 GetDefaultTabulator () const
 
SfxStyleSheetGetDefaultStyleSheet () const
 
void SetDefaultStyleSheet (SfxStyleSheet *pDefSS)
 
SfxStyleSheetGetDefaultStyleSheetForSdrGrafObjAndSdrOle2Obj () const
 
void SetDefaultStyleSheetForSdrGrafObjAndSdrOle2Obj (SfxStyleSheet *pDefSS)
 
sfx2::LinkManagerGetLinkManager ()
 
void SetLinkManager (sfx2::LinkManager *pLinkMgr)
 
::comphelper::IEmbeddedHelperGetPersist () const
 
void SetPersist (::comphelper::IEmbeddedHelper *p)
 
MapUnit GetScaleUnit () const
 
void SetScaleUnit (MapUnit eMap)
 
const FractionGetScaleFraction () const
 
void SetScaleFraction (const Fraction &rFrac)
 
void SetScaleUnit (MapUnit eMap, const Fraction &rFrac)
 
const SizeGetMaxObjSize () const
 
void SetMaxObjSize (const Size &rSiz)
 
void SetUIUnit (FieldUnit eUnit)
 
FieldUnit GetUIUnit () const
 
void SetUIScale (const Fraction &rScale)
 
const FractionGetUIScale () const
 
void SetUIUnit (FieldUnit eUnit, const Fraction &rScale)
 
OUString GetMetricString (long nVal, bool bNoUnitChars=false, sal_Int32 nNumDigits=-1) const
 
bool IsPagNumsDirty () const
 
bool IsMPgNumsDirty () const
 
void RecalcPageNums (bool bMaster)
 
virtual void InsertPage (SdrPage *pPage, sal_uInt16 nPos=0xFFFF)
 
virtual void DeletePage (sal_uInt16 nPgNum)
 
virtual void MovePage (sal_uInt16 nPgNum, sal_uInt16 nNewPos)
 
const SdrPageGetPage (sal_uInt16 nPgNum) const
 
SdrPageGetPage (sal_uInt16 nPgNum)
 
sal_uInt16 GetPageCount () const
 
virtual void PageListChanged ()
 
virtual void InsertMasterPage (SdrPage *pPage, sal_uInt16 nPos=0xFFFF)
 
void DeleteMasterPage (sal_uInt16 nPgNum)
 
virtual SdrPageRemoveMasterPage (sal_uInt16 nPgNum)
 
void MoveMasterPage (sal_uInt16 nPgNum, sal_uInt16 nNewPos)
 
const SdrPageGetMasterPage (sal_uInt16 nPgNum) const
 
SdrPageGetMasterPage (sal_uInt16 nPgNum)
 
sal_uInt16 GetMasterPageCount () const
 
virtual void MasterPageListChanged ()
 
bool IsChanged () const
 
bool IsSwapGraphics () const
 
void SetSwapGraphics ()
 
bool IsPickThroughTransparentTextFrames () const
 
void SetPickThroughTransparentTextFrames (bool bOn)
 
virtual bool IsReadOnly () const
 
void SetReadOnly (bool bYes)
 
virtual void Merge (SdrModel &rSourceModel, sal_uInt16 nFirstPageNum, sal_uInt16 nLastPageNum, sal_uInt16 nDestPos, bool bMergeMasterPages, bool bAllMasterPages, bool bUndo=true, bool bTreadSourceAsConst=false)
 
void CopyPages (sal_uInt16 nFirstPageNum, sal_uInt16 nLastPageNum, sal_uInt16 nDestPos, bool bUndo, bool bMoveNoCopy)
 
void BegUndo ()
 
void BegUndo (const OUString &rComment)
 
void BegUndo (const OUString &rComment, const OUString &rObjDescr, SdrRepeatFunc eFunc)
 
void EndUndo ()
 
void AddUndo (std::unique_ptr< SdrUndoAction > pUndo)
 
sal_uInt16 GetUndoBracketLevel () const
 
void SetUndoComment (const OUString &rComment)
 
void SetUndoComment (const OUString &rComment, const OUString &rObjDescr)
 
void SetMaxUndoActionCount (sal_uInt32 nCount)
 
void ClearUndoBuffer ()
 
bool HasUndoActions () const
 
bool HasRedoActions () const
 
void Undo ()
 
void Redo ()
 
void Repeat (SfxRepeatTarget &)
 
void SetNotifyUndoActionHdl (const std::function< void(std::unique_ptr< SdrUndoAction >)> &rLink)
 
void SetSdrUndoManager (SfxUndoManager *pUndoManager)
 
SfxUndoManagerGetSdrUndoManager () const
 
void SetSdrUndoFactory (SdrUndoFactory *pUndoFactory)
 
SdrUndoFactoryGetSdrUndoFactory () const
 
const XPropertyListRefGetPropertyList (XPropertyListType t) const
 
void SetPropertyList (XPropertyListRef const &p)
 
XDashListRef GetDashList () const
 
XHatchListRef GetHatchList () const
 
XColorListRef GetColorList () const
 
XBitmapListRef GetBitmapList () const
 
XPatternListRef GetPatternList () const
 
XLineEndListRef GetLineEndList () const
 
XGradientListRef GetGradientList () const
 
SfxStyleSheetBasePoolGetStyleSheetPool () const
 
void SetStyleSheetPool (SfxStyleSheetBasePool *pPool)
 
void SetStarDrawPreviewMode (bool bPreview)
 
bool IsStarDrawPreviewMode () const
 
bool GetDisableTextEditUsesCommonUndoManager () const
 
void SetDisableTextEditUsesCommonUndoManager (bool bNew)
 
css::uno::Reference< css::uno::XInterface > const & getUnoModel ()
 
void setUnoModel (const css::uno::Reference< css::uno::XInterface > &xModel)
 
bool isLocked () const
 
void setLock (bool bLock)
 
void SetForbiddenCharsTable (const std::shared_ptr< SvxForbiddenCharactersTable > &xForbiddenChars)
 
const std::shared_ptr< SvxForbiddenCharactersTable > & GetForbiddenCharsTable () const
 
void SetCharCompressType (CharCompressType nType)
 
CharCompressType GetCharCompressType () const
 
void SetKernAsianPunctuation (bool bEnabled)
 
bool IsKernAsianPunctuation () const
 
void SetAddExtLeading (bool bEnabled)
 
bool IsAddExtLeading () const
 
void SetAnchoredTextOverflowLegacy (bool bEnabled)
 
bool IsAnchoredTextOverflowLegacy () const
 
void ReformatAllTextObjects ()
 
std::unique_ptr< SdrOutlinercreateOutliner (OutlinerMode nOutlinerMode)
 
void disposeOutliner (std::unique_ptr< SdrOutliner > pOutliner)
 
bool IsWriter () const
 
void ReadUserDataSequenceValue (const css::beans::PropertyValue *pValue)
 
void WriteUserDataSequence (css::uno::Sequence< css::beans::PropertyValue > &rValues)
 
bool IsInDestruction () const
 
void EnableUndo (bool bEnable)
 
bool IsUndoEnabled () const
 
bool DoesMakePageObjectsNamesUnique () const
 
void DoMakePageObjectsNamesUnique (bool bDo)
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 

Private Member Functions

virtual css::uno::Reference< css::uno::XInterface > createUnoModel () override
 
 OReportModel (const OReportModel &)=delete
 
void operator= (const OReportModel &rSrcModel)=delete
 

Private Attributes

rtl::Reference< OXUndoEnvironmentm_xUndoEnv
 
::dbaui::DBSubComponentControllerm_pController
 
::reportdesign::OReportDefinitionm_pReportDefinition
 

Friends

class OReportPage
 

Additional Inherited Members

- Static Public Member Functions inherited from SdrModel
static void SetTextDefaults (SfxItemPool *pItemPool, sal_Int32 nDefTextHgt)
 
static OUString GetUnitString (FieldUnit eUnit)
 
static OUString GetAngleString (long nAngle)
 
static OUString GetPercentString (const Fraction &rVal)
 
static void MigrateItemSet (const SfxItemSet *pSourceSet, SfxItemSet *pDestSet, SdrModel *pNewModel)
 
static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId ()
 
- Public Attributes inherited from SdrModel
std::shared_ptr< SvxForbiddenCharactersTablempForbiddenCharactersTable
 
std::unique_ptr< SdrOutlinerCachempOutlinerCache
 
std::unique_ptr< SdrModelImplmpImpl
 
CharCompressType mnCharCompressType
 
sal_uInt16 mnHandoutPageCount
 
bool mbModelLocked
 
bool mbKernAsianPunctuation
 
bool mbAddExtLeading
 
bool mbInDestruction
 
o3tl::enumarray< XPropertyListType, XPropertyListRefmaProperties
 
- Protected Attributes inherited from SdrModel
std::vector< SdrPage * > maMaPag
 
std::vector< SdrPage * > maPages
 
std::function< void(std::unique_ptr< SdrUndoAction >)> m_aUndoLink
 
Size m_aMaxObjSize
 
Fraction m_aObjUnit
 
MapUnit m_eObjUnit
 
FieldUnit m_eUIUnit
 
Fraction m_aUIScale
 
OUString m_aUIUnitStr
 
Fraction m_aUIUnitFact
 
int m_nUIUnitDecimalMark
 
std::unique_ptr< SdrLayerAdminm_pLayerAdmin
 
SfxItemPoolm_pItemPool
 
comphelper::IEmbeddedHelperm_pEmbeddedHelper
 
std::unique_ptr< SdrOutlinerm_pDrawOutliner
 
std::unique_ptr< SdrOutlinerm_pHitTestOutliner
 
std::unique_ptr< SdrOutlinerm_pChainingOutliner
 
sal_Int32 mnDefTextHgt
 
VclPtr< OutputDevicem_pRefOutDev
 
rtl::Reference< SfxStyleSheetBasePoolmxStyleSheetPool
 
SfxStyleSheetm_pDefaultStyleSheet
 
SfxStyleSheetmpDefaultStyleSheetForSdrGrafObjAndSdrOle2Obj
 
sfx2::LinkManagerm_pLinkManager
 
std::unique_ptr< std::deque< std::unique_ptr< SfxUndoAction > > > m_pUndoStack
 
std::unique_ptr< std::deque< std::unique_ptr< SfxUndoAction > > > m_pRedoStack
 
std::unique_ptr< SdrUndoGroupm_pCurrentUndoGroup
 
sal_uInt16 m_nUndoLevel
 
bool m_bMyPool
 
bool mbUndoEnabled
 
bool mbChanged
 
bool m_bPagNumsDirty
 
bool m_bMPgNumsDirty
 
bool m_bTransportContainer
 
bool m_bReadOnly
 
bool m_bTransparentTextFrames
 
bool m_bSwapGraphics
 
bool m_bPasteResize
 
bool m_bStarDrawPreviewMode
 
bool mbDisableTextEditUsesCommonUndoManager
 
sal_uInt16 m_nDefaultTabulator
 
sal_uInt32 m_nMaxUndoCount
 
std::unique_ptr< TextChainm_pTextChain
 

Detailed Description

Definition at line 41 of file RptModel.hxx.

Constructor & Destructor Documentation

rptui::OReportModel::OReportModel ( const OReportModel )
privatedelete
rptui::OReportModel::OReportModel ( ::reportdesign::OReportDefinition _pReportDefinition)

Definition at line 43 of file RptModel.cxx.

References m_xUndoEnv, and SdrModel::SetSdrUndoFactory().

rptui::OReportModel::~OReportModel ( )
overridevirtual

Definition at line 55 of file RptModel.cxx.

References detachController().

Member Function Documentation

SdrPage * rptui::OReportModel::AllocPage ( bool  bMasterPage)
overridevirtual

Reimplemented from SdrModel.

Definition at line 69 of file RptModel.cxx.

void rptui::OReportModel::attachController ( dbaui::DBSubComponentController _rController)
inline

Definition at line 70 of file RptModel.hxx.

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

Definition at line 95 of file RptModel.cxx.

References SdrModel::InsertPage(), m_xUndoEnv, and OReportPage.

uno::Reference< uno::XInterface > rptui::OReportModel::createShape ( const OUString &  aServiceSpecifier,
css::uno::Reference< css::drawing::XShape > &  _rShape,
sal_Int32  nOrientation = -1 
)
uno::Reference< uno::XInterface > rptui::OReportModel::createUnoModel ( )
overrideprivatevirtual

Reimplemented from SdrModel.

Definition at line 133 of file RptModel.cxx.

References getReportDefinition().

void rptui::OReportModel::detachController ( )

Definition at line 60 of file RptModel.cxx.

References SdrModel::ClearUndoBuffer(), m_pController, m_pReportDefinition, and m_xUndoEnv.

Referenced by ~OReportModel().

dbaui::DBSubComponentController* rptui::OReportModel::getController ( ) const
inline
OReportPage * rptui::OReportModel::getPage ( const css::uno::Reference< css::report::XSection > &  _xSection)

returns the page which belongs to a section

Parameters
_xSection
Returns
The page or <NULL> when no page could be found.

Definition at line 104 of file RptModel.cxx.

References SdrModel::GetPage(), SdrModel::GetPageCount(), rptui::OReportPage::getSection(), i, and nCount.

SvxNumType rptui::OReportModel::GetPageNumType ( ) const
overridevirtual
Returns
the numbering type that is used to format page fields in drawing shapes

Reimplemented from SdrModel.

Definition at line 117 of file RptModel.cxx.

References getReportDefinition(), PROPERTY_NUMBERINGTYPE, and SVX_NUM_ARABIC.

uno::Reference< report::XReportDefinition > rptui::OReportModel::getReportDefinition ( ) const

returns the XReportDefinition which the OReportModel belongs to

Definition at line 126 of file RptModel.cxx.

References m_pReportDefinition.

Referenced by createUnoModel(), GetPageNumType(), rptui::FormatNormalizer::impl_lateInit(), and rptui::OOle2Obj::operator=().

OXUndoEnvironment& rptui::OReportModel::GetUndoEnv ( )
inline
void rptui::OReportModel::operator= ( const OReportModel rSrcModel)
privatedelete
SdrPage * rptui::OReportModel::RemovePage ( sal_uInt16  nPgNum)
overridevirtual

Reimplemented from SdrModel.

Definition at line 89 of file RptModel.cxx.

References SdrModel::RemovePage().

void rptui::OReportModel::SetChanged ( bool  bFlg = true)
overridevirtual

Reimplemented from SdrModel.

Definition at line 76 of file RptModel.cxx.

References SdrModel::SetChanged(), and SetModified().

Referenced by rptui::OReportPage::resetSpecialMode().

void rptui::OReportModel::SetModified ( bool  _bModified)

Definition at line 83 of file RptModel.cxx.

References m_pController, and dbaui::DBSubComponentController::setModified().

Referenced by SetChanged().

Friends And Related Function Documentation

friend class OReportPage
friend

Definition at line 43 of file RptModel.hxx.

Referenced by createNewPage().

Member Data Documentation

::dbaui::DBSubComponentController* rptui::OReportModel::m_pController
private

Definition at line 47 of file RptModel.hxx.

Referenced by detachController(), and SetModified().

::reportdesign::OReportDefinition* rptui::OReportModel::m_pReportDefinition
private

Definition at line 48 of file RptModel.hxx.

Referenced by createShape(), detachController(), and getReportDefinition().

rtl::Reference<OXUndoEnvironment> rptui::OReportModel::m_xUndoEnv
private

Definition at line 46 of file RptModel.hxx.

Referenced by createNewPage(), detachController(), and OReportModel().


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