LibreOffice Module chart2 (master) 1
ObjectNameProvider.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 <ObjectIdentifier.hxx>
23#include <TitleHelper.hxx>
24
25namespace com::sun::star::chart2 { class XChartDocument; }
26namespace com::sun::star::frame { class XModel; }
27
28namespace chart
29{
30
35{
36public:
37 static OUString getName( ObjectType eObjectType, bool bPlural=false );
38 static OUString getAxisName( std::u16string_view rObjectCID
39 , const rtl::Reference<::chart::ChartModel>& xChartModel );
40 static OUString getGridName( std::u16string_view rObjectCID
41 , const rtl::Reference<::chart::ChartModel>& xChartModel );
42 static OUString getTitleName( std::u16string_view rObjectCID
43 , const rtl::Reference<::chart::ChartModel>& xChartModel );
45
46 static OUString getNameForCID(
47 std::u16string_view rObjectCID,
48 const rtl::Reference<::chart::ChartModel>& xChartDocument );
49
50 static OUString getName_ObjectForSeries(
51 ObjectType eObjectType,
52 std::u16string_view rSeriesCID,
53 const rtl::Reference<::chart::ChartModel>& xChartDocument );
54 static OUString getName_ObjectForAllSeries( ObjectType eObjectType );
55
59 static OUString getHelpText( std::u16string_view rObjectCID, const rtl::Reference<::chart::ChartModel>& xChartModel, bool bVerbose=false );
60
64 static OUString getSelectedObjectText( std::u16string_view rObjectCID, const rtl::Reference<::chart::ChartModel>& xChartDocument );
65};
66
67} //namespace chart
68
69/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Provides localized ui strings for the userinterface.
static OUString getName_ObjectForSeries(ObjectType eObjectType, std::u16string_view rSeriesCID, const rtl::Reference<::chart::ChartModel > &xChartDocument)
static OUString getName(ObjectType eObjectType, bool bPlural=false)
static OUString getAxisName(std::u16string_view rObjectCID, const rtl::Reference<::chart::ChartModel > &xChartModel)
static OUString getSelectedObjectText(std::u16string_view rObjectCID, const rtl::Reference<::chart::ChartModel > &xChartDocument)
This is used for showing the currently selected object in the status bar (command "Context")
static OUString getGridName(std::u16string_view rObjectCID, const rtl::Reference<::chart::ChartModel > &xChartModel)
static OUString getTitleName(std::u16string_view rObjectCID, const rtl::Reference<::chart::ChartModel > &xChartModel)
static OUString getTitleNameByType(TitleHelper::eTitleType eType)
static OUString getName_ObjectForAllSeries(ObjectType eObjectType)
static OUString getHelpText(std::u16string_view rObjectCID, const rtl::Reference<::chart::ChartModel > &xChartModel, bool bVerbose=false)
Provides help texts for the various chart elements.
static OUString getNameForCID(std::u16string_view rObjectCID, const rtl::Reference<::chart::ChartModel > &xChartDocument)
DocumentType eType