LibreOffice Module xmloff (master) 1
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
15SvXMLAttr::SvXMLAttr( OUString _aLName,
16 OUString _aValue ) :
17 aPrefixPos(USHRT_MAX),
18 aLName(std::move(_aLName)),
19 aValue(std::move(_aValue))
20{
21}
22
23SvXMLAttr::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
32bool 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: */
OUString aValue
Definition: SvXMLAttr.hxx:18
sal_uInt16 aPrefixPos
Definition: SvXMLAttr.hxx:16
OUString aLName
Definition: SvXMLAttr.hxx:17
SvXMLAttr(OUString aLName, OUString aValue)
Definition: SvXMLAttr.cxx:15
bool operator==(const SvXMLAttr &rCmp) const
Definition: SvXMLAttr.cxx:32
sal_uInt16 nPos