/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/ #pragma once
#include <rtl/ustring.hxx> #include <functional>
/// Thin wrapper around OUString to make visible in code when we are dealing with a UIName vs a Programmatic Name class UIName
{ public:
UIName() {}
constexpr explicit UIName(const OUString& s)
: m_s(s)
{
} const OUString& toString() const { return m_s; } bool isEmpty() const { return m_s.isEmpty(); } booloperator==(const UIName& s) const { return m_s == s.m_s; } booloperator==(const OUString& s) const { return m_s == s; } booloperator==(std::u16string_view s) const { return m_s == s; } booloperator<(const UIName& s) const { return m_s < s.m_s; }
// SwTableAutoFormat names are their special little snowflake. Mostly they are UINames, but sometimes they // are programmatic names, so I isolated them into their own world. class TableStyleName
{ public:
TableStyleName() {}
constexpr explicit TableStyleName(const OUString& s)
: m_s(s)
{
} const OUString& toString() const { return m_s; } bool isEmpty() const { return m_s.isEmpty(); } booloperator==(const TableStyleName& s) const = default; booloperator==(std::u16string_view s) const { return m_s == s; }
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.