Branch libreoffice-5-0-4
[LibreOffice.git] / include / xmloff / xmlcnimp.hxx
blobaefee1c7ecd4ce3ed096355c02147c71febe2265
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 .
20 #ifndef INCLUDED_XMLOFF_XMLCNIMP_HXX
21 #define INCLUDED_XMLOFF_XMLCNIMP_HXX
23 #include <xmloff/dllapi.h>
24 #include <sal/types.h>
25 #include <memory>
27 class SvXMLAttrCollection;
29 class XMLOFF_DLLPUBLIC SvXMLAttrContainerData
31 private:
32 std::unique_ptr<SvXMLAttrCollection> pimpl;
34 public:
35 SvXMLAttrContainerData();
36 SvXMLAttrContainerData(const SvXMLAttrContainerData &rCopy);
37 ~SvXMLAttrContainerData();
39 bool operator ==( const SvXMLAttrContainerData& rCmp ) const;
41 bool AddAttr( const OUString& rLName, const OUString& rValue );
42 bool AddAttr( const OUString& rPrefix, const OUString& rNamespace,
43 const OUString& rLName, const OUString& rValue );
44 bool AddAttr( const OUString& rPrefix,
45 const OUString& rLName,
46 const OUString& rValue );
48 size_t GetAttrCount() const;
49 const OUString GetAttrNamespace( size_t i ) const;
50 const OUString GetAttrPrefix( size_t i ) const;
51 const OUString& GetAttrLName( size_t i ) const;
52 const OUString& GetAttrValue( size_t i ) const;
54 sal_uInt16 GetFirstNamespaceIndex() const;
55 sal_uInt16 GetNextNamespaceIndex( sal_uInt16 nIdx ) const;
56 const OUString& GetNamespace( sal_uInt16 i ) const;
57 const OUString& GetPrefix( sal_uInt16 i ) const;
59 bool SetAt( size_t i,
60 const OUString& rLName, const OUString& rValue );
61 bool SetAt( size_t i,
62 const OUString& rPrefix, const OUString& rNamespace,
63 const OUString& rLName, const OUString& rValue );
64 bool SetAt( size_t i,
65 const OUString& rPrefix,
66 const OUString& rLName,
67 const OUString& rValue );
69 void Remove( size_t i );
72 #endif
74 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */