LibreOffice Module xmloff (master)
1
xmloff
source
core
SvXMLAttr.cxx
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
10
#include <limits.h>
11
12
#include <utility>
13
#include "
SvXMLAttr.hxx
"
14
15
SvXMLAttr::SvXMLAttr
( OUString _aLName,
16
OUString _aValue ) :
17
aPrefixPos(USHRT_MAX),
18
aLName(
std
::move(_aLName)),
19
aValue(
std
::move(_aValue))
20
{
21
}
22
23
SvXMLAttr::SvXMLAttr
(
const
sal_uInt16 nPos,
24
OUString _aLName,
25
OUString _aValue ) :
26
aPrefixPos(
nPos
),
27
aLName(
std
::move(_aLName)),
28
aValue(
std
::move(_aValue))
29
{
30
}
31
32
bool
SvXMLAttr::operator==
(
const
SvXMLAttr
&rCmp)
const
33
{
34
return
( rCmp.
aPrefixPos
==
aPrefixPos
) &&
35
( rCmp.
aLName
==
aLName
) &&
36
( rCmp.
aValue
==
aValue
);
37
}
38
39
40
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SvXMLAttr.hxx
SvXMLAttr
Definition:
SvXMLAttr.hxx:14
SvXMLAttr::aValue
OUString aValue
Definition:
SvXMLAttr.hxx:18
SvXMLAttr::aPrefixPos
sal_uInt16 aPrefixPos
Definition:
SvXMLAttr.hxx:16
SvXMLAttr::aLName
OUString aLName
Definition:
SvXMLAttr.hxx:17
SvXMLAttr::SvXMLAttr
SvXMLAttr(OUString aLName, OUString aValue)
Definition:
SvXMLAttr.cxx:15
SvXMLAttr::operator==
bool operator==(const SvXMLAttr &rCmp) const
Definition:
SvXMLAttr.cxx:32
nPos
sal_uInt16 nPos
std
Generated on Sun Jul 30 2023 04:40:21 for LibreOffice Module xmloff (master) by
1.9.3