1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_OOXML_PROPERTY_SET_HXX
20 #define INCLUDED_OOXML_PROPERTY_SET_HXX
22 #include <resourcemodel/WW8ResourceModel.hxx>
24 namespace writerfilter
{
28 class OOXMLProperty
: public Sprm
31 typedef boost::shared_ptr
<OOXMLProperty
> Pointer_t
;
33 virtual ~OOXMLProperty();
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;
44 virtual Sprm
* clone() = 0;
47 class OOXMLPropertySet
: public writerfilter::Reference
<Properties
>
50 typedef boost::shared_ptr
<OOXMLPropertySet
> Pointer_t
;
52 virtual ~OOXMLPropertySet();
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;
61 virtual string
toString() = 0;
64 class OOXMLTable
: public writerfilter::Reference
<Table
>
67 virtual ~OOXMLTable();
69 virtual void resolve(Table
& rTable
) = 0;
70 virtual OOXMLTable
* clone() const = 0;
74 #endif // INCLUDED_OOXML_PROPERTY_SET_HXX
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */