LibreOffice Module chart2 (master) 1
dlg_ObjectProperties.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#pragma once
20
21#include <ObjectIdentifier.hxx>
22#include <sfx2/tabdlg.hxx>
23#include <vcl/graph.hxx>
24
25namespace com::sun::star::util { class XNumberFormatsSupplier; }
26
27namespace chart
28{
29
31{
32public:
33 ObjectPropertiesDialogParameter( OUString aObjectCID );
35
38 const OUString& getLocalizedName() const { return m_aLocalizedName;}
39
51
55 bool ShowAxisOrigin() const { return m_bShowAxisOrigin;}
58 const css::uno::Sequence< OUString >& GetCategories() const { return m_aCategories;}
59
61 getDocument() const { return m_xChartDocument;}
62
64
65 sal_Int32 getNbPoints() const { return m_nNbPoints;}
66
67private:
68 OUString m_aObjectCID;
70 bool m_bAffectsMultipleObjects;//is true if more than one object of the given type will be changed (e.g. all axes or all titles)
71
73
85
88
93 css::uno::Sequence< OUString > m_aCategories;
94
96
98
99 sal_Int32 m_nNbPoints;
100};
101
102/*************************************************************************
103|*
104|* dialog for properties of different chart object
105|*
106\************************************************************************/
107
109
111{
112private:
116
117 std::optional<SfxItemSet> m_oSymbolShapeProperties;
118 std::optional<Graphic> m_oAutoSymbolGraphic;
119
122
123 DECL_LINK(OKPressed, weld::Button&, void);
124
125 virtual void PageCreated(const OUString& rId, SfxTabPage& rPage) override;
126
127public:
128 SchAttribTabDlg(weld::Window* pParent, const SfxItemSet* pAttr,
129 const ObjectPropertiesDialogParameter* pDialogParameter,
130 const ViewElementListProvider* pViewElementListProvider,
131 const css::uno::Reference< css::util::XNumberFormatsSupplier >& xNumberFormatsSupplier );
132 virtual ~SchAttribTabDlg() override;
133
134 //pSymbolShapeProperties: Properties to be set on the symbollist shapes
135 //pAutoSymbolGraphic: Graphic to be shown if AutoSymbol gets selected
136 void setSymbolInformation( SfxItemSet&& rSymbolShapeProperties, std::optional<Graphic> oAutoSymbolGraphic );
137
138 void SetAxisMinorStepWidthForErrorBarDecimals( double fMinorStepWidth );
139
140 bool DialogWasClosedWithOK() const { return m_bOKPressed;}
141};
142
143} //namespace chart
144
145/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void init(const rtl::Reference<::chart::ChartModel > &xModel)
rtl::Reference<::chart::ChartModel > m_xChartDocument
const css::uno::Sequence< OUString > & GetCategories() const
css::uno::Sequence< OUString > m_aCategories
const rtl::Reference<::chart::ChartModel > & getDocument() const
const ObjectPropertiesDialogParameter *const m_pParameter
DECL_LINK(OKPressed, weld::Button &, void)
SchAttribTabDlg(weld::Window *pParent, const SfxItemSet *pAttr, const ObjectPropertiesDialogParameter *pDialogParameter, const ViewElementListProvider *pViewElementListProvider, const css::uno::Reference< css::util::XNumberFormatsSupplier > &xNumberFormatsSupplier)
virtual void PageCreated(const OUString &rId, SfxTabPage &rPage) override
virtual ~SchAttribTabDlg() override
std::optional< Graphic > m_oAutoSymbolGraphic
const ViewElementListProvider *const m_pViewElementListProvider
std::optional< SfxItemSet > m_oSymbolShapeProperties
SvNumberFormatter * m_pNumberFormatter
void setSymbolInformation(SfxItemSet &&rSymbolShapeProperties, std::optional< Graphic > oAutoSymbolGraphic)
void SetAxisMinorStepWidthForErrorBarDecimals(double fMinorStepWidth)
Reference< XModel > xModel