1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: OOXMLPropertySet.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef INCLUDED_OOXML_PROPERTY_SET_HXX
31 #define INCLUDED_OOXML_PROPERTY_SET_HXX
33 #include <resourcemodel/WW8ResourceModel.hxx>
35 namespace writerfilter
{
39 class OOXMLProperty
: public Sprm
42 typedef boost::shared_ptr
<OOXMLProperty
> Pointer_t
;
44 virtual ~OOXMLProperty();
46 virtual sal_uInt32
getId() const = 0;
47 virtual Value::Pointer_t
getValue() = 0;
48 virtual writerfilter::Reference
<BinaryObj
>::Pointer_t
getBinary() = 0;
49 virtual writerfilter::Reference
<Stream
>::Pointer_t
getStream() = 0;
50 virtual writerfilter::Reference
<Properties
>::Pointer_t
getProps() = 0;
51 virtual string
getName() const = 0;
52 virtual string
toString() const = 0;
53 virtual void resolve(Properties
& rProperties
) = 0;
55 virtual Sprm
* clone() = 0;
58 class OOXMLPropertySet
: public writerfilter::Reference
<Properties
>
61 typedef boost::shared_ptr
<OOXMLPropertySet
> Pointer_t
;
63 virtual ~OOXMLPropertySet();
65 virtual void resolve(Properties
& rHandler
) = 0;
66 virtual string
getType() const = 0;
67 virtual void add(OOXMLProperty::Pointer_t pProperty
) = 0;
68 virtual void add(OOXMLPropertySet::Pointer_t pPropertySet
) = 0;
69 virtual OOXMLPropertySet
* clone() const = 0;
70 virtual void setType(const string
& rsType
) = 0;
72 virtual string
toString() = 0;
75 class OOXMLTable
: public writerfilter::Reference
<Table
>
78 virtual ~OOXMLTable();
80 virtual void resolve(Table
& rTable
) = 0;
81 virtual OOXMLTable
* clone() const = 0;
85 #endif // INCLUDED_OOXML_PROPERTY_SET_HXX