26#include <com/sun/star/awt/Size.hpp>
27#include <com/sun/star/awt/Rectangle.hpp>
28#include <com/sun/star/beans/XPropertySet.hpp>
29#include <com/sun/star/datatransfer/XTransferable.hpp>
30#include <com/sun/star/lang/XInitialization.hpp>
31#include <com/sun/star/lang/XMultiServiceFactory.hpp>
32#include <com/sun/star/lang/XServiceInfo.hpp>
33#include <com/sun/star/qa/XDumper.hpp>
34#include <com/sun/star/util/XModeChangeBroadcaster.hpp>
35#include <com/sun/star/util/XModifyListener.hpp>
36#include <com/sun/star/util/XUpdatable2.hpp>
57class VCoordinateSystem;
58class DrawModelWrapper;
60struct CreateShapeParam2D;
86 css::lang::XInitialization
87 ,css::lang::XServiceInfo
88 ,css::datatransfer::XTransferable
89 ,css::util::XModifyListener
90 ,css::util::XModeChangeBroadcaster
91 ,css::util::XUpdatable2
92 ,css::beans::XPropertySet
93 ,css::lang::XMultiServiceFactory
96 ,
public ExplicitValueProvider
104 ChartView(css::uno::Reference<css::uno::XComponentContext> xContext, ChartModel& rModel);
114 virtual void SAL_CALL initialize(
const css::uno::Sequence< css::uno::Any >& aArguments )
override;
117 virtual bool getExplicitValuesForAxis(
122 getShapeForCID(
const OUString& rObjectCID )
override;
124 virtual css::awt::Rectangle getRectangleOfObject(
const OUString& rObjectCID,
bool bSnapRect=
false )
override;
126 virtual css::awt::Rectangle getDiagramRectangleExcludingAxes()
override;
128 std::shared_ptr< DrawModelWrapper > getDrawModelWrapper()
override;
131 virtual css::uno::Any SAL_CALL getTransferData(
const css::datatransfer::DataFlavor& aFlavor )
override;
132 virtual css::uno::Sequence< css::datatransfer::DataFlavor > SAL_CALL getTransferDataFlavors( )
override;
133 virtual sal_Bool SAL_CALL isDataFlavorSupported(
const css::datatransfer::DataFlavor& aFlavor )
override;
136 virtual void SAL_CALL
137 disposing(
const css::lang::EventObject& Source )
override;
140 virtual void SAL_CALL modified(
141 const css::lang::EventObject& aEvent )
override;
148 virtual void SAL_CALL addModeChangeListener(
const css::uno::Reference< css::util::XModeChangeListener >& _rxListener )
override;
149 virtual void SAL_CALL removeModeChangeListener(
const css::uno::Reference< css::util::XModeChangeListener >& _rxListener )
override;
150 virtual void SAL_CALL addModeChangeApproveListener(
const css::uno::Reference< css::util::XModeChangeApproveListener >& _rxListener )
override;
151 virtual void SAL_CALL removeModeChangeApproveListener(
const css::uno::Reference< css::util::XModeChangeApproveListener >& _rxListener )
override;
154 virtual void SAL_CALL
update()
override;
157 virtual void SAL_CALL updateSoft()
override;
158 virtual void SAL_CALL updateHard()
override;
161 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( )
override;
162 virtual void SAL_CALL
setPropertyValue(
const OUString& aPropertyName,
const css::uno::Any& aValue )
override;
163 virtual css::uno::Any SAL_CALL
getPropertyValue(
const OUString& PropertyName )
override;
164 virtual void SAL_CALL addPropertyChangeListener(
const OUString& aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener )
override;
165 virtual void SAL_CALL removePropertyChangeListener(
const OUString& aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener )
override;
166 virtual void SAL_CALL addVetoableChangeListener(
const OUString& PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener )
override;
167 virtual void SAL_CALL removeVetoableChangeListener(
const OUString& PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener )
override;
170 virtual css::uno::Reference< css::uno::XInterface > SAL_CALL
createInstance(
const OUString& aServiceSpecifier )
override;
171 virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithArguments(
172 const OUString& ServiceSpecifier,
const css::uno::Sequence< css::uno::Any >& Arguments )
override;
173 virtual css::uno::Sequence< OUString > SAL_CALL getAvailableServiceNames()
override;
176 virtual OUString SAL_CALL
dump(OUString
const & kind)
override;
186 void createShapes2D(
const css::awt::Size& rPageSize );
187 bool createAxisTitleShapes2D(
CreateShapeParam2D& rParam,
const css::awt::Size& rPageSize,
bool bHasRelativeSize );
188 void getMetaFile(
const css::uno::Reference< css::io::XOutputStream >& xOutStream
189 ,
bool bUseHighContrast );
192 void impl_deleteCoordinateSystems();
193 void impl_notifyModeChangeListener(
const OUString& rNewMode );
195 void impl_refreshAddIn();
197 void impl_updateView(
bool bCheckLockedCtrler =
true );
199 css::awt::Rectangle impl_createDiagramAndContent(
const CreateShapeParam2D& rParam,
const css::awt::Size& rPageSize );
206 css::uno::Reference< css::uno::XComponentContext>
m_xCC;
210 css::uno::Reference< css::lang::XMultiServiceFactory>
HRESULT createInstance(REFIID iid, Ifc **ppIfc)
FILE * init(int, char **)
#define OOO_DLLPUBLIC_CHARTVIEW
The ChartView is responsible to manage the generation of Drawing Objects for visualization on a given...
ChartView(css::uno::Reference< css::uno::XComponentContext > xContext, ChartModel &rModel)
DECL_LINK(UpdateTimeBased, Timer *, void)
comphelper::OInterfaceContainerHelper4< css::util::XModeChangeListener > m_aModeChangeListeners
chart::ChartModel & mrChartModel
bool m_bViewUpdatePending
rtl::Reference< SvxShapeGroupAnyD > mxRootShape
css::awt::Size m_aPageResolution
sal_Int32 m_nScaleYDenominator
css::awt::Rectangle m_aResultingDiagramRectangleExcludingAxes
sal_Int32 m_nScaleXNumerator
css::uno::Reference< css::lang::XMultiServiceFactory > m_xShapeFactory
css::uno::Reference< css::uno::XComponentContext > const & getComponentContext()
css::uno::Reference< css::uno::XInterface > m_xHatchTable
css::uno::Reference< css::uno::XInterface > m_xGradientTable
bool m_bPointsWereSkipped
sal_Int32 m_nScaleXDenominator
css::uno::Reference< css::uno::XInterface > m_xMarkerTable
std::shared_ptr< DrawModelWrapper > m_pDrawModelWrapper
css::uno::Reference< css::uno::XComponentContext > m_xCC
css::uno::Reference< css::uno::XInterface > m_xBitmapTable
bool m_bSdrViewIsInEditMode
css::uno::Reference< css::uno::XInterface > m_xTransGradientTable
std::vector< std::unique_ptr< VCoordinateSystem > > m_aVCooSysList
TimeBasedInfo maTimeBased
rtl::Reference< SvxDrawPage > m_xDrawPage
sal_Int32 m_nScaleYNumerator
css::uno::Reference< css::uno::XInterface > m_xDashTable
struct _xmlTextWriter * xmlTextWriterPtr
VCL_DLLPUBLIC void dump(const SkBitmap &bitmap, const char *file)
void setPropertyValue(tPropertyValueMap &rOutMap, tPropertyValueMapKey key, const Value &value)
Set a property to a certain value in the given map.
css::uno::Sequence< OUString > getSupportedServiceNames()
OUString getImplementationName()
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
bool getPropertyValue(ValueType &rValue, css::uno::Reference< css::beans::XPropertySet > const &xPropSet, OUString const &propName)
GDIMetaFileSharedPtr getMetaFile(const uno::Reference< lang::XComponent > &xSource, const uno::Reference< drawing::XDrawPage > &xContainingPage, int mtfLoadFlags, const uno::Reference< uno::XComponentContext > &rxContext)
describes how tickmarks are positioned on the scale of an axis.
This structure contains the explicit values for a scale like Minimum and Maximum.
std::vector< std::vector< VDataSeries * > > m_aDataSeriesList