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
14class SvXMLAttr {
15private:
16 sal_uInt16 aPrefixPos;
17 OUString aLName;
18 OUString aValue;
19public:
20 // Assuming OUString is well behaved, the default copy constructor and
21 // assignment operator are fine.
22 SvXMLAttr( OUString aLName,
23 OUString aValue );
24 SvXMLAttr( const sal_uInt16 nPos,
25 OUString aLName,
26 OUString aValue );
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
OUString aValue
Definition: SvXMLAttr.hxx:18
sal_uInt16 aPrefixPos
Definition: SvXMLAttr.hxx:16
const OUString & getValue() const
Definition: SvXMLAttr.hxx:31
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
const OUString & getLName() const
Definition: SvXMLAttr.hxx:30