LibreOffice Module chart2 (master) 1
|
#include <DrawModelWrapper.hxx>
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 () |
OutputDevice * | getReferenceDevice () const |
SfxItemPool & | GetItemPool () |
virtual SAL_DLLPRIVATE css::uno::Reference< css::uno::XInterface > | createUnoModel () override |
SAL_DLLPRIVATE css::uno::Reference< css::frame::XModel > | getUnoModel () |
SdrModel & | getSdrModel () |
XColorListRef | GetColorList () const |
XDashListRef | GetDashList () const |
XLineEndListRef | GetLineEndList () const |
XGradientListRef | GetGradientList () const |
XHatchListRef | GetHatchList () const |
XBitmapListRef | GetBitmapList () const |
XPatternListRef | GetPatternList () const |
SdrObject * | getNamedSdrObject (const OUString &rName) |
void | dumpAsXml (xmlTextWriterPtr pWriter) const override |
Static Public Member Functions | |
static rtl::Reference< SvxShapeGroupAnyD > | getChartRootShape (const rtl::Reference< SvxDrawPage > &xPage) |
static SdrObject * | getNamedSdrObject (const OUString &rName, SdrObjList const *pObjList) |
static bool | removeShape (const rtl::Reference< SvxShape > &xShape) |
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< SdrPage > | AllocPage (bool bMasterPage) |
virtual SdrModel * | AllocModel () const |
const SdrLayerAdmin & | GetLayerAdmin () const |
SdrLayerAdmin & | GetLayerAdmin () |
const SfxItemPool & | GetItemPool () const |
SfxItemPool & | GetItemPool () |
SdrOutliner & | GetDrawOutliner (const SdrTextObj *pObj=nullptr) const |
SdrOutliner & | GetHitTestOutliner () const |
const SdrTextObj * | GetFormattingTextObj () const |
void | SetTextDefaults () const |
SdrOutliner & | GetChainingOutliner (const SdrTextObj *pObj) const |
TextChain * | GetTextChain () const |
void | SetRefDevice (OutputDevice *pDev) |
OutputDevice * | GetRefDevice () const |
void | RefDeviceChanged () |
void | SetDefaultFontHeight (sal_Int32 nVal) |
void | SetDefaultTabulator (sal_uInt16 nVal) |
sal_uInt16 | GetDefaultTabulator () const |
SfxStyleSheet * | GetDefaultStyleSheet () const |
void | SetDefaultStyleSheet (SfxStyleSheet *pDefSS) |
SfxStyleSheet * | GetDefaultStyleSheetForSdrGrafObjAndSdrOle2Obj () const |
void | SetDefaultStyleSheetForSdrGrafObjAndSdrOle2Obj (SfxStyleSheet *pDefSS) |
sfx2::LinkManager * | GetLinkManager () |
void | SetLinkManager (sfx2::LinkManager *pLinkMgr) |
::comphelper::IEmbeddedHelper * | GetPersist () const |
void | SetPersist (::comphelper::IEmbeddedHelper *p) |
MapUnit | GetScaleUnit () const |
void | SetScaleUnit (MapUnit eMap) |
const Size & | GetMaxObjSize () const |
void | SetMaxObjSize (const Size &rSiz) |
void | SetUIUnit (FieldUnit eUnit) |
FieldUnit | GetUIUnit () const |
void | SetUIScale (const Fraction &rScale) |
const Fraction & | GetUIScale () 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< SdrPage > | RemovePage (sal_uInt16 nPgNum) |
virtual void | MovePage (sal_uInt16 nPgNum, sal_uInt16 nNewPos) |
const SdrPage * | GetPage (sal_uInt16 nPgNum) const |
SdrPage * | GetPage (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< SdrPage > | RemoveMasterPage (sal_uInt16 nPgNum) |
void | MoveMasterPage (sal_uInt16 nPgNum, sal_uInt16 nNewPos) |
const SdrPage * | GetMasterPage (sal_uInt16 nPgNum) const |
SdrPage * | GetMasterPage (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) |
SfxUndoManager * | GetSdrUndoManager () const |
void | SetSdrUndoFactory (SdrUndoFactory *pUndoFactory) |
SdrUndoFactory & | GetSdrUndoFactory () const |
const XPropertyListRef & | GetPropertyList (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 |
SfxStyleSheetBasePool * | GetStyleSheetPool () 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< SdrOutliner > | createOutliner (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 () |
Definition at line 38 of file DrawModelWrapper.hxx.
chart::DrawModelWrapper::DrawModelWrapper | ( | ) |
Definition at line 46 of file DrawModelWrapper.cxx.
References VclPtr< class reference_type >::Create(), chart::ChartItemPool::CreateChartItemPool(), VclPtr< class reference_type >::disposeAndClear(), EE_PARA_HYPHENATE(), SfxItemPool::FreezeIdRanges(), VclPtr< class reference_type >::get(), Application::GetDefaultDevice(), SdrModel::GetDrawOutliner(), LinguMgr::GetHyphenator(), GetItemPool(), SfxItemPool::GetLastPoolInChain(), LinguMgr::GetSpellChecker(), m_pRefDevice, m_xChartItemPool, makeSvx3DPercentDiagonalItem(), SdrModel::SetDefaultFontHeight(), SfxItemPool::SetDefaultMetric(), MapMode::SetMapUnit(), SfxItemPool::SetPoolDefaultItem(), SdrModel::SetRefDevice(), SfxItemPool::SetSecondaryPool(), and SdrModel::SetTextDefaults().
|
overridevirtual |
Definition at line 102 of file DrawModelWrapper.cxx.
References VclPtr< class reference_type >::disposeAndClear(), GetItemPool(), SfxItemPool::GetSecondaryPool(), m_pRefDevice, m_xChartItemPool, and SfxItemPool::SetSecondaryPool().
void chart::DrawModelWrapper::clearMainDrawPage | ( | ) |
Definition at line 211 of file DrawModelWrapper.cxx.
References chart::ShapeFactory::getChartRootShape(), and m_xMainDrawPage.
|
overridevirtual |
Reimplemented from SdrModel.
Definition at line 123 of file DrawModelWrapper.cxx.
|
overridevirtual |
Reimplemented from SdrModel.
Definition at line 321 of file DrawModelWrapper.cxx.
References SdrModel::dumpAsXml().
XBitmapListRef chart::DrawModelWrapper::GetBitmapList | ( | ) | const |
Definition at line 274 of file DrawModelWrapper.cxx.
References SdrModel::GetBitmapList().
Referenced by chart::ViewElementListProvider::GetBitmapList().
|
static |
Definition at line 227 of file DrawModelWrapper.cxx.
References chart::ShapeFactory::getChartRootShape().
Referenced by chart::ObjectHierarchy::createAdditionalShapesTree(), chart::wrapper::ChartDocumentWrapper::getAdditionalShapes(), chart::ShapeController::getFirstAdditionalShape(), and chart::ShapeController::getLastAdditionalShape().
XColorListRef chart::DrawModelWrapper::GetColorList | ( | ) | const |
Definition at line 254 of file DrawModelWrapper.cxx.
References SdrModel::GetColorList().
Referenced by chart::ViewElementListProvider::GetColorTable().
XDashListRef chart::DrawModelWrapper::GetDashList | ( | ) | const |
Definition at line 258 of file DrawModelWrapper.cxx.
References SdrModel::GetDashList().
Referenced by chart::ViewElementListProvider::GetDashList().
XGradientListRef chart::DrawModelWrapper::GetGradientList | ( | ) | const |
Definition at line 266 of file DrawModelWrapper.cxx.
References SdrModel::GetGradientList().
Referenced by chart::ViewElementListProvider::GetGradientList().
XHatchListRef chart::DrawModelWrapper::GetHatchList | ( | ) | const |
Definition at line 270 of file DrawModelWrapper.cxx.
References SdrModel::GetHatchList().
Referenced by chart::ViewElementListProvider::GetHatchList().
const rtl::Reference< SvxDrawPage > & chart::DrawModelWrapper::getHiddenDrawPage | ( | ) |
Definition at line 180 of file DrawModelWrapper.cxx.
References getUnoModel(), m_xHiddenDrawPage, and m_xMainDrawPage.
Referenced by chart::ViewElementListProvider::GetSymbolList().
SfxItemPool & chart::DrawModelWrapper::GetItemPool | ( | ) |
Definition at line 250 of file DrawModelWrapper.cxx.
References SdrModel::GetItemPool().
Referenced by chart::DrawCommandDispatch::createDefaultObject(), DrawModelWrapper(), and ~DrawModelWrapper().
XLineEndListRef chart::DrawModelWrapper::GetLineEndList | ( | ) | const |
Definition at line 262 of file DrawModelWrapper.cxx.
References SdrModel::GetLineEndList().
Referenced by chart::ViewElementListProvider::GetLineEndList().
const rtl::Reference< SvxDrawPage > & chart::DrawModelWrapper::getMainDrawPage | ( | ) |
Definition at line 146 of file DrawModelWrapper.cxx.
References getUnoModel(), and m_xMainDrawPage.
Referenced by chart::DrawCommandDispatch::createDefaultObject(), chart::ShapeController::getFirstAdditionalShape(), chart::ShapeController::getLastAdditionalShape(), chart::ChartController::impl_PasteGraphic(), chart::ChartController::impl_PasteShapes(), and chart::ChartController::impl_PasteStringAsTextShape().
SdrObject * chart::DrawModelWrapper::getNamedSdrObject | ( | const OUString & | rName | ) |
Definition at line 284 of file DrawModelWrapper.cxx.
References getNamedSdrObject(), and SdrModel::GetPage().
Referenced by getNamedSdrObject(), chart::DrawViewWrapper::getNamedSdrObject(), chart::ChartView::getRectangleOfObject(), and chart::ChartView::getShapeForCID().
|
static |
Definition at line 291 of file DrawModelWrapper.cxx.
References chart::ObjectIdentifier::areIdenticalObjects(), SdrObject::GetName(), getNamedSdrObject(), SdrObjList::GetObj(), SdrObjList::GetObjCount(), SdrObject::GetSubList(), and nCount.
XPatternListRef chart::DrawModelWrapper::GetPatternList | ( | ) | const |
Definition at line 279 of file DrawModelWrapper.cxx.
References SdrModel::GetPatternList().
Referenced by chart::ViewElementListProvider::GetPatternList().
OutputDevice * chart::DrawModelWrapper::getReferenceDevice | ( | ) | const |
Definition at line 245 of file DrawModelWrapper.cxx.
References SdrModel::GetRefDevice().
Referenced by chart::ViewElementListProvider::getFontList().
SdrModel & chart::DrawModelWrapper::getSdrModel | ( | ) |
Definition at line 135 of file DrawModelWrapper.cxx.
Referenced by chart::DrawCommandDispatch::createDefaultObject(), chart::ShapeController::executeDispatch_FormatArea(), chart::ShapeController::executeDispatch_FormatLine(), chart::ChartController::impl_PasteShapes(), chart::DrawCommandDispatch::setLineEnds(), and chart::sidebar::ChartAreaPanel::updateData().
uno::Reference< lang::XMultiServiceFactory > chart::DrawModelWrapper::getShapeFactory | ( | ) |
Definition at line 140 of file DrawModelWrapper.cxx.
References getUnoModel().
uno::Reference< frame::XModel > chart::DrawModelWrapper::getUnoModel | ( | ) |
Definition at line 129 of file DrawModelWrapper.cxx.
References SdrModel::getUnoModel().
Referenced by getHiddenDrawPage(), getMainDrawPage(), getShapeFactory(), lockControllers(), and unlockControllers().
void chart::DrawModelWrapper::lockControllers | ( | ) |
Definition at line 232 of file DrawModelWrapper.cxx.
References getUnoModel().
|
static |
Definition at line 310 of file DrawModelWrapper.cxx.
void chart::DrawModelWrapper::unlockControllers | ( | ) |
Definition at line 238 of file DrawModelWrapper.cxx.
References getUnoModel().
|
private |
Definition at line 44 of file DrawModelWrapper.hxx.
Referenced by DrawModelWrapper(), and ~DrawModelWrapper().
|
private |
Definition at line 43 of file DrawModelWrapper.hxx.
Referenced by DrawModelWrapper(), and ~DrawModelWrapper().
|
private |
Definition at line 42 of file DrawModelWrapper.hxx.
Referenced by getHiddenDrawPage().
|
private |
Definition at line 41 of file DrawModelWrapper.hxx.
Referenced by clearMainDrawPage(), getHiddenDrawPage(), and getMainDrawPage().