LibreOffice Module sw (master) 1
drawdoc.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#ifndef INCLUDED_SW_INC_DRAWDOC_HXX
20#define INCLUDED_SW_INC_DRAWDOC_HXX
21
22#include <svx/fmmodel.hxx>
23
24class SwDoc;
25
26class SwDrawModel final : public FmFormModel
27{
28private:
30
31public:
32 SwDrawModel(SwDoc& rDoc);
33 virtual ~SwDrawModel() override;
34
35 const SwDoc& GetDoc() const { return m_rDoc; }
36 SwDoc& GetDoc() { return m_rDoc; }
38 void PutAreaListItems(SfxItemSet& rSet) const;
39
40 virtual rtl::Reference<SdrPage> AllocPage(bool bMasterPage) override;
41
42 virtual css::uno::Reference<css::embed::XStorage> GetDocumentStorage() const override;
43
44private:
46 virtual css::uno::Reference<css::uno::XInterface> createUnoModel() override;
47};
48
49#endif
50
51/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Definition: doc.hxx:194
void PutAreaListItems(SfxItemSet &rSet) const
Put needed items for XPropertyList entries from the DrawModel.
Definition: drawdoc.cxx:151
virtual css::uno::Reference< css::uno::XInterface > createUnoModel() override
override of <SdrModel::createUnoModel()> is needed to provide corresponding uno model.
Definition: drawdoc.cxx:132
SwDoc & GetDoc()
Definition: drawdoc.hxx:36
virtual ~SwDrawModel() override
Definition: drawdoc.cxx:85
SwDrawModel(SwDoc &rDoc)
Definition: drawdoc.cxx:36
virtual rtl::Reference< SdrPage > AllocPage(bool bMasterPage) override
Create a new page (SdPage) and return a pointer to it back.
Definition: drawdoc.cxx:120
const SwDoc & GetDoc() const
Definition: drawdoc.hxx:35
virtual css::uno::Reference< css::embed::XStorage > GetDocumentStorage() const override
Definition: drawdoc.cxx:127
SwDoc & m_rDoc
Definition: drawdoc.hxx:29