Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / include / xmloff / xmlcnimp.hxx
blob8ccdc9948a4d7d2d8406569730c8454461255c1a
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 <memory>
25 #include <rtl/ustring.hxx>
26 #include <xmloff/dllapi.h>
28 class SvXMLAttrCollection;
30 class XMLOFF_DLLPUBLIC SvXMLAttrContainerData
32 private:
33 std::unique_ptr<SvXMLAttrCollection> m_pImpl;
35 public:
36 SvXMLAttrContainerData();
37 SvXMLAttrContainerData(const SvXMLAttrContainerData &rCopy);
38 ~SvXMLAttrContainerData();
40 SvXMLAttrContainerData& operator=( const SvXMLAttrContainerData& rCmp );
41 SvXMLAttrContainerData& operator=( SvXMLAttrContainerData&& rCmp ) noexcept;
43 bool operator ==( const SvXMLAttrContainerData& rCmp ) const;
45 bool AddAttr( const OUString& rLName, const OUString& rValue );
46 bool AddAttr( const OUString& rPrefix, const OUString& rNamespace,
47 const OUString& rLName, const OUString& rValue );
48 bool AddAttr( const OUString& rPrefix,
49 const OUString& rLName,
50 const OUString& rValue );
52 size_t GetAttrCount() const;
53 OUString GetAttrNamespace( size_t i ) const;
54 OUString GetAttrPrefix( size_t i ) const;
55 const OUString& GetAttrLName( size_t i ) const;
56 const OUString& GetAttrValue( size_t i ) const;
58 sal_uInt16 GetFirstNamespaceIndex() const;
59 sal_uInt16 GetNextNamespaceIndex( sal_uInt16 nIdx ) const;
60 const OUString& GetNamespace( sal_uInt16 i ) const;
61 const OUString& GetPrefix( sal_uInt16 i ) const;
63 bool SetAt( size_t i,
64 const OUString& rLName, const OUString& rValue );
65 bool SetAt( size_t i,
66 const OUString& rPrefix, const OUString& rNamespace,
67 const OUString& rLName, const OUString& rValue );
68 bool SetAt( size_t i,
69 const OUString& rPrefix,
70 const OUString& rLName,
71 const OUString& rValue );
73 void Remove( size_t i );
76 #endif
78 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */