bump product version to 5.0.4.1
[LibreOffice.git] / xmloff / source / core / xmlcnimp.cxx
blobc8b40f80dded2ca661d3dc320eedbdf08e9fec79
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 #include "SvXMLAttrCollection.hxx"
21 #include <xmloff/xmlcnimp.hxx>
22 #include <rtl/ustring.hxx>
24 SvXMLAttrContainerData::SvXMLAttrContainerData() : pimpl( new SvXMLAttrCollection() )
28 SvXMLAttrContainerData::SvXMLAttrContainerData(const SvXMLAttrContainerData &rCopy) :
29 pimpl( new SvXMLAttrCollection( *(rCopy.pimpl) ) )
33 // Need destructor defined (despite it being empty) to avoid "checked_delete"
34 // compiler errors.
35 SvXMLAttrContainerData::~SvXMLAttrContainerData()
39 bool SvXMLAttrContainerData::operator ==( const SvXMLAttrContainerData& rCmp ) const
41 return ( *(rCmp.pimpl) == *(pimpl) );
44 bool SvXMLAttrContainerData::AddAttr( const OUString& rLName,
45 const OUString& rValue )
47 return pimpl->AddAttr(rLName, rValue);
50 bool SvXMLAttrContainerData::AddAttr( const OUString& rPrefix,
51 const OUString& rNamespace,
52 const OUString& rLName,
53 const OUString& rValue )
55 return pimpl->AddAttr(rPrefix, rNamespace, rLName, rValue);
58 bool SvXMLAttrContainerData::AddAttr( const OUString& rPrefix,
59 const OUString& rLName,
60 const OUString& rValue )
62 return pimpl->AddAttr(rPrefix, rLName, rValue);
65 bool SvXMLAttrContainerData::SetAt( size_t i,
66 const OUString& rLName,
67 const OUString& rValue )
69 return pimpl->SetAt(i, rLName, rValue);
72 bool SvXMLAttrContainerData::SetAt( size_t i,
73 const OUString& rPrefix,
74 const OUString& rNamespace,
75 const OUString& rLName,
76 const OUString& rValue )
78 return pimpl->SetAt(i, rPrefix, rNamespace, rLName, rValue);
81 bool SvXMLAttrContainerData::SetAt( size_t i,
82 const OUString& rPrefix,
83 const OUString& rLName,
84 const OUString& rValue )
86 return pimpl->SetAt(i, rPrefix, rLName, rValue);
89 void SvXMLAttrContainerData::Remove( size_t i )
91 pimpl->Remove(i);
94 size_t SvXMLAttrContainerData::GetAttrCount() const
96 return pimpl->GetAttrCount();
99 const OUString& SvXMLAttrContainerData::GetAttrLName(size_t i) const
101 return pimpl->GetAttrLName(i);
104 const OUString& SvXMLAttrContainerData::GetAttrValue(size_t i) const
106 return pimpl->GetAttrValue(i);
109 const OUString SvXMLAttrContainerData::GetAttrNamespace( size_t i ) const
111 return pimpl->GetAttrNamespace(i);
114 const OUString SvXMLAttrContainerData::GetAttrPrefix( size_t i ) const
116 return pimpl->GetAttrPrefix(i);
119 const OUString& SvXMLAttrContainerData::GetNamespace( sal_uInt16 i ) const
121 return pimpl->GetNamespace(i);
124 const OUString& SvXMLAttrContainerData::GetPrefix( sal_uInt16 i ) const
126 return pimpl->GetPrefix(i);
129 sal_uInt16 SvXMLAttrContainerData::GetFirstNamespaceIndex() const
131 return pimpl->GetFirstNamespaceIndex();
134 sal_uInt16 SvXMLAttrContainerData::GetNextNamespaceIndex( sal_uInt16 nIdx ) const
136 return pimpl->GetNextNamespaceIndex( nIdx );
139 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */