tdf#130857 qt weld: Implement QtInstanceWidget::get_text_height
[LibreOffice.git] / xmloff / source / core / SvXMLAttr.hxx
blobe9f19e54018a5f7cff808046296a34820a21f393
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/.
8 */
10 #pragma once
12 #include <rtl/ustring.hxx>
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( OUString aLName,
23 OUString aValue );
24 SvXMLAttr( const sal_uInt16 nPos,
25 OUString aLName,
26 OUString aValue );
27 bool operator== (const SvXMLAttr &rCmp) const;
29 sal_uInt16 getPrefixPos() const { return aPrefixPos;}
30 const OUString& getLName() const { return aLName;}
31 const OUString& getValue() const { return aValue;}
34 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */