1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef INCLUDED_OOXML_PROPERTY_SET_HXX
24 #define INCLUDED_OOXML_PROPERTY_SET_HXX
25 
26 #include <resourcemodel/WW8ResourceModel.hxx>
27 
28 namespace writerfilter {
29 namespace ooxml
30 {
31 
32 class OOXMLProperty : public Sprm
33 {
34 public:
35     typedef boost::shared_ptr<OOXMLProperty> Pointer_t;
36 
37     virtual ~OOXMLProperty();
38 
39     virtual sal_uInt32 getId() const = 0;
40     virtual Value::Pointer_t getValue() = 0;
41     virtual writerfilter::Reference<BinaryObj>::Pointer_t getBinary() = 0;
42     virtual writerfilter::Reference<Stream>::Pointer_t getStream() = 0;
43     virtual writerfilter::Reference<Properties>::Pointer_t getProps() = 0;
44     virtual string getName() const = 0;
45     virtual string toString() const = 0;
46     virtual void resolve(Properties & rProperties) = 0;
47 
48     virtual Sprm * clone() = 0;
49 };
50 
51 class OOXMLPropertySet : public writerfilter::Reference<Properties>
52 {
53 public:
54     typedef boost::shared_ptr<OOXMLPropertySet> Pointer_t;
55 
56     virtual ~OOXMLPropertySet();
57 
58     virtual void resolve(Properties & rHandler) = 0;
59     virtual string getType() const = 0;
60     virtual void add(OOXMLProperty::Pointer_t pProperty) = 0;
61     virtual void add(OOXMLPropertySet::Pointer_t pPropertySet) = 0;
62     virtual OOXMLPropertySet * clone() const = 0;
63     virtual void setType(const string & rsType) = 0;
64 
65     virtual string toString() = 0;
66 };
67 
68 class OOXMLTable : public writerfilter::Reference<Table>
69 {
70 public:
71     virtual ~OOXMLTable();
72 
73     virtual void resolve(Table & rTable) = 0;
74     virtual OOXMLTable * clone() const = 0;
75 };
76 }}
77 
78 #endif // INCLUDED_OOXML_PROPERTY_SET_HXX
79