1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
9 * This file incorporates work covered by the following license notice:
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 .
22 #include <rtl/ustring.hxx>
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!
30 inline constexpr OUString SC_STYLE_PROG_STANDARD
= u
"Default"_ustr
;
31 inline constexpr OUString SC_STYLE_PROG_RESULT
= u
"Result"_ustr
;
32 inline constexpr OUString SC_STYLE_PROG_RESULT1
= u
"Result2"_ustr
;
33 inline constexpr OUString SC_STYLE_PROG_HEADING
= u
"Heading"_ustr
;
34 inline constexpr OUString SC_STYLE_PROG_HEADING1
= u
"Heading1"_ustr
;
35 inline constexpr OUString SC_STYLE_PROG_REPORT
= u
"Report"_ustr
;
37 inline constexpr OUString SC_PIVOT_STYLE_PROG_INNER
= u
"Pivot Table Value"_ustr
;
38 inline constexpr OUString SC_PIVOT_STYLE_PROG_RESULT
= u
"Pivot Table Result"_ustr
;
39 inline constexpr OUString SC_PIVOT_STYLE_PROG_CATEGORY
= u
"Pivot Table Category"_ustr
;
40 inline constexpr OUString SC_PIVOT_STYLE_PROG_TITLE
= u
"Pivot Table Title"_ustr
;
41 inline constexpr OUString SC_PIVOT_STYLE_PROG_FIELDNAME
= u
"Pivot Table Field"_ustr
;
42 inline constexpr OUString SC_PIVOT_STYLE_PROG_TOP
= u
"Pivot Table Corner"_ustr
;
44 enum class SfxStyleFamily
;
46 class ScStyleNameConversion
49 static OUString
DisplayToProgrammaticName(const OUString
& rDispName
, SfxStyleFamily nType
);
50 static SC_DLLPUBLIC OUString
ProgrammaticToDisplayName(const OUString
& rProgName
,
51 SfxStyleFamily nType
);
54 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */