LibreOffice Module reportdesign (master) 1
|
#include <RptModel.hxx>
Public Member Functions | |
OReportModel (::reportdesign::OReportDefinition *_pReportDefinition) | |
virtual | ~OReportModel () override |
virtual void | SetChanged (bool bFlg=true) override |
virtual rtl::Reference< SdrPage > | AllocPage (bool bMasterPage) override |
virtual rtl::Reference< SdrPage > | RemovePage (sal_uInt16 nPgNum) override |
virtual SvxNumType | GetPageNumType () const override |
OXUndoEnvironment & | GetUndoEnv () |
void | SetModified (bool _bModified) |
dbaui::DBSubComponentController * | getController () const |
void | attachController (dbaui::DBSubComponentController &_rController) |
void | detachController () |
OReportPage * | createNewPage (const css::uno::Reference< css::report::XSection > &_xSection) |
OReportPage * | getPage (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, 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) |
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< OXUndoEnvironment > | m_xUndoEnv |
::dbaui::DBSubComponentController * | m_pController |
::reportdesign::OReportDefinition * | m_pReportDefinition |
Friends | |
class | OReportPage |
Definition at line 40 of file RptModel.hxx.
|
privatedelete |
rptui::OReportModel::OReportModel | ( | ::reportdesign::OReportDefinition * | _pReportDefinition | ) |
Definition at line 43 of file RptModel.cxx.
References m_xUndoEnv, and SdrModel::SetSdrUndoFactory().
|
overridevirtual |
Definition at line 55 of file RptModel.cxx.
References detachController(), SdrModel::GetPageCount(), and RemovePage().
|
overridevirtual |
Reimplemented from SdrModel.
Definition at line 78 of file RptModel.cxx.
|
inline |
Definition at line 69 of file RptModel.hxx.
OReportPage * rptui::OReportModel::createNewPage | ( | const css::uno::Reference< css::report::XSection > & | _xSection | ) |
Definition at line 104 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 |
||
) |
Definition at line 147 of file RptModel.cxx.
References reportdesign::OReportDefinition::getContext(), m_pReportDefinition, PROPERTY_FORMATSSUPPLIER, SERVICE_FIXEDLINE, SERVICE_FIXEDTEXT, SERVICE_FORMATTEDFIELD, SERVICE_IMAGECONTROL, and SERVICE_REPORTDEFINITION.
Referenced by reportdesign::OReportDrawPage::CreateShape().
|
overrideprivatevirtual |
Reimplemented from SdrModel.
Definition at line 142 of file RptModel.cxx.
References getReportDefinition().
void rptui::OReportModel::detachController | ( | ) |
Definition at line 67 of file RptModel.cxx.
References SdrModel::ClearUndoBuffer(), m_pController, m_pReportDefinition, and m_xUndoEnv.
Referenced by ~OReportModel().
|
inline |
Definition at line 68 of file RptModel.hxx.
Referenced by rptui::FormatNormalizer::impl_ensureUpToDateFieldList_nothrow().
OReportPage * rptui::OReportModel::getPage | ( | const css::uno::Reference< css::report::XSection > & | _xSection | ) |
returns the page which belongs to a section
_xSection |
Definition at line 113 of file RptModel.cxx.
References SdrModel::GetPage(), SdrModel::GetPageCount(), rptui::OReportPage::getSection(), i, and nCount.
|
overridevirtual |
Reimplemented from SdrModel.
Definition at line 126 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 135 of file RptModel.cxx.
References m_pReportDefinition.
Referenced by createUnoModel(), GetPageNumType(), rptui::FormatNormalizer::impl_lateInit(), and rptui::OOle2Obj::OOle2Obj().
|
inline |
Definition at line 65 of file RptModel.hxx.
Referenced by rptui::DlgEdFunc::colorizeOverlappedObject(), rptui::OUnoObject::CreateMediator(), rptui::OCustomShape::EndCreate(), rptui::OOle2Obj::EndCreate(), rptui::OCustomShape::getUnoShape(), rptui::OOle2Obj::getUnoShape(), rptui::OOle2Obj::initializeChart(), rptui::OOle2Obj::initializeOle(), rptui::OCustomShape::NbcMove(), rptui::OOle2Obj::NbcMove(), rptui::OUnoObject::NbcMove(), and rptui::DlgEdFunc::unColorizeOverlappedObj().
|
privatedelete |
|
overridevirtual |
Reimplemented from SdrModel.
Definition at line 98 of file RptModel.cxx.
References SdrModel::RemovePage().
Referenced by ~OReportModel().
|
overridevirtual |
Reimplemented from SdrModel.
Definition at line 85 of file RptModel.cxx.
References SdrModel::SetChanged(), and SetModified().
void rptui::OReportModel::SetModified | ( | bool | _bModified | ) |
Definition at line 92 of file RptModel.cxx.
References m_pController, and dbaui::DBSubComponentController::setModified().
Referenced by SetChanged().
|
friend |
Definition at line 42 of file RptModel.hxx.
Referenced by createNewPage().
|
private |
Definition at line 46 of file RptModel.hxx.
Referenced by detachController(), and SetModified().
|
private |
Definition at line 47 of file RptModel.hxx.
Referenced by createShape(), detachController(), and getReportDefinition().
|
private |
Definition at line 45 of file RptModel.hxx.
Referenced by createNewPage(), detachController(), and OReportModel().