bump product version to 6.3.0.0.beta1
[LibreOffice.git] / include / xmloff / xmlcnimp.hxx
blob338a48f753ac56de8f53467653a33093fe1407cc
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> pimpl;
35 public:
36 SvXMLAttrContainerData();
37 SvXMLAttrContainerData(const SvXMLAttrContainerData &rCopy);
38 ~SvXMLAttrContainerData();
40 bool operator ==( const SvXMLAttrContainerData& rCmp ) const;
42 bool AddAttr( const OUString& rLName, const OUString& rValue );
43 bool AddAttr( const OUString& rPrefix, const OUString& rNamespace,
44 const OUString& rLName, const OUString& rValue );
45 bool AddAttr( const OUString& rPrefix,
46 const OUString& rLName,
47 const OUString& rValue );
49 size_t GetAttrCount() const;
50 const OUString GetAttrNamespace( size_t i ) const;
51 const OUString GetAttrPrefix( size_t i ) const;
52 const OUString& GetAttrLName( size_t i ) const;
53 const OUString& GetAttrValue( size_t i ) const;
55 sal_uInt16 GetFirstNamespaceIndex() const;
56 sal_uInt16 GetNextNamespaceIndex( sal_uInt16 nIdx ) const;
57 const OUString& GetNamespace( sal_uInt16 i ) const;
58 const OUString& GetPrefix( sal_uInt16 i ) const;
60 bool SetAt( size_t i,
61 const OUString& rLName, const OUString& rValue );
62 bool SetAt( size_t i,
63 const OUString& rPrefix, const OUString& rNamespace,
64 const OUString& rLName, const OUString& rValue );
65 bool SetAt( size_t i,
66 const OUString& rPrefix,
67 const OUString& rLName,
68 const OUString& rValue );
70 void Remove( size_t i );
73 #endif
75 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */