Line data Source code
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_WRITERFILTER_SOURCE_OOXML_OOXMLPROPERTYSET_HXX
20 : #define INCLUDED_WRITERFILTER_SOURCE_OOXML_OOXMLPROPERTYSET_HXX
21 :
22 : #include <dmapper/resourcemodel.hxx>
23 :
24 : namespace writerfilter {
25 : namespace ooxml
26 : {
27 :
28 3727024 : class OOXMLProperty : public Sprm
29 : {
30 : public:
31 : typedef std::shared_ptr<OOXMLProperty> Pointer_t;
32 :
33 : virtual ~OOXMLProperty();
34 :
35 : virtual sal_uInt32 getId() const SAL_OVERRIDE = 0;
36 : virtual Value::Pointer_t getValue() SAL_OVERRIDE = 0;
37 : virtual writerfilter::Reference<BinaryObj>::Pointer_t getBinary() SAL_OVERRIDE = 0;
38 : virtual writerfilter::Reference<Stream>::Pointer_t getStream() SAL_OVERRIDE = 0;
39 : virtual writerfilter::Reference<Properties>::Pointer_t getProps() SAL_OVERRIDE = 0;
40 : #ifdef DEBUG_WRITERFILTER
41 : virtual std::string getName() const SAL_OVERRIDE = 0;
42 : virtual std::string toString() const SAL_OVERRIDE = 0;
43 : #endif
44 : virtual void resolve(Properties & rProperties) = 0;
45 :
46 : virtual Sprm * clone() = 0;
47 : };
48 :
49 2277601 : class OOXMLPropertySet : public writerfilter::Reference<Properties>
50 : {
51 : public:
52 : typedef std::shared_ptr<OOXMLPropertySet> Pointer_t;
53 :
54 : virtual ~OOXMLPropertySet();
55 :
56 : virtual void resolve(Properties & rHandler) SAL_OVERRIDE = 0;
57 : virtual void add(OOXMLProperty::Pointer_t pProperty) = 0;
58 : virtual void add(OOXMLPropertySet::Pointer_t pPropertySet) = 0;
59 : virtual OOXMLPropertySet * clone() const = 0;
60 : virtual void setType(const std::string & rsType) = 0;
61 :
62 : #ifdef DEBUG_WRITERFILTER
63 : virtual std::string toString() = 0;
64 : #endif
65 : };
66 :
67 12462 : class OOXMLTable : public writerfilter::Reference<Table>
68 : {
69 : public:
70 : virtual ~OOXMLTable();
71 :
72 : virtual void resolve(Table & rTable) SAL_OVERRIDE = 0;
73 : virtual OOXMLTable * clone() const = 0;
74 : };
75 : }}
76 :
77 : #endif // INCLUDED_WRITERFILTER_SOURCE_OOXML_OOXMLPROPERTYSET_HXX
78 :
79 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|