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 <ObjectIdentifier.hxx>
23 #include <TitleHelper.hxx>
25 namespace com::sun::star::chart2
{ class XChartDocument
; }
26 namespace com::sun::star::frame
{ class XModel
; }
31 /** Provides localized ui strings for the userinterface.
34 class ObjectNameProvider
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
);
44 static OUString
getTitleNameByType( TitleHelper::eTitleType eType
);
46 static OUString
getNameForCID(
47 std::u16string_view rObjectCID
,
48 const rtl::Reference
<::chart::ChartModel
>& xChartDocument
);
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
);
56 /** Provides help texts for the various chart elements.
57 The parameter rObjectCID has to be a ClassifiedIdentifier - see class ObjectIdentifier.
59 static OUString
getHelpText( std::u16string_view rObjectCID
, const rtl::Reference
<::chart::ChartModel
>& xChartModel
, bool bVerbose
=false );
61 /** This is used for showing the currently selected object in the status bar
64 static OUString
getSelectedObjectText( std::u16string_view rObjectCID
, const rtl::Reference
<::chart::ChartModel
>& xChartDocument
);
69 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */