LibreOffice Module chart2 (master) 1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
chart::DrawModelWrapper Class Referencefinal

#include <DrawModelWrapper.hxx>

Inheritance diagram for chart::DrawModelWrapper:
[legend]
Collaboration diagram for chart::DrawModelWrapper:
[legend]

Public Member Functions

SAL_DLLPRIVATE DrawModelWrapper ()
 
virtual SAL_DLLPRIVATE ~DrawModelWrapper () override
 
css::uno::Reference< css::lang::XMultiServiceFactory > getShapeFactory ()
 
const rtl::Reference< SvxDrawPage > & getMainDrawPage ()
 
SAL_DLLPRIVATE void clearMainDrawPage ()
 
const rtl::Reference< SvxDrawPage > & getHiddenDrawPage ()
 
SAL_DLLPRIVATE void lockControllers ()
 
SAL_DLLPRIVATE void unlockControllers ()
 
OutputDevicegetReferenceDevice () const
 
SfxItemPoolGetItemPool ()
 
virtual SAL_DLLPRIVATE css::uno::Reference< css::uno::XInterface > createUnoModel () override
 
SAL_DLLPRIVATE css::uno::Reference< css::frame::XModel > getUnoModel ()
 
SdrModelgetSdrModel ()
 
XColorListRef GetColorList () const
 
XDashListRef GetDashList () const
 
XLineEndListRef GetLineEndList () const
 
XGradientListRef GetGradientList () const
 
XHatchListRef GetHatchList () const
 
XBitmapListRef GetBitmapList () const
 
XPatternListRef GetPatternList () const
 
SdrObjectgetNamedSdrObject (const OUString &rName)
 
void dumpAsXml (xmlTextWriterPtr pWriter) const override
 

Static Public Member Functions

static rtl::Reference< SvxShapeGroupAnyDgetChartRootShape (const rtl::Reference< SvxDrawPage > &xPage)
 
static SdrObjectgetNamedSdrObject (const OUString &rName, SdrObjList const *pObjList)
 
static bool removeShape (const rtl::Reference< SvxShape > &xShape)
 

Private Attributes

rtl::Reference< SvxDrawPagem_xMainDrawPage
 
rtl::Reference< SvxDrawPagem_xHiddenDrawPage
 
rtl::Reference< SfxItemPoolm_xChartItemPool
 
VclPtr< OutputDevicem_pRefDevice
 
- Private 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
 
std::vector< rtl::Reference< SdrPage > > maMasterPages
 
std::vector< rtl::Reference< SdrPage > > maPages
 
std::function< void(std::unique_ptr< SdrUndoAction >)> m_aUndoLink
 
Size m_aMaxObjSize
 
MapUnit m_eObjUnit
 
FieldUnit m_eUIUnit
 
Fraction m_aUIScale
 
OUString m_aUIUnitStr
 
Fraction m_aUIUnitFact
 
int m_nUIUnitDecimalMark
 
std::unique_ptr< SdrLayerAdminm_pLayerAdmin
 
rtl::Reference< 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::deque< std::unique_ptr< SfxUndoAction > > m_aUndoStack
 
std::deque< std::unique_ptr< SfxUndoAction > > m_aRedoStack
 
std::unique_ptr< SdrUndoGroupm_pCurrentUndoGroup
 
sal_uInt16 m_nUndoLevel
 
bool m_bIsWriter
 
bool m_bThemedControls
 
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
 
bool mbVOCInvalidationIsReliable
 
sal_uInt16 m_nDefaultTabulator
 
sal_uInt32 m_nMaxUndoCount
 
std::unique_ptr< TextChainm_pTextChain
 

Additional Inherited Members

- Private 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, tools::Long nLeft=0, tools::Long nRight=0, tools::Long nUpper=0, tools::Long nLower=0)
 
virtual SVX_DLLPRIVATE bool IsCreatingDataObj () const
 
bool IsTransportContainer () const
 
bool AreControlsThemed ()
 
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 rtl::Reference< SdrPageAllocPage (bool bMasterPage)
 
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 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 (tools::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 rtl::Reference< SdrPageRemovePage (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 rtl::Reference< 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
 
virtual void SetChanged (bool bFlg=true)
 
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 setTheme (std::shared_ptr< model::Theme > const &pTheme)
 
std::shared_ptr< model::Theme > const & getTheme () const
 
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 SetCompatibilityFlag (SdrCompatibilityFlag eFlag, bool bEnabled)
 
bool GetCompatibilityFlag (SdrCompatibilityFlag eFlag) 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)
 
virtual SvxNumType GetPageNumType () const
 
bool IsInDestruction () const
 
void EnableUndo (bool bEnable)
 
bool IsUndoEnabled () const
 
bool DoesMakePageObjectsNamesUnique () const
 
void DoMakePageObjectsNamesUnique (bool bDo)
 
virtual sal_Int32 getImagePreferredDPI () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 
bool IsVOCInvalidationIsReliable () const
 
void SetVOCInvalidationIsReliable (bool b)
 
virtual css::uno::Reference< css::uno::XInterface > createUnoModel ()
 
- Static Private Member Functions inherited from SdrModel
static void SetTextDefaults (SfxItemPool *pItemPool, sal_Int32 nDefTextHgt)
 
static OUString GetUnitString (FieldUnit eUnit)
 
static OUString GetAngleString (Degree100 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 ()
 

Detailed Description

Definition at line 38 of file DrawModelWrapper.hxx.

Constructor & Destructor Documentation

◆ DrawModelWrapper()

chart::DrawModelWrapper::DrawModelWrapper ( )

◆ ~DrawModelWrapper()

chart::DrawModelWrapper::~DrawModelWrapper ( )
overridevirtual

Member Function Documentation

◆ clearMainDrawPage()

void chart::DrawModelWrapper::clearMainDrawPage ( )

◆ createUnoModel()

uno::Reference< uno::XInterface > chart::DrawModelWrapper::createUnoModel ( )
overridevirtual

Reimplemented from SdrModel.

Definition at line 123 of file DrawModelWrapper.cxx.

◆ dumpAsXml()

void chart::DrawModelWrapper::dumpAsXml ( xmlTextWriterPtr  pWriter) const
overridevirtual

Reimplemented from SdrModel.

Definition at line 321 of file DrawModelWrapper.cxx.

References SdrModel::dumpAsXml().

◆ GetBitmapList()

XBitmapListRef chart::DrawModelWrapper::GetBitmapList ( ) const

◆ getChartRootShape()

rtl::Reference< SvxShapeGroupAnyD > chart::DrawModelWrapper::getChartRootShape ( const rtl::Reference< SvxDrawPage > &  xPage)
static

◆ GetColorList()

XColorListRef chart::DrawModelWrapper::GetColorList ( ) const

◆ GetDashList()

XDashListRef chart::DrawModelWrapper::GetDashList ( ) const

◆ GetGradientList()

XGradientListRef chart::DrawModelWrapper::GetGradientList ( ) const

◆ GetHatchList()

XHatchListRef chart::DrawModelWrapper::GetHatchList ( ) const

◆ getHiddenDrawPage()

const rtl::Reference< SvxDrawPage > & chart::DrawModelWrapper::getHiddenDrawPage ( )

◆ GetItemPool()

SfxItemPool & chart::DrawModelWrapper::GetItemPool ( )

◆ GetLineEndList()

XLineEndListRef chart::DrawModelWrapper::GetLineEndList ( ) const

◆ getMainDrawPage()

const rtl::Reference< SvxDrawPage > & chart::DrawModelWrapper::getMainDrawPage ( )

◆ getNamedSdrObject() [1/2]

SdrObject * chart::DrawModelWrapper::getNamedSdrObject ( const OUString &  rName)

◆ getNamedSdrObject() [2/2]

SdrObject * chart::DrawModelWrapper::getNamedSdrObject ( const OUString &  rName,
SdrObjList const *  pObjList 
)
static

◆ GetPatternList()

XPatternListRef chart::DrawModelWrapper::GetPatternList ( ) const

◆ getReferenceDevice()

OutputDevice * chart::DrawModelWrapper::getReferenceDevice ( ) const

◆ getSdrModel()

SdrModel & chart::DrawModelWrapper::getSdrModel ( )

◆ getShapeFactory()

uno::Reference< lang::XMultiServiceFactory > chart::DrawModelWrapper::getShapeFactory ( )

Definition at line 140 of file DrawModelWrapper.cxx.

References getUnoModel().

◆ getUnoModel()

uno::Reference< frame::XModel > chart::DrawModelWrapper::getUnoModel ( )

◆ lockControllers()

void chart::DrawModelWrapper::lockControllers ( )

Definition at line 232 of file DrawModelWrapper.cxx.

References getUnoModel().

◆ removeShape()

bool chart::DrawModelWrapper::removeShape ( const rtl::Reference< SvxShape > &  xShape)
static

Definition at line 310 of file DrawModelWrapper.cxx.

◆ unlockControllers()

void chart::DrawModelWrapper::unlockControllers ( )

Definition at line 238 of file DrawModelWrapper.cxx.

References getUnoModel().

Member Data Documentation

◆ m_pRefDevice

VclPtr<OutputDevice> chart::DrawModelWrapper::m_pRefDevice
private

Definition at line 44 of file DrawModelWrapper.hxx.

Referenced by DrawModelWrapper(), and ~DrawModelWrapper().

◆ m_xChartItemPool

rtl::Reference<SfxItemPool> chart::DrawModelWrapper::m_xChartItemPool
private

Definition at line 43 of file DrawModelWrapper.hxx.

Referenced by DrawModelWrapper(), and ~DrawModelWrapper().

◆ m_xHiddenDrawPage

rtl::Reference<SvxDrawPage> chart::DrawModelWrapper::m_xHiddenDrawPage
private

Definition at line 42 of file DrawModelWrapper.hxx.

Referenced by getHiddenDrawPage().

◆ m_xMainDrawPage

rtl::Reference<SvxDrawPage> chart::DrawModelWrapper::m_xMainDrawPage
private

Definition at line 41 of file DrawModelWrapper.hxx.

Referenced by clearMainDrawPage(), getHiddenDrawPage(), and getMainDrawPage().


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