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