diff options
Diffstat (limited to 'hwpfilter/source')
-rw-r--r-- | hwpfilter/source/drawdef.h | 6 | ||||
-rw-r--r-- | hwpfilter/source/drawing.h | 148 | ||||
-rw-r--r-- | hwpfilter/source/himgutil.h | 10 | ||||
-rw-r--r-- | hwpfilter/source/htags.cpp | 9 | ||||
-rw-r--r-- | hwpfilter/source/htags.h | 9 | ||||
-rw-r--r-- | hwpfilter/source/hwpeq.h | 9 | ||||
-rw-r--r-- | hwpfilter/source/mzstring.cpp | 7 |
7 files changed, 1 insertions, 197 deletions
diff --git a/hwpfilter/source/drawdef.h b/hwpfilter/source/drawdef.h index 56b798dd6d33..f83e5ef9b28f 100644 --- a/hwpfilter/source/drawdef.h +++ b/hwpfilter/source/drawdef.h @@ -26,12 +26,6 @@ * ************************************************************************/ -/* NAME $Id: drawdef.h,v 1.5 2008-04-10 11:58:04 rt Exp $ - * - * HISTORY - * frog - Jan 11, 1999: Created. - */ - #ifndef _DRAWDEF_H_ #define _DRAWDEF_H_ diff --git a/hwpfilter/source/drawing.h b/hwpfilter/source/drawing.h index 4b8fc5f158ee..4607959b6edf 100644 --- a/hwpfilter/source/drawing.h +++ b/hwpfilter/source/drawing.h @@ -29,14 +29,6 @@ #ifndef _DRAWING_H_ #define _DRAWING_H_ -/* NAME - * - * NOTES - * - * HISTORY - * frog - Jan 11, 1999: Created. - * frog - Nov 20, 2000: remove display function, only needed loading object from binary - */ #include "precompile.h" #include <math.h> @@ -193,10 +185,6 @@ static bool SkipUnusedField(void) #define HDOFILE_HAS_NEXT 0x01 #define HDOFILE_HAS_CHILD 0x02 -/** - * о帰. - * ü//ġ/üũ/ġ//⺻Ӽ/ȸӼ/̼/Ʈ - */ static bool LoadCommonHeader(HWPDrawingObject * hdo, WORD * link_info) { uint size, property_size, common_size; @@ -432,85 +420,6 @@ HWPDODefaultFunc(int , HWPDrawingObject * , int cmd, void *, int) } -// arrow polygon - -/* os 06.09.2005: unused function -static void -calcArrowPolygonPts(long lWidth, ZZPoint * arrowPt, -ZZPoint * boxPt, int x1, int y1, int x2, int y2) -{ - long lLength = lWidth; - int dx, dy; - -#if 0 - if (gc->lineWidth > ONE_MILI) - lWidth = lLength = DRPX2(gc->lineWidth) * 2; - else - lWidth = lLength = DRPX2(ARROW_WIDTH); -#endif - - dx = x1 - x2; - dy = y1 - y2; - - if (dx == 0) - { - arrowPt[0].x = x1; - boxPt[3].x = boxPt[0].x = arrowPt[1].x = x1 + lWidth; - boxPt[2].x = boxPt[1].x = arrowPt[2].x = x1 - lWidth; - if (y1 > y2) - { - boxPt[2].y = boxPt[3].y = y1 + lLength * 2 / 3; - arrowPt[0].y = y1 + lLength * 3 / 2; - boxPt[0].y = boxPt[1].y = arrowPt[1].y = arrowPt[2].y = y1 - lLength; - } - else - { - boxPt[0].y = boxPt[1].y = y1 - lLength * 2 / 3; - arrowPt[0].y = y1 - lLength * 3 / 2; - boxPt[2].y = boxPt[3].y = arrowPt[1].y = arrowPt[2].y = y1 + lLength; - } - return; - } - - double rSlope, rRadians; - long DX1, DY1, DX2, DY2; - - rSlope = (double) dy / (double) dx; - rRadians = atan(rSlope); - DX1 = (long) (lLength * cos(rRadians) + 0.5); - DY1 = (long) (lLength * sin(rRadians) + 0.5); - DX2 = (long) (lWidth * sin(rRadians) + 0.5); - DY2 = (long) (lWidth * cos(rRadians) + 0.5); - - if (dx > 0) - { - arrowPt[0].x = (int) (x1 + cos(rRadians) * lLength * 3 / 2); - arrowPt[0].y = (int) (y1 + sin(rRadians) * lLength * 3 / 2); - boxPt[0].x = arrowPt[1].x = x1 - DX1 - DX2; - boxPt[0].y = arrowPt[1].y = y1 - DY1 + DY2; - boxPt[1].x = arrowPt[2].x = x1 - DX1 + DX2; - boxPt[1].y = arrowPt[2].y = y1 - DY1 - DY2; - boxPt[2].x = arrowPt[0].x - DX1 + DX2; - boxPt[2].y = arrowPt[0].y - DY1 - DY2; - boxPt[3].x = arrowPt[0].x - DX1 - DX2; - boxPt[3].y = arrowPt[0].y - DY1 + DY2; - } - else - { - arrowPt[0].x = (int) (x1 - cos(rRadians) * lLength * 3 / 2); - arrowPt[0].y = (int) (y1 - sin(rRadians) * lLength * 3 / 2); - boxPt[0].x = arrowPt[1].x = x1 + DX1 - DX2; - boxPt[0].y = arrowPt[1].y = y1 + DY1 + DY2; - boxPt[1].x = arrowPt[2].x = x1 + DX1 + DX2; - boxPt[1].y = arrowPt[2].y = y1 + DY1 - DY2; - boxPt[3].x = arrowPt[0].x + DX1 - DX2; - boxPt[3].y = arrowPt[0].y + DY1 + DY2; - boxPt[2].x = arrowPt[0].x + DX1 + DX2; - boxPt[2].y = arrowPt[0].y + DY1 - DY2; - } -} -*/ - static int HWPDOLineFunc(int type, HWPDrawingObject * hdo, int cmd, void *argp, int argv) { @@ -580,7 +489,6 @@ int cmd, void *argp, int argv) static int HWPDOArcFunc(int type, HWPDrawingObject * hdo, int cmd, void *argp, int argv) { -// TRACE("arc"); switch (cmd) { case OBJFUNC_LOAD: @@ -602,7 +510,6 @@ HWPDOArcFunc(int type, HWPDrawingObject * hdo, int cmd, void *argp, int argv) static int HWPDOArc2Func(int type, HWPDrawingObject * hdo, int cmd, void *argp, int argv) { -// TRACE("arc2"); switch (cmd) { case OBJFUNC_LOAD: @@ -614,56 +521,6 @@ HWPDOArc2Func(int type, HWPDrawingObject * hdo, int cmd, void *argp, int argv) } -// freeform - -#define SPLINE_NSTEP 100 -#define SPLINE_UNIT 20 -#define SPLINE_UNIT2 40 -#define SPLINE_UNIT3 60 - -/* os 06.09.2005: unused function -static int getBlend(int alpha) -{ - static bool first = true; - static char isCached[SPLINE_NSTEP]; - static int blend[SPLINE_NSTEP]; - double ntheta; - - if (first) - { - memset(isCached, 0, sizeof(char) * SPLINE_NSTEP); - - first = FALSE; - } - if ((alpha < -SPLINE_UNIT2) || (alpha > SPLINE_UNIT2)) - return 0; - - if (!isCached[alpha + SPLINE_UNIT2]) - { - isCached[alpha + SPLINE_UNIT2] = TRUE; - ntheta = (double) alpha / SPLINE_UNIT; - - if ((alpha < -SPLINE_UNIT) || (alpha > SPLINE_UNIT)) - { - ntheta = (ntheta > 1) ? (2 - ntheta) : (2 + ntheta); - blend[alpha + SPLINE_UNIT2] = - (int) (1000 * ntheta * ntheta * ntheta / 6.); - } - else if (alpha <= 0) - blend[alpha + SPLINE_UNIT2] = - (int) (1000 * - (4 - 6 * ntheta * ntheta - - 3 * ntheta * ntheta * ntheta) / 6); - else - blend[alpha + SPLINE_UNIT2] = - (int) (1000 * - (4 - 6 * ntheta * ntheta + - 3 * ntheta * ntheta * ntheta) / 6); - } - return blend[alpha + SPLINE_UNIT2]; -} -*/ - static int HWPDOFreeFormFunc(int type, HWPDrawingObject * hdo, int cmd, void *argp, int argv) @@ -751,9 +608,6 @@ static int HWPDOTextBoxFunc(int type, HWPDrawingObject * hdo, int cmd, void *argp, int argv) { -// TRACE("textbox"); -// hunit sx, sy, xs, ys; - switch (cmd) { case OBJFUNC_LOAD: @@ -785,8 +639,6 @@ int cmd, void *argp, int argv) } -/* HWPDrawObject Լ */ - HWPDrawingObject::HWPDrawingObject() { memset(this, 0, sizeof(HWPDrawingObject)); diff --git a/hwpfilter/source/himgutil.h b/hwpfilter/source/himgutil.h index cd21b0ac381d..5b4c3842b33e 100644 --- a/hwpfilter/source/himgutil.h +++ b/hwpfilter/source/himgutil.h @@ -26,16 +26,6 @@ * ************************************************************************/ -/* NAME $Id: himgutil.h,v 1.4 2008-06-04 09:58:33 vg Exp $ - * PURPOSE - * WIN32 xv image ̺귯 , - * ̹ ȯϴµ Ѵ. - * NOTES - * - * HISTORY - * frog - Dec 23, 1998: Created. - */ - #ifndef _HIMGUTIL_H_ #define _HIMGUTIL_H_ diff --git a/hwpfilter/source/htags.cpp b/hwpfilter/source/htags.cpp index 6f1ade734457..30244a83f9b8 100644 --- a/hwpfilter/source/htags.cpp +++ b/hwpfilter/source/htags.cpp @@ -26,15 +26,6 @@ * ************************************************************************/ -/* NAME - * PURPOSE - * - * NOTES - * - * HISTORY - * frog - Aug 6, 1998: Created. - */ - #include "precompile.h" #ifdef __GNUG__ diff --git a/hwpfilter/source/htags.h b/hwpfilter/source/htags.h index ac0468f93bee..bb244c07dd59 100644 --- a/hwpfilter/source/htags.h +++ b/hwpfilter/source/htags.h @@ -26,15 +26,6 @@ * ************************************************************************/ -/* NAME $Id: htags.h,v 1.3 2008-04-10 12:08:00 rt Exp $ - * PURPOSE - * - * NOTES - * - * HISTORY - * frog - Aug 6, 1998: Created. - */ - #ifndef _HTAGS_H_ #define _HTAGS_H_ diff --git a/hwpfilter/source/hwpeq.h b/hwpfilter/source/hwpeq.h index 89a1bd308055..51fb3f03206d 100644 --- a/hwpfilter/source/hwpeq.h +++ b/hwpfilter/source/hwpeq.h @@ -26,15 +26,6 @@ * ************************************************************************/ -/* NAME $Id: hwpeq.h,v 1.3 2008-04-10 12:09:03 rt Exp $ - * PURPOSE - * - * NOTES - * - * HISTORY - * frog - Sep 29, 1998: Created. - */ - #ifndef _HWPEQ_H_ #define _HWPEQ_H_ diff --git a/hwpfilter/source/mzstring.cpp b/hwpfilter/source/mzstring.cpp index 88e04ebbb456..aadb688762cf 100644 --- a/hwpfilter/source/mzstring.cpp +++ b/hwpfilter/source/mzstring.cpp @@ -26,13 +26,8 @@ * ************************************************************************/ -/* NAME $Id: mzstring.cpp,v 1.5 2008-06-04 10:02:20 vg Exp $ - * PURPOSE +/* PURPOSE * supposed to be used instead of std::string - * NOTES - * - * HISTORY - * frog - Oct 8, 1998: Created. */ #ifdef __GNUG__ |