LibreOffice Module xmloff (master)  1
SvXMLAttr.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 
10 #pragma once
11 
12 #include <rtl/ustring.hxx>
13 
14 class SvXMLAttr {
15 private:
16  sal_uInt16 aPrefixPos;
17  OUString aLName;
18  OUString aValue;
19 public:
20  // Assuming OUString is well behaved, the default copy constructor and
21  // assignment operator are fine.
22  SvXMLAttr( const OUString& rLName,
23  const OUString& rValue );
24  SvXMLAttr( const sal_uInt16 nPos,
25  const OUString& rLName,
26  const OUString& rValue );
27  bool operator== (const SvXMLAttr &rCmp) const;
28 
29  sal_uInt16 getPrefixPos() const { return aPrefixPos;}
30  const OUString& getLName() const { return aLName;}
31  const OUString& getValue() const { return aValue;}
32 };
33 
34 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sal_uInt16 getPrefixPos() const
Definition: SvXMLAttr.hxx:29
const OUString & getLName() const
Definition: SvXMLAttr.hxx:30
sal_uInt16 aPrefixPos
Definition: SvXMLAttr.hxx:16
SvXMLAttr(const OUString &rLName, const OUString &rValue)
Definition: SvXMLAttr.cxx:13
OUString aLName
Definition: SvXMLAttr.hxx:17
bool operator==(const SvXMLAttr &rCmp) const
Definition: SvXMLAttr.cxx:30
OUString aValue
Definition: SvXMLAttr.hxx:18
const OUString & getValue() const
Definition: SvXMLAttr.hxx:31