diff --git a/HwpFile/HWPFile.pro b/HwpFile/HWPFile.pro index a1d210a014..2c1c3a3310 100644 --- a/HwpFile/HWPFile.pro +++ b/HwpFile/HWPFile.pro @@ -22,6 +22,56 @@ DEFINES += HWPFILE_USE_DYNAMIC_LIBRARY \ SOURCES += \ HWPFile.cpp \ + HwpDoc/Chart/Attribute.cpp \ + HwpDoc/Chart/Axis.cpp \ + HwpDoc/Chart/Backdrop.cpp \ + HwpDoc/Chart/Bar.cpp \ + HwpDoc/Chart/Brush.cpp \ + HwpDoc/Chart/CategoryScale.cpp \ + HwpDoc/Chart/Contour.cpp \ + HwpDoc/Chart/ContourGradient.cpp \ + HwpDoc/Chart/Coor.cpp \ + HwpDoc/Chart/Coor3.cpp \ + HwpDoc/Chart/DataGrid.cpp \ + HwpDoc/Chart/DataPoint.cpp \ + HwpDoc/Chart/DateScale.cpp \ + HwpDoc/Chart/Doughnut.cpp \ + HwpDoc/Chart/Elevation.cpp \ + HwpDoc/Chart/Fill.cpp \ + HwpDoc/Chart/Footnote.cpp \ + HwpDoc/Chart/Frame.cpp \ + HwpDoc/Chart/Gradient.cpp \ + HwpDoc/Chart/HiLo.cpp \ + HwpDoc/Chart/Intersection.cpp \ + HwpDoc/Chart/LCoor.cpp \ + HwpDoc/Chart/LRect.cpp \ + HwpDoc/Chart/Label.cpp \ + HwpDoc/Chart/Legend.cpp \ + HwpDoc/Chart/Light.cpp \ + HwpDoc/Chart/Location.cpp \ + HwpDoc/Chart/Marker.cpp \ + HwpDoc/Chart/Pen.cpp \ + HwpDoc/Chart/Pie.cpp \ + HwpDoc/Chart/Plot.cpp \ + HwpDoc/Chart/Position.cpp \ + HwpDoc/Chart/PrintInformation.cpp \ + HwpDoc/Chart/Rect.cpp \ + HwpDoc/Chart/Series.cpp \ + HwpDoc/Chart/Shadow.cpp \ + HwpDoc/Chart/StatLine.cpp \ + HwpDoc/Chart/Surface.cpp \ + HwpDoc/Chart/TextLayout.cpp \ + HwpDoc/Chart/Tick.cpp \ + HwpDoc/Chart/Title.cpp \ + HwpDoc/Chart/ValueScale.cpp \ + HwpDoc/Chart/View3D.cpp \ + HwpDoc/Chart/VtChart.cpp \ + HwpDoc/Chart/VtColor.cpp \ + HwpDoc/Chart/VtFont.cpp \ + HwpDoc/Chart/VtPicture.cpp \ + HwpDoc/Chart/Wall.cpp \ + HwpDoc/Chart/Weighting.cpp \ + HwpDoc/Chart/XYZ.cpp \ HwpDoc/Common/XMLReader.cpp \ HwpDoc/Common/WriterContext.cpp \ HwpDoc/Conversion/Converter2OOXML.cpp \ @@ -99,6 +149,58 @@ SOURCES += \ HEADERS += \ HWPFile.h \ + HwpDoc/Chart/Attribute.h \ + HwpDoc/Chart/Axis.h \ + HwpDoc/Chart/Backdrop.h \ + HwpDoc/Chart/Bar.h \ + HwpDoc/Chart/Brush.h \ + HwpDoc/Chart/CategoryScale.h \ + HwpDoc/Chart/ChartObject.h \ + HwpDoc/Chart/Contour.h \ + HwpDoc/Chart/ContourGradient.h \ + HwpDoc/Chart/Coor.h \ + HwpDoc/Chart/Coor3.h \ + HwpDoc/Chart/DataGrid.h \ + HwpDoc/Chart/DataPoint.h \ + HwpDoc/Chart/DateScale.h \ + HwpDoc/Chart/Doughnut.h \ + HwpDoc/Chart/Elevation.h \ + HwpDoc/Chart/Fill.h \ + HwpDoc/Chart/Footnote.h \ + HwpDoc/Chart/Frame.h \ + HwpDoc/Chart/Gradient.h \ + HwpDoc/Chart/HiLo.h \ + HwpDoc/Chart/Intersection.h \ + HwpDoc/Chart/LCoor.h \ + HwpDoc/Chart/LRect.h \ + HwpDoc/Chart/Label.h \ + HwpDoc/Chart/Legend.h \ + HwpDoc/Chart/Light.h \ + HwpDoc/Chart/Location.h \ + HwpDoc/Chart/Marker.h \ + HwpDoc/Chart/Pen.h \ + HwpDoc/Chart/Pie.h \ + HwpDoc/Chart/Plot.h \ + HwpDoc/Chart/Position.h \ + HwpDoc/Chart/PrintInformation.h \ + HwpDoc/Chart/Rect.h \ + HwpDoc/Chart/Series.h \ + HwpDoc/Chart/Shadow.h \ + HwpDoc/Chart/StatLine.h \ + HwpDoc/Chart/Surface.h \ + HwpDoc/Chart/TextLayout.h \ + HwpDoc/Chart/Tick.h \ + HwpDoc/Chart/Title.h \ + HwpDoc/Chart/Types.h \ + HwpDoc/Chart/ValueScale.h \ + HwpDoc/Chart/View3D.h \ + HwpDoc/Chart/VtChart.h \ + HwpDoc/Chart/VtColor.h \ + HwpDoc/Chart/VtFont.h \ + HwpDoc/Chart/VtPicture.h \ + HwpDoc/Chart/Wall.h \ + HwpDoc/Chart/Weighting.h \ + HwpDoc/Chart/XYZ.h \ HwpDoc/Common/Common.h \ HwpDoc/Common/NodeNames.h \ HwpDoc/Common/WriterContext.h \ diff --git a/HwpFile/HwpDoc/Chart/Attribute.cpp b/HwpFile/HwpDoc/Chart/Attribute.cpp new file mode 100644 index 0000000000..2a0e357109 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Attribute.cpp @@ -0,0 +1,9 @@ +#include "Attribute.h" + +namespace HWP { namespace CHART +{ +CAttribute::CAttribute() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/Attribute.h b/HwpFile/HwpDoc/Chart/Attribute.h new file mode 100644 index 0000000000..bf3cd4260b --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Attribute.h @@ -0,0 +1,22 @@ +#ifndef ATTRIBUTE_H +#define ATTRIBUTE_H + +#include "Brush.h" +#include "Pen.h" + +namespace HWP { namespace CHART +{ +class CAttribute +{ + CBrush m_oBrush; + CPen m_oPen; + HWP_STRING m_sText; + double m_dValue; +public: + CAttribute(); +}; + +using CAttributes = ICollection; +}} + +#endif // ATTRIBUTE_H diff --git a/HwpFile/HwpDoc/Chart/Axis.cpp b/HwpFile/HwpDoc/Chart/Axis.cpp new file mode 100644 index 0000000000..6a0ff55472 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Axis.cpp @@ -0,0 +1,24 @@ +#include "Axis.h" + +namespace HWP { namespace CHART +{ +CAxisGrid::CAxisGrid() +{ + +} + +CAxisScale::CAxisScale() +{ + +} + +CAxisTitle::CAxisTitle() +{ + +} + +CAxis::CAxis() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/Axis.h b/HwpFile/HwpDoc/Chart/Axis.h new file mode 100644 index 0000000000..df151b2eb2 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Axis.h @@ -0,0 +1,65 @@ +#ifndef AXIS_H +#define AXIS_H + +#include "Pen.h" +#include "VtFont.h" +#include "Backdrop.h" +#include "TextLayout.h" +#include "CategoryScale.h" +#include "DateScale.h" +#include "Intersection.h" +#include "Label.h" +#include "Tick.h" +#include "ValueScale.h" + +namespace HWP { namespace CHART +{ +class CAxisGrid +{ + CPen m_oMajorPen; + CPen m_oMinorPen; +public: + CAxisGrid(); +}; + +class CAxisScale +{ + bool m_bHide; + int m_nLogBase; + HWP_STRING m_sPercentBasis; + int m_nType; +public: + CAxisScale(); +}; + +class CAxisTitle +{ + CBackdrop m_oBackdrop; + HWP_STRING m_sText; + CTextLayout m_oTextLayout; + int m_nTextLength; + bool m_bVisible; + CVtFont m_oVtFont; +public: + CAxisTitle(); +}; + +class CAxis +{ + CAxisGrid m_oAxisGrid; + CAxisScale m_oAxisScale; + CAxisTitle m_oAxisTitle; + CCategoryScale m_oCategoryScale; + CDateScale m_oDateScale; + CIntersection m_oIntersection; + CLabels m_oLabels; + int m_nLabelLevelCount; + CPen m_oPen; + CTick m_oTick; + CValueScale m_oValueScale; +public: + CAxis(); +}; +}} + +#endif // AXIS_H diff --git a/HwpFile/HwpDoc/Chart/Backdrop.cpp b/HwpFile/HwpDoc/Chart/Backdrop.cpp new file mode 100644 index 0000000000..3a1e3f3e3a --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Backdrop.cpp @@ -0,0 +1,9 @@ +#include "Backdrop.h" + +namespace HWP { namespace CHART +{ +CBackdrop::CBackdrop() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/Backdrop.h b/HwpFile/HwpDoc/Chart/Backdrop.h new file mode 100644 index 0000000000..fbfc6fa1a0 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Backdrop.h @@ -0,0 +1,20 @@ +#ifndef BACKDROP_H +#define BACKDROP_H + +#include "Frame.h" +#include "Fill.h" +#include "Shadow.h" + +namespace HWP { namespace CHART +{ +class CBackdrop +{ + CFrame m_oFrame; + CFill m_oFill; + CShadow m_oShadow; +public: + CBackdrop(); +}; +}} + +#endif // BACKDROP_H diff --git a/HwpFile/HwpDoc/Chart/Bar.cpp b/HwpFile/HwpDoc/Chart/Bar.cpp new file mode 100644 index 0000000000..b87178755d --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Bar.cpp @@ -0,0 +1,9 @@ +#include "Bar.h" + +namespace HWP { namespace CHART +{ +CBar::CBar() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/Bar.h b/HwpFile/HwpDoc/Chart/Bar.h new file mode 100644 index 0000000000..8918561b0d --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Bar.h @@ -0,0 +1,17 @@ +#ifndef BAR_H +#define BAR_H + +#include "../Common/Common.h" + +namespace HWP { namespace CHART +{ +class CBar +{ + int m_nSides; + SINGLE m_snTopRatio; +public: + CBar(); +}; +}} + +#endif // BAR_H diff --git a/HwpFile/HwpDoc/Chart/Brush.cpp b/HwpFile/HwpDoc/Chart/Brush.cpp new file mode 100644 index 0000000000..9357b728a8 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Brush.cpp @@ -0,0 +1,9 @@ +#include "Brush.h" + +namespace HWP { namespace CHART +{ +CBrush::CBrush() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/Brush.h b/HwpFile/HwpDoc/Chart/Brush.h new file mode 100644 index 0000000000..2016a790e8 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Brush.h @@ -0,0 +1,19 @@ +#ifndef BRUSH_H +#define BRUSH_H + +#include "VtColor.h" + +namespace HWP { namespace CHART +{ +class CBrush +{ + CVtColor m_oFillColor; + int m_nIndex; + CVtColor m_oPatternColor; + int m_nStyle; +public: + CBrush(); +}; +}} + +#endif // BRUSH_H diff --git a/HwpFile/HwpDoc/Chart/CategoryScale.cpp b/HwpFile/HwpDoc/Chart/CategoryScale.cpp new file mode 100644 index 0000000000..ffbde875aa --- /dev/null +++ b/HwpFile/HwpDoc/Chart/CategoryScale.cpp @@ -0,0 +1,9 @@ +#include "CategoryScale.h" + +namespace HWP { namespace CHART +{ +CCategoryScale::CCategoryScale() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/CategoryScale.h b/HwpFile/HwpDoc/Chart/CategoryScale.h new file mode 100644 index 0000000000..886f385a83 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/CategoryScale.h @@ -0,0 +1,17 @@ +#ifndef CATEGORYSCALE_H +#define CATEGORYSCALE_H + +namespace HWP { namespace CHART +{ +class CCategoryScale +{ + bool m_bAuto; + int m_nDivisionsPerLabel; + int m_nDivisionsPerTick; + bool m_bLabelTick; +public: + CCategoryScale(); +}; +}} + +#endif // CATEGORYSCALE_H diff --git a/HwpFile/HwpDoc/Chart/ChartObject.h b/HwpFile/HwpDoc/Chart/ChartObject.h new file mode 100644 index 0000000000..7f56527867 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/ChartObject.h @@ -0,0 +1,20 @@ +#ifndef CHARTOBJECT_H +#define CHARTOBJECT_H + +#include "Types.h" +#include "../Common/Common.h" + +namespace HWP { namespace CHART +{ + class IChartObject + { + long m_lId; + long m_lStoredtypeId; + protected: + IChartObject() = default; + public: + virtual ETypes GetType() const = 0; + }; +}} + +#endif // CHARTOBJECT_H diff --git a/HwpFile/HwpDoc/Chart/Contour.cpp b/HwpFile/HwpDoc/Chart/Contour.cpp new file mode 100644 index 0000000000..82a5bede73 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Contour.cpp @@ -0,0 +1,9 @@ +#include "Contour.h" + +namespace HWP { namespace CHART +{ +CContour::CContour() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/Contour.h b/HwpFile/HwpDoc/Chart/Contour.h new file mode 100644 index 0000000000..68c5a319db --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Contour.h @@ -0,0 +1,14 @@ +#ifndef CONTOUR_H +#define CONTOUR_H + +namespace HWP { namespace CHART +{ +class CContour +{ + int m_nDisplayType; +public: + CContour(); +}; +}} + +#endif // CONTOUR_H diff --git a/HwpFile/HwpDoc/Chart/ContourGradient.cpp b/HwpFile/HwpDoc/Chart/ContourGradient.cpp new file mode 100644 index 0000000000..fee8bfc742 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/ContourGradient.cpp @@ -0,0 +1,9 @@ +#include "ContourGradient.h" + +namespace HWP { namespace CHART +{ +CContourGradient::CContourGradient() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/ContourGradient.h b/HwpFile/HwpDoc/Chart/ContourGradient.h new file mode 100644 index 0000000000..a93da3863e --- /dev/null +++ b/HwpFile/HwpDoc/Chart/ContourGradient.h @@ -0,0 +1,19 @@ +#ifndef CONTOURGRADIENT_H +#define CONTOURGRADIENT_H + +#include "VtColor.h" + +namespace HWP { namespace CHART +{ +class CContourGradient +{ + CVtColor m_oFromBrushColor; + CVtColor m_oToBrushColor; + CVtColor m_oFromPenColor; + CVtColor m_oToPenColor; +public: + CContourGradient(); +}; +}} + +#endif // CONTOURGRADIENT_H diff --git a/HwpFile/HwpDoc/Chart/Coor.cpp b/HwpFile/HwpDoc/Chart/Coor.cpp new file mode 100644 index 0000000000..baf55f6cbc --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Coor.cpp @@ -0,0 +1,9 @@ +#include "Coor.h" + +namespace HWP { namespace CHART +{ +CCoor::CCoor() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/Coor.h b/HwpFile/HwpDoc/Chart/Coor.h new file mode 100644 index 0000000000..fbc3179a42 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Coor.h @@ -0,0 +1,17 @@ +#ifndef COOR_H +#define COOR_H + +#include "../Common/Common.h" + +namespace HWP { namespace CHART +{ +class CCoor +{ + SINGLE m_snX; + SINGLE m_snY; +public: + CCoor(); +}; +}} + +#endif // COOR_H diff --git a/HwpFile/HwpDoc/Chart/Coor3.cpp b/HwpFile/HwpDoc/Chart/Coor3.cpp new file mode 100644 index 0000000000..c5eda9ba2e --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Coor3.cpp @@ -0,0 +1,9 @@ +#include "Coor3.h" + +namespace HWP { namespace CHART +{ +CCoor3::CCoor3() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/Coor3.h b/HwpFile/HwpDoc/Chart/Coor3.h new file mode 100644 index 0000000000..b4c60fa30f --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Coor3.h @@ -0,0 +1,18 @@ +#ifndef COOR3_H +#define COOR3_H + +#include "../Common/Common.h" + +namespace HWP { namespace CHART +{ +class CCoor3 +{ + SINGLE m_snX; + SINGLE m_snY; + SINGLE m_snZ; +public: + CCoor3(); +}; +}} + +#endif // COOR3_H diff --git a/HwpFile/HwpDoc/Chart/DataGrid.cpp b/HwpFile/HwpDoc/Chart/DataGrid.cpp new file mode 100644 index 0000000000..d3744bf2e2 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/DataGrid.cpp @@ -0,0 +1,9 @@ +#include "DataGrid.h" + +namespace HWP { namespace CHART +{ +CDataGrid::CDataGrid() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/DataGrid.h b/HwpFile/HwpDoc/Chart/DataGrid.h new file mode 100644 index 0000000000..fe2bc3144c --- /dev/null +++ b/HwpFile/HwpDoc/Chart/DataGrid.h @@ -0,0 +1,23 @@ +#ifndef DATAGRID_H +#define DATAGRID_H + +#include "../Common/Common.h" + +namespace HWP { namespace CHART +{ +class CDataGrid +{ + int m_nColumnCount; + HWP_STRING m_sColumnLabel; + int m_nColumnLabelCount; + int m_nCompositeColumnLabel; + HWP_STRING m_sCompositeRowLabel; + int m_nRowCount; + HWP_STRING m_sRowLabel; + int m_nRowLabelCount; +public: + CDataGrid(); +}; +}} + +#endif // DATAGRID_H diff --git a/HwpFile/HwpDoc/Chart/DataPoint.cpp b/HwpFile/HwpDoc/Chart/DataPoint.cpp new file mode 100644 index 0000000000..624cd06ff4 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/DataPoint.cpp @@ -0,0 +1,14 @@ +#include "DataPoint.h" + +namespace HWP { namespace CHART +{ +CDataPointLabel::CDataPointLabel() +{ + +} + +CDataPoint::CDataPoint() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/DataPoint.h b/HwpFile/HwpDoc/Chart/DataPoint.h new file mode 100644 index 0000000000..38b372ea83 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/DataPoint.h @@ -0,0 +1,48 @@ +#ifndef DATAPOINT_H +#define DATAPOINT_H + +#include "Backdrop.h" +#include "Coor.h" +#include "TextLayout.h" +#include "VtFont.h" +#include "Pen.h" +#include "Marker.h" +#include "Brush.h" +#include "VtPicture.h" + +namespace HWP { namespace CHART +{ +class CDataPointLabel +{ + CBackdrop m_oBackdrop; + int m_nComponent; + bool m_bCustom; + int m_nLineStyle; + int m_nLocationType; + CCoor m_oOffset; + HWP_STRING m_sPercentFormat; + HWP_STRING m_sText; + CTextLayout m_oTextLayout; + int m_nTextLength; + HWP_STRING m_sValueFormat; + CVtFont m_oVtFont; +public: + CDataPointLabel(); +}; + +class CDataPoint +{ + CBrush m_oBrush; + CDataPointLabel m_oDataPointLabel; + CPen m_oEdgePen; + SINGLE m_snOffset; + CMarker m_oMarker; + CVtPicture m_oVtPicture; +public: + CDataPoint(); +}; + +using CDataPoints = ICollection; +}} + +#endif // DATAPOINT_H diff --git a/HwpFile/HwpDoc/Chart/DateScale.cpp b/HwpFile/HwpDoc/Chart/DateScale.cpp new file mode 100644 index 0000000000..cbb9c7980e --- /dev/null +++ b/HwpFile/HwpDoc/Chart/DateScale.cpp @@ -0,0 +1,9 @@ +#include "DateScale.h" + +namespace HWP { namespace CHART +{ +CDateScale::CDateScale() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/DateScale.h b/HwpFile/HwpDoc/Chart/DateScale.h new file mode 100644 index 0000000000..21bba990ca --- /dev/null +++ b/HwpFile/HwpDoc/Chart/DateScale.h @@ -0,0 +1,21 @@ +#ifndef DATESCALE_H +#define DATESCALE_H + +namespace HWP { namespace CHART +{ +class CDateScale +{ + bool m_bAuto; + int m_nMajFreq; + int m_nMajInt; + double m_dMaximum; + double m_dMinimum; + int m_nMinFreq; + int m_nMinInt; + bool m_bSkipWeekend; +public: + CDateScale(); +}; +}} + +#endif // DATESCALE_H diff --git a/HwpFile/HwpDoc/Chart/Doughnut.cpp b/HwpFile/HwpDoc/Chart/Doughnut.cpp new file mode 100644 index 0000000000..e4899514d6 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Doughnut.cpp @@ -0,0 +1,9 @@ +#include "Doughnut.h" + +namespace HWP { namespace CHART +{ +CDoughnut::CDoughnut() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/Doughnut.h b/HwpFile/HwpDoc/Chart/Doughnut.h new file mode 100644 index 0000000000..713faa2bb0 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Doughnut.h @@ -0,0 +1,17 @@ +#ifndef DOUGHNUT_H +#define DOUGHNUT_H + +#include "../Common/Common.h" + +namespace HWP { namespace CHART +{ +class CDoughnut +{ + int m_nSides; + SINGLE m_snInteriorRatio; +public: + CDoughnut(); +}; +}} + +#endif // DOUGHNUT_H diff --git a/HwpFile/HwpDoc/Chart/Elevation.cpp b/HwpFile/HwpDoc/Chart/Elevation.cpp new file mode 100644 index 0000000000..3b0facc95c --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Elevation.cpp @@ -0,0 +1,9 @@ +#include "Elevation.h" + +namespace HWP { namespace CHART +{ +CElevation::CElevation() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/Elevation.h b/HwpFile/HwpDoc/Chart/Elevation.h new file mode 100644 index 0000000000..dead691fbc --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Elevation.h @@ -0,0 +1,27 @@ +#ifndef ELEVATION_H +#define ELEVATION_H + +#include "Attribute.h" +#include "Contour.h" +#include "ContourGradient.h" +#include "Surface.h" + +namespace HWP { namespace CHART +{ +class CElevation +{ + CAttributes m_oAttributes; + bool m_bAutoValues; + int m_nColorType; + int m_nColSmoothing; + CContour m_oContour; + CContourGradient m_oContourGradient; + int m_nRowSmoothing; + bool m_bSeparateContourData; + CSurface m_oSurface; +public: + CElevation(); +}; +}} + +#endif // ELEVATION_H diff --git a/HwpFile/HwpDoc/Chart/Fill.cpp b/HwpFile/HwpDoc/Chart/Fill.cpp new file mode 100644 index 0000000000..0d7919d1fe --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Fill.cpp @@ -0,0 +1,9 @@ +#include "Fill.h" + +namespace HWP { namespace CHART +{ +CFill::CFill() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/Fill.h b/HwpFile/HwpDoc/Chart/Fill.h new file mode 100644 index 0000000000..05cada3d66 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Fill.h @@ -0,0 +1,25 @@ +#ifndef FILL_H +#define FILL_H + +#include "Brush.h" +#include "Gradient.h" +#include "VtPicture.h" + +namespace HWP { namespace CHART +{ +class CFill +{ + CBrush m_oBrush; + // union + // { + // CGradient m_oGradient; + // CVtPicture m_oPicture; + // } m_oGradient; + int m_nStyle; + CVtPicture m_oVtPicture; +public: + CFill(); +}; +}} + +#endif // FILL_H diff --git a/HwpFile/HwpDoc/Chart/Footnote.cpp b/HwpFile/HwpDoc/Chart/Footnote.cpp new file mode 100644 index 0000000000..5a859d8605 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Footnote.cpp @@ -0,0 +1,9 @@ +#include "Footnote.h" + +namespace HWP { namespace CHART +{ +CFootnote::CFootnote() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/Footnote.h b/HwpFile/HwpDoc/Chart/Footnote.h new file mode 100644 index 0000000000..3c97517f19 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Footnote.h @@ -0,0 +1,24 @@ +#ifndef FOOTNOTE_H +#define FOOTNOTE_H + +#include "Backdrop.h" +#include "Location.h" +#include "TextLayout.h" +#include "VtFont.h" + +namespace HWP { namespace CHART +{ +class CFootnote +{ + CBackdrop m_oBackdrop; + CLocation m_oLocation; + HWP_STRING m_sText; + CTextLayout m_oTextLayout; + int m_nTextLength; + CVtFont m_oVtFont; +public: + CFootnote(); +}; +}} + +#endif // FOOTNOTE_H diff --git a/HwpFile/HwpDoc/Chart/Frame.cpp b/HwpFile/HwpDoc/Chart/Frame.cpp new file mode 100644 index 0000000000..e45a6c7063 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Frame.cpp @@ -0,0 +1,9 @@ +#include "Frame.h" + +namespace HWP { namespace CHART +{ +CFrame::CFrame() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/Frame.h b/HwpFile/HwpDoc/Chart/Frame.h new file mode 100644 index 0000000000..86b7886564 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Frame.h @@ -0,0 +1,19 @@ +#ifndef FRAME_H +#define FRAME_H + +#include "VtColor.h" + +namespace HWP { namespace CHART +{ +class CFrame +{ + int m_nStyle; + SINGLE m_snWidth; + CVtColor m_oFrameColor; + CVtColor m_oSpaceColor; +public: + CFrame(); +}; +}} + +#endif // FRAME_H diff --git a/HwpFile/HwpDoc/Chart/Gradient.cpp b/HwpFile/HwpDoc/Chart/Gradient.cpp new file mode 100644 index 0000000000..2c72a6da55 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Gradient.cpp @@ -0,0 +1,9 @@ +#include "Gradient.h" + +namespace HWP { namespace CHART +{ +CGradient::CGradient() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/Gradient.h b/HwpFile/HwpDoc/Chart/Gradient.h new file mode 100644 index 0000000000..1a2a7719bc --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Gradient.h @@ -0,0 +1,18 @@ +#ifndef GRADIENT_H +#define GRADIENT_H + +#include "VtColor.h" + +namespace HWP { namespace CHART +{ +class CGradient +{ + CVtColor m_oFromColor; + int m_nStyle; + CVtColor m_oToColor; +public: + CGradient(); +}; +}} + +#endif // GRADIENT_H diff --git a/HwpFile/HwpDoc/Chart/HiLo.cpp b/HwpFile/HwpDoc/Chart/HiLo.cpp new file mode 100644 index 0000000000..26b21cbeb7 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/HiLo.cpp @@ -0,0 +1,9 @@ +#include "HiLo.h" + +namespace HWP { namespace CHART +{ +CHiLo::CHiLo() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/HiLo.h b/HwpFile/HwpDoc/Chart/HiLo.h new file mode 100644 index 0000000000..51fa06100e --- /dev/null +++ b/HwpFile/HwpDoc/Chart/HiLo.h @@ -0,0 +1,17 @@ +#ifndef HILO_H +#define HILO_H + +#include "VtColor.h" + +namespace HWP { namespace CHART +{ +class CHiLo +{ + CVtColor m_oGainColor; + CVtColor m_oLossColor; +public: + CHiLo(); +}; +}} + +#endif // HILO_H diff --git a/HwpFile/HwpDoc/Chart/Intersection.cpp b/HwpFile/HwpDoc/Chart/Intersection.cpp new file mode 100644 index 0000000000..e15e675c40 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Intersection.cpp @@ -0,0 +1,9 @@ +#include "Intersection.h" + +namespace HWP { namespace CHART +{ +CIntersection::CIntersection() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/Intersection.h b/HwpFile/HwpDoc/Chart/Intersection.h new file mode 100644 index 0000000000..628fe18f2a --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Intersection.h @@ -0,0 +1,18 @@ +#ifndef INTERSECTION_H +#define INTERSECTION_H + +namespace HWP { namespace CHART +{ +class CIntersection +{ + bool m_bAuto; + int m_nAxisId; + int m_nIndex; + bool m_bLabelsInsidePlot; + double m_dPoint; +public: + CIntersection(); +}; +}} + +#endif // INTERSECTION_H diff --git a/HwpFile/HwpDoc/Chart/LCoor.cpp b/HwpFile/HwpDoc/Chart/LCoor.cpp new file mode 100644 index 0000000000..befa9307d6 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/LCoor.cpp @@ -0,0 +1,9 @@ +#include "LCoor.h" + +namespace HWP { namespace CHART +{ +CLCoor::CLCoor() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/LCoor.h b/HwpFile/HwpDoc/Chart/LCoor.h new file mode 100644 index 0000000000..e035fc1bf2 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/LCoor.h @@ -0,0 +1,15 @@ +#ifndef LCOOR_H +#define LCOOR_H + +namespace HWP { namespace CHART +{ +class CLCoor +{ + long m_lX; + long m_lY; +public: + CLCoor(); +}; +}} + +#endif // LCOOR_H diff --git a/HwpFile/HwpDoc/Chart/LRect.cpp b/HwpFile/HwpDoc/Chart/LRect.cpp new file mode 100644 index 0000000000..0e66ef9bd4 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/LRect.cpp @@ -0,0 +1,9 @@ +#include "LRect.h" + +namespace HWP { namespace CHART +{ +CLRect::CLRect() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/LRect.h b/HwpFile/HwpDoc/Chart/LRect.h new file mode 100644 index 0000000000..7bf2a62c57 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/LRect.h @@ -0,0 +1,17 @@ +#ifndef LRECT_H +#define LRECT_H + +#include "Coor.h" + +namespace HWP { namespace CHART +{ +class CLRect +{ + CCoor m_oMax; + CCoor m_oMin; +public: + CLRect(); +}; +}} + +#endif // LRECT_H diff --git a/HwpFile/HwpDoc/Chart/Label.cpp b/HwpFile/HwpDoc/Chart/Label.cpp new file mode 100644 index 0000000000..a0ab1277e9 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Label.cpp @@ -0,0 +1,9 @@ +#include "Label.h" + +namespace HWP { namespace CHART +{ +CLabel::CLabel() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/Label.h b/HwpFile/HwpDoc/Chart/Label.h new file mode 100644 index 0000000000..03bf24155d --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Label.h @@ -0,0 +1,26 @@ +#ifndef LABEL_H +#define LABEL_H + +#include "Backdrop.h" +#include "TextLayout.h" +#include "VtFont.h" + +namespace HWP { namespace CHART +{ +class CLabel +{ + bool m_bAuto; + CBackdrop m_oBackdrop; + HWP_STRING m_sFormat; + HWP_STRING m_sFormatLength; + bool m_bStanding; + CTextLayout m_oTextLayout; + CVtFont m_oVtFont; +public: + CLabel(); +}; + +using CLabels = ICollection; +}} + +#endif // LABEL_H diff --git a/HwpFile/HwpDoc/Chart/Legend.cpp b/HwpFile/HwpDoc/Chart/Legend.cpp new file mode 100644 index 0000000000..bd262e1769 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Legend.cpp @@ -0,0 +1,9 @@ +#include "Legend.h" + +namespace HWP { namespace CHART +{ +CLegend::CLegend() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/Legend.h b/HwpFile/HwpDoc/Chart/Legend.h new file mode 100644 index 0000000000..89986fe867 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Legend.h @@ -0,0 +1,22 @@ +#ifndef LEGEND_H +#define LEGEND_H + +#include "Backdrop.h" +#include "Location.h" +#include "TextLayout.h" +#include "VtFont.h" + +namespace HWP { namespace CHART +{ +class CLegend +{ + CBackdrop m_oBackdrop; + CLocation m_oLocation; + CTextLayout m_oTextLayout; + CVtFont m_oVtFont; +public: + CLegend(); +}; +}} + +#endif // LEGEND_H diff --git a/HwpFile/HwpDoc/Chart/Light.cpp b/HwpFile/HwpDoc/Chart/Light.cpp new file mode 100644 index 0000000000..bb7e2a579a --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Light.cpp @@ -0,0 +1,14 @@ +#include "Light.h" + +namespace HWP { namespace CHART +{ +CLightSource::CLightSource() +{ + +} + +CLight::CLight() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/Light.h b/HwpFile/HwpDoc/Chart/Light.h new file mode 100644 index 0000000000..0c95f9c595 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Light.h @@ -0,0 +1,31 @@ +#ifndef LIGHT_H +#define LIGHT_H + +#include "../Common/Common.h" + +namespace HWP { namespace CHART +{ +class CLightSource +{ + SINGLE m_snX; + SINGLE m_snY; + SINGLE m_snZ; + SINGLE m_snIntensity; +public: + CLightSource(); +}; + +using CLightSources = ICollection; + +class CLight +{ + SINGLE m_snAmbientIntensity; + SINGLE m_snEdgeIntensity; + bool m_bEdgeVisible; + CLightSources m_oLightSources; +public: + CLight(); +}; +}} + +#endif // LIGHT_H diff --git a/HwpFile/HwpDoc/Chart/Location.cpp b/HwpFile/HwpDoc/Chart/Location.cpp new file mode 100644 index 0000000000..cf000a3785 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Location.cpp @@ -0,0 +1,9 @@ +#include "Location.h" + +namespace HWP { namespace CHART +{ +CLocation::CLocation() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/Location.h b/HwpFile/HwpDoc/Chart/Location.h new file mode 100644 index 0000000000..89ebd861ad --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Location.h @@ -0,0 +1,18 @@ +#ifndef LOCATION_H +#define LOCATION_H + +#include "Rect.h" + +namespace HWP { namespace CHART +{ +class CLocation +{ + int m_nLocationType; + CRect m_oRect; + bool m_bVisible; +public: + CLocation(); +}; +}} + +#endif // LOCATION_H diff --git a/HwpFile/HwpDoc/Chart/Marker.cpp b/HwpFile/HwpDoc/Chart/Marker.cpp new file mode 100644 index 0000000000..ebcdf5c11d --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Marker.cpp @@ -0,0 +1,9 @@ +#include "Marker.h" + +namespace HWP { namespace CHART +{ +CMarker::CMarker() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/Marker.h b/HwpFile/HwpDoc/Chart/Marker.h new file mode 100644 index 0000000000..0d4605492c --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Marker.h @@ -0,0 +1,22 @@ +#ifndef MARKER_H +#define MARKER_H + +#include "Pen.h" +#include "VtPicture.h" + +namespace HWP { namespace CHART +{ +class CMarker +{ + CVtColor m_oFillColor; + CPen m_oPen; + SINGLE m_snSize; + int m_nStyle; + bool m_bVisible; + CVtPicture m_oVtPicture; +public: + CMarker(); +}; +}} + +#endif // MARKER_H diff --git a/HwpFile/HwpDoc/Chart/Pen.cpp b/HwpFile/HwpDoc/Chart/Pen.cpp new file mode 100644 index 0000000000..90190caca4 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Pen.cpp @@ -0,0 +1,9 @@ +#include "Pen.h" + +namespace HWP { namespace CHART +{ +CPen::CPen() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/Pen.h b/HwpFile/HwpDoc/Chart/Pen.h new file mode 100644 index 0000000000..e3e69ef560 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Pen.h @@ -0,0 +1,21 @@ +#ifndef PEN_H +#define PEN_H + +#include "VtColor.h" + +namespace HWP { namespace CHART +{ +class CPen +{ + int m_nCap; + int m_nJoin; + SINGLE m_snLimit; + int m_nStyle; + SINGLE m_snWidth; + CVtColor m_oVtColor; +public: + CPen(); +}; +}} + +#endif // PEN_H diff --git a/HwpFile/HwpDoc/Chart/Pie.cpp b/HwpFile/HwpDoc/Chart/Pie.cpp new file mode 100644 index 0000000000..69859cbf56 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Pie.cpp @@ -0,0 +1,9 @@ +#include "Pie.h" + +namespace HWP { namespace CHART +{ +CPie::CPie() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/Pie.h b/HwpFile/HwpDoc/Chart/Pie.h new file mode 100644 index 0000000000..21db86ef42 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Pie.h @@ -0,0 +1,17 @@ +#ifndef PIE_H +#define PIE_H + +#include "../Common/Common.h" + +namespace HWP { namespace CHART +{ +class CPie +{ + SINGLE m_snThicknessRatio; + SINGLE m_snTopRadiusRatio; +public: + CPie(); +}; +}} + +#endif // PIE_H diff --git a/HwpFile/HwpDoc/Chart/Plot.cpp b/HwpFile/HwpDoc/Chart/Plot.cpp new file mode 100644 index 0000000000..097704bc7e --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Plot.cpp @@ -0,0 +1,14 @@ +#include "Plot.h" + +namespace HWP { namespace CHART +{ +CPlotBase::CPlotBase() +{ + +} + +CPlot::CPlot() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/Plot.h b/HwpFile/HwpDoc/Chart/Plot.h new file mode 100644 index 0000000000..7ce4b2b246 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Plot.h @@ -0,0 +1,69 @@ +#ifndef PLOT_H +#define PLOT_H + +#include "Brush.h" +#include "Pen.h" + +#include "Axis.h" +#include "Coor.h" +#include "Elevation.h" +#include "Light.h" +#include "Rect.h" +#include "Coor3.h" +#include "Pie.h" +#include "Series.h" +#include "View3D.h" +#include "Wall.h" +#include "Weighting.h" +#include "XYZ.h" + +namespace HWP { namespace CHART +{ +class CPlotBase +{ + CBrush m_oBrush; + SINGLE m_snBaseHeight; + CPen m_oPen; +public: + CPlotBase(); +}; + +class CPlot +{ + int m_nAngleUnit; + bool m_bAutoLayout; + CAxis m_oAxis; + CBackdrop m_oBackdrop; + SINGLE m_snBarGap; + bool m_bClockwise; + bool m_bDataSeriesInRow; + int m_nDefaultPercentBasis; + SINGLE m_snDepthToHeightRatio; + CCoor m_oDoughnut; + CElevation m_oElevation; + CLight m_oLight; + CRect m_oLocationRect; + SINGLE m_snMaxBubbleToAxisRatio; + CCoor3 m_oPerspective; + CPie m_oPie; + CPlotBase m_oPlotBase; + int m_nProjection; + SINGLE m_snScaleAngle; + CSeries m_oSeries; + int m_nSort; + SINGLE m_snStartingAngle; + int m_nSubPlotLabelPosition; + bool m_bUniformAxis; + CView3D m_oView3D; + CWall m_oWall; + SINGLE m_snWidthToHeightRatio; + CWeighting m_oWeighting; + SINGLE m_snxGap; + CXYZ m_oXYZ; + SINGLE m_snzGap; +public: + CPlot(); +}; +}} + +#endif // PLOT_H diff --git a/HwpFile/HwpDoc/Chart/Position.cpp b/HwpFile/HwpDoc/Chart/Position.cpp new file mode 100644 index 0000000000..817b5bd6a1 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Position.cpp @@ -0,0 +1,9 @@ +#include "Position.h" + +namespace HWP { namespace CHART +{ +CPosition::CPosition() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/Position.h b/HwpFile/HwpDoc/Chart/Position.h new file mode 100644 index 0000000000..a3544e798d --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Position.h @@ -0,0 +1,17 @@ +#ifndef POSITION_H +#define POSITION_H + +namespace HWP { namespace CHART +{ +class CPosition +{ + bool m_bExcluded; + bool m_bHidden; + int m_nOrder; + int m_nStackOrder; +public: + CPosition(); +}; +}} + +#endif // POSITION_H diff --git a/HwpFile/HwpDoc/Chart/PrintInformation.cpp b/HwpFile/HwpDoc/Chart/PrintInformation.cpp new file mode 100644 index 0000000000..588fdc6a41 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/PrintInformation.cpp @@ -0,0 +1,9 @@ +#include "PrintInformation.h" + +namespace HWP { namespace CHART +{ +CPrintInformation::CPrintInformation() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/PrintInformation.h b/HwpFile/HwpDoc/Chart/PrintInformation.h new file mode 100644 index 0000000000..689f3d66be --- /dev/null +++ b/HwpFile/HwpDoc/Chart/PrintInformation.h @@ -0,0 +1,25 @@ +#ifndef PRINTINFORMATION_H +#define PRINTINFORMATION_H + +#include "../Common/Common.h" + +namespace HWP { namespace CHART +{ +class CPrintInformation +{ + SINGLE m_snBottomMargin; + bool m_bCenterHorizontally; + bool m_bCenterVertically; + bool m_bLayoutForPrinter; + SINGLE m_snLeftMargin; + bool m_bMonochrome; + int m_nOrientation; + SINGLE m_snRightMargin; + int m_nScaleType; + SINGLE m_snTopMargin; +public: + CPrintInformation(); +}; +}} + +#endif // PRINTINFORMATION_H diff --git a/HwpFile/HwpDoc/Chart/Rect.cpp b/HwpFile/HwpDoc/Chart/Rect.cpp new file mode 100644 index 0000000000..55d2739a48 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Rect.cpp @@ -0,0 +1,9 @@ +#include "Rect.h" + +namespace HWP { namespace CHART +{ +CRect::CRect() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/Rect.h b/HwpFile/HwpDoc/Chart/Rect.h new file mode 100644 index 0000000000..c2f874b193 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Rect.h @@ -0,0 +1,17 @@ +#ifndef RECT_H +#define RECT_H + +#include "Coor.h" + +namespace HWP { namespace CHART +{ +class CRect +{ + CCoor m_oMin; + CCoor m_oMax; +public: + CRect(); +}; +}} + +#endif // RECT_H diff --git a/HwpFile/HwpDoc/Chart/Series.cpp b/HwpFile/HwpDoc/Chart/Series.cpp new file mode 100644 index 0000000000..f2d25de5c4 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Series.cpp @@ -0,0 +1,19 @@ +#include "Series.h" + +namespace HWP { namespace CHART +{ +CSeriesLabel::CSeriesLabel() +{ + +} + +CSeriesMarker::CSeriesMarker() +{ + +} + +CSeries::CSeries() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/Series.h b/HwpFile/HwpDoc/Chart/Series.h new file mode 100644 index 0000000000..f52b491238 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Series.h @@ -0,0 +1,58 @@ +#ifndef SERIES_H +#define SERIES_H + +#include "Bar.h" +#include "DataPoint.h" +#include "Pen.h" +#include "HiLo.h" +#include "Position.h" +#include "StatLine.h" + +namespace HWP { namespace CHART +{ +class CSeriesLabel +{ + CBackdrop m_oBackdrop; + int m_nLineStyle; + int m_nLocationType; + CCoor m_oOffset; + HWP_STRING m_sText; + CTextLayout m_oTextLayout; + SINGLE m_snTextLength; + CVtFont m_oVtFont; +public: + CSeriesLabel(); +}; + +class CSeriesMarker +{ + bool m_bAuto; + bool m_bShow; +public: + CSeriesMarker(); +}; + +class CSeries +{ + CBar m_oBar; + CDataPoints m_oDataPoints; + CPen m_oGuidelinePen; + CHiLo m_oHiLo; + HWP_STRING m_sLegendText; + CPen m_oPen; + CPosition m_oPosition; + bool m_bSecondaryAxis; + CSeriesLabel m_oSeriesLabel; + CSeriesMarker m_oSeriesMarker; + int m_nSeriesType; + bool m_bShowGuideLines; + bool m_bShowLine; + int m_nSmoothingFactor; + int m_nSmoothingType; + CStatLine m_oStatLine; +public: + CSeries(); +}; +}} + +#endif // SERIES_H diff --git a/HwpFile/HwpDoc/Chart/Shadow.cpp b/HwpFile/HwpDoc/Chart/Shadow.cpp new file mode 100644 index 0000000000..8cd965fb47 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Shadow.cpp @@ -0,0 +1,9 @@ +#include "Shadow.h" + +namespace HWP { namespace CHART +{ +CShadow::CShadow() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/Shadow.h b/HwpFile/HwpDoc/Chart/Shadow.h new file mode 100644 index 0000000000..67bcc09d25 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Shadow.h @@ -0,0 +1,19 @@ +#ifndef SHADOW_H +#define SHADOW_H + +#include "Brush.h" +#include "Coor.h" + +namespace HWP { namespace CHART +{ +class CShadow +{ + CBrush m_oBrush; + CCoor m_oOffset; + int m_nStyle; +public: + CShadow(); +}; +}} + +#endif // SHADOW_H diff --git a/HwpFile/HwpDoc/Chart/StatLine.cpp b/HwpFile/HwpDoc/Chart/StatLine.cpp new file mode 100644 index 0000000000..5ee4221f45 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/StatLine.cpp @@ -0,0 +1,9 @@ +#include "StatLine.h" + +namespace HWP { namespace CHART +{ +CStatLine::CStatLine() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/StatLine.h b/HwpFile/HwpDoc/Chart/StatLine.h new file mode 100644 index 0000000000..b8f505fb36 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/StatLine.h @@ -0,0 +1,19 @@ +#ifndef STATLINE_H +#define STATLINE_H + +#include "VtColor.h" + +namespace HWP { namespace CHART +{ +class CStatLine +{ + int m_nFlags; + int m_nStyle; + CVtColor m_oVtColor; + SINGLE m_snWidth; +public: + CStatLine(); +}; +}} + +#endif // STATLINE_H diff --git a/HwpFile/HwpDoc/Chart/Surface.cpp b/HwpFile/HwpDoc/Chart/Surface.cpp new file mode 100644 index 0000000000..a9b86b1ce6 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Surface.cpp @@ -0,0 +1,9 @@ +#include "Surface.h" + +namespace HWP { namespace CHART +{ +CSurface::CSurface() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/Surface.h b/HwpFile/HwpDoc/Chart/Surface.h new file mode 100644 index 0000000000..11b134da20 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Surface.h @@ -0,0 +1,23 @@ +#ifndef SURFACE_H +#define SURFACE_H + +#include "Brush.h" +#include "Pen.h" + +namespace HWP { namespace CHART +{ +class CSurface +{ + int m_nBase; + CBrush m_oBrush; + int m_nColWireframe; + int m_nDisplayType; + int m_nProjection; + int m_nRowWireframe; + CPen m_oWireframePen; +public: + CSurface(); +}; +}} + +#endif // SURFACE_H diff --git a/HwpFile/HwpDoc/Chart/TextLayout.cpp b/HwpFile/HwpDoc/Chart/TextLayout.cpp new file mode 100644 index 0000000000..c82bdd9b84 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/TextLayout.cpp @@ -0,0 +1,9 @@ +#include "TextLayout.h" + +namespace HWP { namespace CHART +{ +CTextLayout::CTextLayout() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/TextLayout.h b/HwpFile/HwpDoc/Chart/TextLayout.h new file mode 100644 index 0000000000..34b6d831d6 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/TextLayout.h @@ -0,0 +1,17 @@ +#ifndef TEXTLAYOUT_H +#define TEXTLAYOUT_H + +namespace HWP { namespace CHART +{ +class CTextLayout +{ + bool m_bWordWrap; + int m_nHorzAlignment; + int m_nOrientation; + int m_nVertAlignment; +public: + CTextLayout(); +}; +}} + +#endif // TEXTLAYOUT_H diff --git a/HwpFile/HwpDoc/Chart/Tick.cpp b/HwpFile/HwpDoc/Chart/Tick.cpp new file mode 100644 index 0000000000..fa244ac052 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Tick.cpp @@ -0,0 +1,9 @@ +#include "Tick.h" + +namespace HWP { namespace CHART +{ +CTick::CTick() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/Tick.h b/HwpFile/HwpDoc/Chart/Tick.h new file mode 100644 index 0000000000..4669e80cae --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Tick.h @@ -0,0 +1,17 @@ +#ifndef TICK_H +#define TICK_H + +#include "../Common/Common.h" + +namespace HWP { namespace CHART +{ +class CTick +{ + SINGLE m_snLength; + int m_nStyle; +public: + CTick(); +}; +}} + +#endif // TICK_H diff --git a/HwpFile/HwpDoc/Chart/Title.cpp b/HwpFile/HwpDoc/Chart/Title.cpp new file mode 100644 index 0000000000..92d78a656e --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Title.cpp @@ -0,0 +1,9 @@ +#include "Title.h" + +namespace HWP { namespace CHART +{ +CTitle::CTitle() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/Title.h b/HwpFile/HwpDoc/Chart/Title.h new file mode 100644 index 0000000000..11b570d537 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Title.h @@ -0,0 +1,24 @@ +#ifndef TITLE_H +#define TITLE_H + +#include "Backdrop.h" +#include "Location.h" +#include "TextLayout.h" +#include "VtFont.h" + +namespace HWP { namespace CHART +{ +class CTitle +{ + CBackdrop m_oBackdrop; + CLocation m_oLocation; + HWP_STRING m_sText; + CTextLayout m_oTextLayout; + int m_nTextLength; + CVtFont m_oVtFont; +public: + CTitle(); +}; +}} + +#endif // TITLE_H diff --git a/HwpFile/HwpDoc/Chart/Types.h b/HwpFile/HwpDoc/Chart/Types.h new file mode 100644 index 0000000000..0193118a41 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Types.h @@ -0,0 +1,14 @@ +#ifndef TYPES_H +#define TYPES_H + +namespace HWP { namespace CHART +{ +enum class ETypes +{ + VtChart, + VtColor, + VtFont, + VtPicture +}; +}} +#endif // TYPES_H diff --git a/HwpFile/HwpDoc/Chart/ValueScale.cpp b/HwpFile/HwpDoc/Chart/ValueScale.cpp new file mode 100644 index 0000000000..400def973e --- /dev/null +++ b/HwpFile/HwpDoc/Chart/ValueScale.cpp @@ -0,0 +1,9 @@ +#include "ValueScale.h" + +namespace HWP { namespace CHART +{ +CValueScale::CValueScale() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/ValueScale.h b/HwpFile/HwpDoc/Chart/ValueScale.h new file mode 100644 index 0000000000..b33b3e365c --- /dev/null +++ b/HwpFile/HwpDoc/Chart/ValueScale.h @@ -0,0 +1,18 @@ +#ifndef VALUESCALE_H +#define VALUESCALE_H + +namespace HWP { namespace CHART +{ +class CValueScale +{ + bool m_bAuto; + int m_nMajorDivision; + double m_dMaximum; + double m_dMinimum; + int m_nMinorDivision; +public: + CValueScale(); +}; +}} + +#endif // VALUESCALE_H diff --git a/HwpFile/HwpDoc/Chart/View3D.cpp b/HwpFile/HwpDoc/Chart/View3D.cpp new file mode 100644 index 0000000000..2ce0ad2809 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/View3D.cpp @@ -0,0 +1,9 @@ +#include "View3D.h" + +namespace HWP { namespace CHART +{ +CView3D::CView3D() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/View3D.h b/HwpFile/HwpDoc/Chart/View3D.h new file mode 100644 index 0000000000..a7a6c3d533 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/View3D.h @@ -0,0 +1,16 @@ +#ifndef VIEW3D_H +#define VIEW3D_H + +#include "../Common/Common.h" + +namespace HWP { namespace CHART +{ +class CView3D +{ + SINGLE m_snElevation; + SINGLE m_snRotation; +public: + CView3D(); +}; +}} +#endif // VIEW3D_H diff --git a/HwpFile/HwpDoc/Chart/VtChart.cpp b/HwpFile/HwpDoc/Chart/VtChart.cpp new file mode 100644 index 0000000000..b8572fac19 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/VtChart.cpp @@ -0,0 +1,14 @@ +#include "VtChart.h" + +namespace HWP { namespace CHART +{ +CVtChart::CVtChart() +{ + +} + +ETypes CVtChart::GetType() const +{ + return ETypes::VtChart; +} +}} diff --git a/HwpFile/HwpDoc/Chart/VtChart.h b/HwpFile/HwpDoc/Chart/VtChart.h new file mode 100644 index 0000000000..8524d50f71 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/VtChart.h @@ -0,0 +1,70 @@ +#ifndef VTCHART_H +#define VTCHART_H + +#include "ChartObject.h" +#include "DataGrid.h" +#include "Footnote.h" +#include "Legend.h" +#include "Plot.h" +#include "PrintInformation.h" +#include "Title.h" + +namespace HWP { namespace CHART +{ +class CVtChart : public IChartObject +{ + int m_nActiveSeriesCount; + bool m_bAllowDithering; + bool m_bAllowDynamicRotation; + bool m_bAllowSelections; + bool m_bAllowSeriesSelection; + bool m_bAllowUserChanges; + bool m_bAutoIncrement; + CBackdrop m_oBackdrop; + bool m_bChart3d; + int m_nChartType; + int m_nColumn; + int m_nColumnCount; + HWP_STRING m_sColumnLabel; + int m_nColumnLabelCount; + int m_nColumnLabelIndex; + HWP_STRING m_sData; + CDataGrid m_oDataGrid; + bool m_bDoSetCursor; + int m_nDrawMode; + int m_nErrorOffset; + HWP_STRING m_sFileName; + CFootnote m_oFootnote; + HWP_STRING m_sFootnoteText; + long m_lHandle; + CLegend m_oLegend; + int m_nPicture; + CPlot m_oPlot; + CPrintInformation m_oPrintInformation; + bool m_bRandomFill; + bool m_bRepaint; + int m_nRow; + int m_nRowCount; + HWP_STRING m_sRowLabel; + int m_nRowLabelCount; + int m_nRowLabelIndex; + int m_nSeriesColumn; + int m_nSeriesType; + bool m_bShowLegend; + int m_nSsLinkMode; + HWP_STRING m_sSsLinkRange; + HWP_STRING m_sSsLinkBook; + bool m_bStacking; + int m_nTextLengthType; + CTitle m_oTitle; + HWP_STRING m_sTitleText; + int m_nTwipsWidth; + int m_nTwipsHeight; +public: + CVtChart(); + + ETypes GetType() const override; +}; +}} + +#endif // VTCHART_H diff --git a/HwpFile/HwpDoc/Chart/VtColor.cpp b/HwpFile/HwpDoc/Chart/VtColor.cpp new file mode 100644 index 0000000000..4f5dfd20b0 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/VtColor.cpp @@ -0,0 +1,14 @@ +#include "VtColor.h" + +namespace HWP { namespace CHART +{ +CVtColor::CVtColor() +{ + +} + +ETypes CVtColor::GetType() const +{ + return ETypes::VtColor; +} +}} diff --git a/HwpFile/HwpDoc/Chart/VtColor.h b/HwpFile/HwpDoc/Chart/VtColor.h new file mode 100644 index 0000000000..a2dbd6be73 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/VtColor.h @@ -0,0 +1,22 @@ +#ifndef VTCOLOR_H +#define VTCOLOR_H + +#include "ChartObject.h" + +namespace HWP { namespace CHART +{ +class CVtColor : public IChartObject +{ + bool m_bAutomatic; + int m_nBlue; + int m_nGreen; + int m_nRed; + int m_nValue; +public: + CVtColor(); + + ETypes GetType() const override; +}; +}} + +#endif // VTCOLOR_H diff --git a/HwpFile/HwpDoc/Chart/VtFont.cpp b/HwpFile/HwpDoc/Chart/VtFont.cpp new file mode 100644 index 0000000000..ba4174b347 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/VtFont.cpp @@ -0,0 +1,14 @@ +#include "VtFont.h" + +namespace HWP { namespace CHART +{ +CVtFont::CVtFont() +{ + +} + +ETypes CVtFont::GetType() const +{ + return ETypes::VtFont; +} +}} diff --git a/HwpFile/HwpDoc/Chart/VtFont.h b/HwpFile/HwpDoc/Chart/VtFont.h new file mode 100644 index 0000000000..7d658644d7 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/VtFont.h @@ -0,0 +1,22 @@ +#ifndef VTFONT_H +#define VTFONT_H + +#include "VtColor.h" + +namespace HWP { namespace CHART +{ +class CVtFont : public IChartObject +{ + CVtColor m_oColor; + int m_nEffects; + HWP_STRING m_sName; + SINGLE m_snSize; + int m_nStyle; +public: + CVtFont(); + + ETypes GetType() const override; +}; +}} + +#endif // VTFONT_H diff --git a/HwpFile/HwpDoc/Chart/VtPicture.cpp b/HwpFile/HwpDoc/Chart/VtPicture.cpp new file mode 100644 index 0000000000..4b1b3f59e4 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/VtPicture.cpp @@ -0,0 +1,14 @@ +#include "VtPicture.h" + +namespace HWP { namespace CHART +{ +CVtPicture::CVtPicture() +{ + +} + +ETypes CVtPicture::GetType() const +{ + return ETypes::VtPicture; +} +}} diff --git a/HwpFile/HwpDoc/Chart/VtPicture.h b/HwpFile/HwpDoc/Chart/VtPicture.h new file mode 100644 index 0000000000..c7bd5d70c5 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/VtPicture.h @@ -0,0 +1,21 @@ +#ifndef VTPICTURE_H +#define VTPICTURE_H + +#include "ChartObject.h" + +namespace HWP { namespace CHART +{ +class CVtPicture : public IChartObject +{ + bool m_bEmbedded; + HWP_STRING m_sFilename; + int m_nMap; + int m_nType; +public: + CVtPicture(); + + ETypes GetType() const override; +}; +}} + +#endif // VTPICTURE_H diff --git a/HwpFile/HwpDoc/Chart/Wall.cpp b/HwpFile/HwpDoc/Chart/Wall.cpp new file mode 100644 index 0000000000..5a59fde68d --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Wall.cpp @@ -0,0 +1,9 @@ +#include "Wall.h" + +namespace HWP { namespace CHART +{ +CWall::CWall() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/Wall.h b/HwpFile/HwpDoc/Chart/Wall.h new file mode 100644 index 0000000000..96edc004ab --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Wall.h @@ -0,0 +1,19 @@ +#ifndef WALL_H +#define WALL_H + +#include "Brush.h" +#include "Pen.h" + +namespace HWP { namespace CHART +{ +class CWall +{ + CBrush m_oBrush; + CPen m_oPen; + SINGLE m_snWidth; +public: + CWall(); +}; +}} + +#endif // WALL_H diff --git a/HwpFile/HwpDoc/Chart/Weighting.cpp b/HwpFile/HwpDoc/Chart/Weighting.cpp new file mode 100644 index 0000000000..8045a55730 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Weighting.cpp @@ -0,0 +1,9 @@ +#include "Weighting.h" + +namespace HWP { namespace CHART +{ +CWeighting::CWeighting() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/Weighting.h b/HwpFile/HwpDoc/Chart/Weighting.h new file mode 100644 index 0000000000..2d736a16e7 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/Weighting.h @@ -0,0 +1,15 @@ +#ifndef WEIGHTING_H +#define WEIGHTING_H + +namespace HWP { namespace CHART +{ +class CWeighting +{ + int m_nBasis; + int m_nStyle; +public: + CWeighting(); +}; +}} + +#endif // WEIGHTING_H diff --git a/HwpFile/HwpDoc/Chart/XYZ.cpp b/HwpFile/HwpDoc/Chart/XYZ.cpp new file mode 100644 index 0000000000..e76ae2ea5f --- /dev/null +++ b/HwpFile/HwpDoc/Chart/XYZ.cpp @@ -0,0 +1,9 @@ +#include "XYZ.h" + +namespace HWP { namespace CHART +{ +CXYZ::CXYZ() +{ + +} +}} diff --git a/HwpFile/HwpDoc/Chart/XYZ.h b/HwpFile/HwpDoc/Chart/XYZ.h new file mode 100644 index 0000000000..87a97f2001 --- /dev/null +++ b/HwpFile/HwpDoc/Chart/XYZ.h @@ -0,0 +1,17 @@ +#ifndef XYZ_H +#define XYZ_H + +namespace HWP { namespace CHART +{ +class CXYZ +{ + bool m_bAutomatic; + double m_dxIntersection; + double m_dyIntersection; + double m_dzIntersection; +public: + CXYZ(); +}; +}} + +#endif // XYZ_H diff --git a/HwpFile/HwpDoc/Common/Common.h b/HwpFile/HwpDoc/Common/Common.h index 58a5db1bb5..0c3609390b 100644 --- a/HwpFile/HwpDoc/Common/Common.h +++ b/HwpFile/HwpDoc/Common/Common.h @@ -11,6 +11,7 @@ namespace HWP typedef char16_t HWP_CHAR; typedef std::wstring HWP_STRING; typedef char HWP_BYTE; +typedef short SINGLE; #define LIST std::list #define VECTOR std::vector @@ -67,5 +68,27 @@ public: return ulRet; } }; + +template +class ICollection +{ + VECTOR m_arItems; +public: + ICollection() = default; + ~ICollection() + { + for (const T* pItem : m_arItems) + delete pItem; + } + + bool AddItem(const T* pItem) + { + if(nullptr == pItem) + return false; + + m_arItems.push_back(pItem); + return true; + } +}; } #endif // COMMON_H