/** * @file XTPChartGanttSeriesStyle.h * * @copyright * (c) 1998-2025 Codejock Software, All Rights Reserved. * * This source file is the property of Codejock Software and must not be * redistributed by any means without the explicit written permission of * Codejock Software. * * The use of this source code is governed by the terms and conditions specified * in the Toolkit Pro license agreement. Codejock Software grants you, as a * single software developer, the limited right to use this software on one * computer only. * * Contact Information: * support@codejock.com * http://www.codejock.com * */ /** @cond */ #if !defined(__XTPCHARTGANTTSERIESSTYLE_H__) # define __XTPCHARTGANTTSERIESSTYLE_H__ /** @endcond */ # if _MSC_VER >= 1000 # pragma once # endif // _MSC_VER >= 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" class CXTPChartSeriesView; /** * @brief * This class represents a Gantt series style for the chart, which is a kind of * CXTPChartBarSeriesStyle. * * @details * A Gantt chart or Gantt graph is a chart with rectangular Gantts with lengths * proportional to the values that they represent. Gantt charts are used for * comparing two or more values that were taken over time or on different * conditions, usually on small data sets. */ class _XTP_EXT_CLASS CXTPChartGanttSeriesStyle : public CXTPChartRangeBarSeriesStyle { /** @cond */ DECLARE_SERIAL(CXTPChartGanttSeriesStyle) /** @endcond */ public: /** * @brief * Constructs a CXTPChartGanttSeriesStyle object. */ CXTPChartGanttSeriesStyle(); /** * @brief * Destroys a CXTPChartGanttSeriesStyle object, handles cleanup. */ virtual ~CXTPChartGanttSeriesStyle(); public: protected: /** * @brief * Call this function to create the view of the Gantt series. * * @param pSeries A pointer to the chart series object to which this object * is associated with. * @param pDiagramView A pointer to the chart diagram view object to which this object * is associated with. * * @return * Returns a pointer to the associated series view object. */ virtual CXTPChartSeriesView* CreateView(CXTPChartSeries* pSeries, CXTPChartDiagramView* pDiagramView); public: void DoPropExchange(CXTPPropExchange* pPX); protected: # ifdef _XTP_ACTIVEX public: /** @cond */ DECLARE_DISPATCH_MAP() DECLARE_INTERFACE_MAP() DECLARE_OLETYPELIB_EX(CXTPChartGanttSeriesStyle); DECLARE_OLECREATE_EX(CXTPChartGanttSeriesStyle) /** @endcond */ # endif }; /** * @brief * This class represents the view of a Gantt series, which is a kind of * CXTPChartSeriesView. */ class _XTP_EXT_CLASS CXTPChartGanttSeriesView : public CXTPChartRangeBarSeriesView { public: /** * @brief * Constructs a CXTPChartGanttSeriesView object. * * @param pSeries A pointer to the chart series object. * @param pDiagramView A pointer to the diagram view object. */ CXTPChartGanttSeriesView(CXTPChartSeries* pSeries, CXTPChartDiagramView* pDiagramView); protected: /** * @brief * Call this function to create a view of the Gantt series point. * * @param pDC A pointer to chart device context. * @param pPoint A pointer to the chart series point object. * @param pParentView Parent view pointer. * * @return * Returns a pointer to the series point view object. */ CXTPChartSeriesPointView* CreateSeriesPointView(CXTPChartDeviceContext* pDC, CXTPChartSeriesPoint* pPoint, CXTPChartElementView* pParentView); protected: friend class CXTPChartGanttSeriesPointView; }; /** * @brief * This class represents the view of a Gantt series point, which is a kind of * CXTPChartPointSeriesPointView. */ class _XTP_EXT_CLASS CXTPChartGanttSeriesPointView : public CXTPChartRangeBarSeriesPointView { public: /** * @brief * Constructs a CXTPChartGanttSeriesPointView object. * * @param pPoint A pointer to the chart series point object. * @param pParentView Parent view pointer. */ CXTPChartGanttSeriesPointView(CXTPChartSeriesPoint* pPoint, CXTPChartElementView* pParentView); }; /** @cond */ # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" #endif //#if !defined(__XTPCHARTGANTTSERIESSTYLE_H__) /** @endcond */