30 #include <strings.hxx>
32 #include <FormattedField.hxx>
33 #include <FixedText.hxx>
34 #include <ImageControl.hxx>
47 ,m_pController(nullptr)
48 ,m_pReportDefinition(_pReportDefinition)
71 OSL_FAIL(
"Who called me!");
108 for (sal_uInt16
i = 0;
i < nCount && !pPage ; ++
i)
111 if ( pRptPage && pRptPage->
getSection() == _xSection )
120 if ( xReportDefinition.is() )
129 OSL_ENSURE( xReportDefinition.is(),
"OReportModel::getReportDefinition: invalid model at our controller!" );
130 return xReportDefinition;
138 uno::Reference< uno::XInterface >
OReportModel::createShape(
const OUString& aServiceSpecifier,uno::Reference< drawing::XShape >& _rShape,sal_Int32 nOrientation)
140 uno::Reference< uno::XInterface > xRet;
148 throw uno::Exception(
"no shape",
nullptr);
155 throw uno::Exception(
"no shape",
nullptr);
161 throw uno::Exception(
"no shape",
nullptr);
167 throw uno::Exception(
"no shape",
nullptr);
173 throw uno::Exception(
"no shape",
nullptr);
175 else if ( _rShape.is() )
179 throw uno::Exception(
"no shape",
nullptr);
virtual void SAL_CALL setModified(sal_Bool bModified) override
virtual void InsertPage(SdrPage *pPage, sal_uInt16 nPos=0xFFFF)
virtual rtl::Reference< SdrPage > RemovePage(sal_uInt16 nPgNum) override
#define PROPERTY_NUMBERINGTYPE
OReportPage * getPage(const css::uno::Reference< css::report::XSection > &_xSection)
returns the page which belongs to a section
virtual css::uno::Reference< css::uno::XInterface > createUnoModel() override
const css::uno::Reference< css::report::XSection > & getSection() const
virtual ~OReportModel() override
constexpr OUStringLiteral SERVICE_FORMATTEDFIELD
css::uno::Reference< css::uno::XInterface > createShape(const OUString &aServiceSpecifier, css::uno::Reference< css::drawing::XShape > &_rShape, sal_Int32 nOrientation=-1)
css::uno::Reference< css::uno::XComponentContext > getContext()
virtual void SetChanged(bool bFlg=true)
virtual rtl::Reference< SdrPage > RemovePage(sal_uInt16 nPgNum)
virtual SvxNumType GetPageNumType() const override
constexpr OUStringLiteral SERVICE_REPORTDEFINITION
constexpr OUStringLiteral SERVICE_FIXEDTEXT
constexpr OUStringLiteral SERVICE_FIXEDLINE
rtl::Reference< OXUndoEnvironment > m_xUndoEnv
const SdrPage * GetPage(sal_uInt16 nPgNum) const
::reportdesign::OReportDefinition * m_pReportDefinition
virtual rtl::Reference< SdrPage > AllocPage(bool bMasterPage) override
#define PROPERTY_FORMATSSUPPLIER
void SetSdrUndoFactory(SdrUndoFactory *pUndoFactory)
::dbaui::DBSubComponentController * m_pController
OReportModel(const OReportModel &)=delete
void SetModified(bool _bModified)
virtual void SetChanged(bool bFlg=true) override
constexpr OUStringLiteral SERVICE_IMAGECONTROL
css::uno::Reference< css::report::XReportDefinition > getReportDefinition() const
returns the XReportDefinition which the OReportModel belongs to
OReportPage * createNewPage(const css::uno::Reference< css::report::XSection > &_xSection)
sal_uInt16 GetPageCount() const