LibreOffice Module xmloff (master) 1
xmlcnimp.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#ifndef INCLUDED_XMLOFF_XMLCNIMP_HXX
21#define INCLUDED_XMLOFF_XMLCNIMP_HXX
22
23#include <memory>
24
25#include <rtl/ustring.hxx>
26#include <xmloff/dllapi.h>
27
29
31{
32private:
33 std::unique_ptr<SvXMLAttrCollection> m_pImpl;
34
35public:
39
40 SvXMLAttrContainerData& operator=( const SvXMLAttrContainerData& rCmp );
41 SvXMLAttrContainerData& operator=( SvXMLAttrContainerData&& rCmp ) noexcept;
42
43 bool operator ==( const SvXMLAttrContainerData& rCmp ) const;
44
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 );
51
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;
57
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;
62
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 );
72
73 void Remove( size_t i );
74};
75
76#endif
77
78/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< SvXMLAttrCollection > m_pImpl
Definition: xmlcnimp.hxx:33
#define XMLOFF_DLLPUBLIC
Definition: dllapi.h:29
bool operator==(const AttributeDescription &i_lhs, const AttributeDescription &i_rhs)