LibreOffice Module sc (master) 1
stylehelper.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 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#pragma once
21
22#include <rtl/ustring.hxx>
23#include "scdllapi.h"
24
25// conversion programmatic <-> display (visible) name
26// currently, the core always has the visible names
27// the api is required to use programmatic names for default styles
28// these programmatic names must never change!
29
30inline constexpr OUStringLiteral SC_STYLE_PROG_STANDARD = u"Default";
31inline constexpr OUStringLiteral SC_STYLE_PROG_RESULT = u"Result";
32inline constexpr OUStringLiteral SC_STYLE_PROG_RESULT1 = u"Result2";
33inline constexpr OUStringLiteral SC_STYLE_PROG_HEADING = u"Heading";
34inline constexpr OUStringLiteral SC_STYLE_PROG_HEADING1 = u"Heading1";
35inline constexpr OUStringLiteral SC_STYLE_PROG_REPORT = u"Report";
36
37inline constexpr OUStringLiteral SC_PIVOT_STYLE_PROG_INNER = u"Pivot Table Value";
38inline constexpr OUStringLiteral SC_PIVOT_STYLE_PROG_RESULT = u"Pivot Table Result";
39inline constexpr OUStringLiteral SC_PIVOT_STYLE_PROG_CATEGORY = u"Pivot Table Category";
40inline constexpr OUStringLiteral SC_PIVOT_STYLE_PROG_TITLE = u"Pivot Table Title";
41inline constexpr OUStringLiteral SC_PIVOT_STYLE_PROG_FIELDNAME = u"Pivot Table Field";
42inline constexpr OUStringLiteral SC_PIVOT_STYLE_PROG_TOP = u"Pivot Table Corner";
43
44enum class SfxStyleFamily;
45
47{
48public:
49 static OUString DisplayToProgrammaticName(const OUString& rDispName, SfxStyleFamily nType);
50 static SC_DLLPUBLIC OUString ProgrammaticToDisplayName(const OUString& rProgName,
52};
53
54/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
static SC_DLLPUBLIC OUString ProgrammaticToDisplayName(const OUString &rProgName, SfxStyleFamily nType)
static OUString DisplayToProgrammaticName(const OUString &rDispName, SfxStyleFamily nType)
float u
QPRO_FUNC_TYPE nType
Definition: qproform.cxx:398
#define SC_DLLPUBLIC
Definition: scdllapi.h:27
SfxStyleFamily
constexpr OUStringLiteral SC_STYLE_PROG_HEADING1
Definition: stylehelper.hxx:34
constexpr OUStringLiteral SC_STYLE_PROG_RESULT1
Definition: stylehelper.hxx:32
constexpr OUStringLiteral SC_STYLE_PROG_STANDARD
Definition: stylehelper.hxx:30
constexpr OUStringLiteral SC_STYLE_PROG_HEADING
Definition: stylehelper.hxx:33
constexpr OUStringLiteral SC_PIVOT_STYLE_PROG_TOP
Definition: stylehelper.hxx:42
constexpr OUStringLiteral SC_PIVOT_STYLE_PROG_INNER
Definition: stylehelper.hxx:37
constexpr OUStringLiteral SC_STYLE_PROG_REPORT
Definition: stylehelper.hxx:35
constexpr OUStringLiteral SC_STYLE_PROG_RESULT
Definition: stylehelper.hxx:31
constexpr OUStringLiteral SC_PIVOT_STYLE_PROG_CATEGORY
Definition: stylehelper.hxx:39
constexpr OUStringLiteral SC_PIVOT_STYLE_PROG_FIELDNAME
Definition: stylehelper.hxx:41
constexpr OUStringLiteral SC_PIVOT_STYLE_PROG_TITLE
Definition: stylehelper.hxx:40
constexpr OUStringLiteral SC_PIVOT_STYLE_PROG_RESULT
Definition: stylehelper.hxx:38