LibreOffice Module reportdesign (master) 1
RptModel.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#ifndef INCLUDED_REPORTDESIGN_INC_RPTMODEL_HXX
21#define INCLUDED_REPORTDESIGN_INC_RPTMODEL_HXX
22
23#include "dllapi.h"
24#include <svx/svdmodel.hxx>
25#include <com/sun/star/report/XReportDefinition.hpp>
26
27namespace dbaui
28{
29 class DBSubComponentController;
30}
31namespace reportdesign
32{
33 class OReportDefinition;
34}
35namespace rptui
36{
37class OReportPage;
38class OXUndoEnvironment;
39
41{
42 friend class OReportPage;
43
44private:
48
49 virtual css::uno::Reference< css::uno::XInterface > createUnoModel() override;
50
51 OReportModel( const OReportModel& ) = delete;
52 void operator=(const OReportModel& rSrcModel) = delete;
53
54public:
55
57 virtual ~OReportModel() override;
58
59 virtual void SetChanged(bool bFlg = true) override;
60 virtual rtl::Reference<SdrPage> AllocPage(bool bMasterPage) override;
61 virtual rtl::Reference<SdrPage> RemovePage(sal_uInt16 nPgNum) override;
63 virtual SvxNumType GetPageNumType() const override;
64
65 OXUndoEnvironment& GetUndoEnv() { return *m_xUndoEnv;}
66 void SetModified(bool _bModified);
67
68 dbaui::DBSubComponentController* getController() const { return m_pController; }
69 void attachController( dbaui::DBSubComponentController& _rController ) { m_pController = &_rController; }
70 void detachController();
71
72 OReportPage* createNewPage(const css::uno::Reference< css::report::XSection >& _xSection);
73
79 OReportPage* getPage(const css::uno::Reference< css::report::XSection >& _xSection);
80
82 css::uno::Reference< css::report::XReportDefinition >
83 getReportDefinition() const;
84
85 css::uno::Reference< css::uno::XInterface > createShape(const OUString& aServiceSpecifier,css::uno::Reference< css::drawing::XShape >& _rShape,sal_Int32 nOrientation = -1);
86};
87}
88
89#endif
90
91/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
rtl::Reference< OXUndoEnvironment > m_xUndoEnv
Definition: RptModel.hxx:45
void operator=(const OReportModel &rSrcModel)=delete
::dbaui::DBSubComponentController * m_pController
Definition: RptModel.hxx:46
void attachController(dbaui::DBSubComponentController &_rController)
Definition: RptModel.hxx:69
OXUndoEnvironment & GetUndoEnv()
Definition: RptModel.hxx:65
dbaui::DBSubComponentController * getController() const
Definition: RptModel.hxx:68
OReportModel(const OReportModel &)=delete
::reportdesign::OReportDefinition * m_pReportDefinition
Definition: RptModel.hxx:47
#define REPORTDESIGN_DLLPUBLIC
Definition: dllapi.h:28
css::uno::Reference< css::drawing::XShape > OOO_DLLPUBLIC_TEST createShape(const css::uno::Reference< css::lang::XComponent > &r_xComponent, std::u16string_view r_aKind, const sal_Int32 nX, const sal_Int32 nY, const sal_Int32 nWidth, const sal_Int32 nHeight)
SvxNumType