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 
24 class SwDoc;
25 
26 class SwDrawModel : public FmFormModel
27 {
28 private:
30 
31 public:
32  SwDrawModel( SwDoc* pDoc );
33  virtual ~SwDrawModel() override;
34 
35  const SwDoc& GetDoc() const { return *m_pDoc; }
36  SwDoc& GetDoc() { return *m_pDoc; }
38  void PutAreaListItems(SfxItemSet& rSet) const;
39 
40  virtual SdrPage* AllocPage(bool bMasterPage) override;
41 
42  virtual css::uno::Reference<css::embed::XStorage> GetDocumentStorage() const override;
43 
44 protected:
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:185
virtual css::uno::Reference< css::uno::XInterface > createUnoModel() override
override of is needed to provide corresponding uno model.
Definition: drawdoc.cxx:119
SwDoc & GetDoc()
Definition: drawdoc.hxx:36
virtual ~SwDrawModel() override
Definition: drawdoc.cxx:93
const SwDoc & GetDoc() const
Definition: drawdoc.hxx:35
virtual SdrPage * AllocPage(bool bMasterPage) override
Create a new page (SdPage) and return a pointer to it back.
Definition: drawdoc.cxx:107
SwDrawModel(SwDoc *pDoc)
Definition: drawdoc.cxx:43
void PutAreaListItems(SfxItemSet &rSet) const
Put needed items for XPropertyList entries from the DrawModel.
Definition: drawdoc.cxx:138
SwDoc * m_pDoc
Definition: drawdoc.hxx:29
virtual css::uno::Reference< css::embed::XStorage > GetDocumentStorage() const override
Definition: drawdoc.cxx:114