diff options
Diffstat (limited to 'hwpfilter')
56 files changed, 170 insertions, 10 deletions
diff --git a/hwpfilter/inc/pch/precompiled_hwpfilter.cxx b/hwpfilter/inc/pch/precompiled_hwpfilter.cxx index 4ca4f5e0040a..5aad38afdee1 100644 --- a/hwpfilter/inc/pch/precompiled_hwpfilter.cxx +++ b/hwpfilter/inc/pch/precompiled_hwpfilter.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -27,3 +28,4 @@ #include "precompiled_hwpfilter.hxx" +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/inc/pch/precompiled_hwpfilter.hxx b/hwpfilter/inc/pch/precompiled_hwpfilter.hxx index 1f60640c85c2..13905714b3b5 100644 --- a/hwpfilter/inc/pch/precompiled_hwpfilter.hxx +++ b/hwpfilter/inc/pch/precompiled_hwpfilter.hxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -30,3 +31,4 @@ #ifdef PRECOMPILED_HEADERS #endif +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/attributes.cxx b/hwpfilter/source/attributes.cxx index 46f8d85c6118..6acc757b4853 100644 --- a/hwpfilter/source/attributes.cxx +++ b/hwpfilter/source/attributes.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -166,3 +167,5 @@ void AttributeListImpl::clear() assert( ! getLength() ); } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/attributes.hxx b/hwpfilter/source/attributes.hxx index ad51c02283a0..6d15bc5c15b8 100644 --- a/hwpfilter/source/attributes.hxx +++ b/hwpfilter/source/attributes.hxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -72,3 +73,4 @@ private: #endif // _CONFIGMGR_MISC_ATTRIBUTES_HXX_ +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/cspline.cpp b/hwpfilter/source/cspline.cpp index 7a07c23d5f84..8493ff339bb4 100644 --- a/hwpfilter/source/cspline.cpp +++ b/hwpfilter/source/cspline.cpp @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -171,3 +172,5 @@ void PeriodicSpline (int N, double* x, double* a, double*& b, double*& c, delete[] h; sys.DeleteMatrix(N+1,mat); } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/cspline.h b/hwpfilter/source/cspline.h index d887dcfc2a82..dae081465387 100644 --- a/hwpfilter/source/cspline.h +++ b/hwpfilter/source/cspline.h @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -34,3 +35,5 @@ void PeriodicSpline (int N, double* x, double* a, double*& b, double*& c, double*& d); #endif /* _CSPLINE_H_ */ + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/datecode.h b/hwpfilter/source/datecode.h index 429d1d1c913e..8d49e659b6d6 100644 --- a/hwpfilter/source/datecode.h +++ b/hwpfilter/source/datecode.h @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -55,3 +56,5 @@ static const char *en_week[] = }; #endif //_DATECODE_WEEK_DEFINES_ #endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/drawdef.h b/hwpfilter/source/drawdef.h index 3f19cfd340a5..56b798dd6d33 100644 --- a/hwpfilter/source/drawdef.h +++ b/hwpfilter/source/drawdef.h @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -260,3 +261,5 @@ struct HWPDrawingObject ~HWPDrawingObject(); }; #endif /* _DRAWDEF_H_ */ + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/drawing.h b/hwpfilter/source/drawing.h index f667c3745057..4b8fc5f158ee 100644 --- a/hwpfilter/source/drawing.h +++ b/hwpfilter/source/drawing.h @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -809,3 +810,5 @@ HWPDrawingObject::~HWPDrawingObject() HWPDOFunc(this, OBJFUNC_FREE, NULL, 0); } #endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/fontmap.cpp b/hwpfilter/source/fontmap.cpp index 800637018a82..d3f9906f3eb2 100644 --- a/hwpfilter/source/fontmap.cpp +++ b/hwpfilter/source/fontmap.cpp @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -172,3 +173,5 @@ int getRepFamilyName(const char* orig, char *buf, double &ratio) ratio = FontMapTab[0].ratio; return strlen( strcpy(buf, RepFontTab[0] ) ); } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/formula.cpp b/hwpfilter/source/formula.cpp index ec37e0fd57c9..2ff8046d8a49 100644 --- a/hwpfilter/source/formula.cpp +++ b/hwpfilter/source/formula.cpp @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -684,3 +685,5 @@ void Formula::trim() eq = 0L; free(buf); } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/formula.h b/hwpfilter/source/formula.h index 3cdff4bcaad9..d822edc95e3e 100644 --- a/hwpfilter/source/formula.h +++ b/hwpfilter/source/formula.h @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -100,3 +101,5 @@ private: }; #endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/grammar.cpp b/hwpfilter/source/grammar.cpp index e7feb7f773cd..f922db024332 100644 --- a/hwpfilter/source/grammar.cpp +++ b/hwpfilter/source/grammar.cpp @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -1473,3 +1474,4 @@ int debug(const char * /*format*/, ...) } #endif +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/grammar.h b/hwpfilter/source/grammar.h index 5fe812febf42..5898eb487985 100644 --- a/hwpfilter/source/grammar.h +++ b/hwpfilter/source/grammar.h @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -63,3 +64,5 @@ typedef union { #ifndef _WIN32 extern YYSTYPE yylval; #endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/hbox.cpp b/hwpfilter/source/hbox.cpp index 8051f71e4637..ce3bf2f53cd7 100644 --- a/hwpfilter/source/hbox.cpp +++ b/hwpfilter/source/hbox.cpp @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -712,3 +713,4 @@ hchar *Outline::GetUnicode(hchar * hstr, int) /* ĭ(30) */ /* ĭ(31) */ +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/hbox.h b/hwpfilter/source/hbox.h index 2b49b3976d74..3a0647019cc6 100644 --- a/hwpfilter/source/hbox.h +++ b/hwpfilter/source/hbox.h @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -1039,3 +1040,5 @@ struct FixedSpace: public HBox virtual int Read(HWPFile &hwpf); }; #endif /* _HBOX_H_ */ + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/hcode.cpp b/hwpfilter/source/hcode.cpp index 39c1cf63bf55..02651926d0de 100644 --- a/hwpfilter/source/hcode.cpp +++ b/hwpfilter/source/hcode.cpp @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -33,6 +34,7 @@ */ #include "precompile.h" #include <sal/types.h> +#include <sal/macros.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -595,7 +597,7 @@ static int is_jaso(hchar hh) { unsigned int i; - for (i = 0; i < sizeof(jaso_hh_code) / sizeof(jaso_hh_code[0]); i++) + for (i = 0; i < SAL_N_ELEMENTS(jaso_hh_code); i++) if (hh == jaso_hh_code[i]) return 1; return 0; @@ -606,7 +608,7 @@ static hchar jaso2ks(hchar hh) { unsigned int i; - for (i = 0; i < sizeof(jaso_hh_code) / sizeof(jaso_hh_code[0]); i++) + for (i = 0; i < SAL_N_ELEMENTS(jaso_hh_code); i++) if (hh == jaso_hh_code[i]) { return sal::static_int_cast<hchar>(0xa4a1 + i); @@ -1116,7 +1118,7 @@ int kssm_hangul_to_ucs2(hchar ch, hchar *dest) } else{ /* ڸ : ̺ ̿ϼ */ unsigned int index = choseong * 32 + jongseong - 308; - if( index < sizeof(jamocomp1_to_unicode)/sizeof(jamocomp1_to_unicode[0])){ + if( index < SAL_N_ELEMENTS(jamocomp1_to_unicode) ){ dest[0] = jamocomp1_to_unicode[index].v1; dest[1] = jamocomp1_to_unicode[index].v2; dest[2] = jamocomp1_to_unicode[index].v3; @@ -1536,3 +1538,5 @@ double calcAngle(int x1, int y1, int x2, int y2) } return angle; } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/hcode.h b/hwpfilter/source/hcode.h index 75b411dff3e4..48a423edb83f 100644 --- a/hwpfilter/source/hcode.h +++ b/hwpfilter/source/hcode.h @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -82,3 +83,5 @@ DLLEXPORT double calcAngle(int x1, int y1, int x2, int y2); #endif /* _HCODE_H_ */ + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/hfont.cpp b/hwpfilter/source/hfont.cpp index c1ec55016cc2..11dfa096c855 100644 --- a/hwpfilter/source/hfont.cpp +++ b/hwpfilter/source/hfont.cpp @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -105,3 +106,5 @@ bool HWPFont::Read(HWPFile & hwpf) return !hwpf.State(); } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/hfont.h b/hwpfilter/source/hfont.h index 87fed5b71a5e..f22ca895957d 100644 --- a/hwpfilter/source/hfont.h +++ b/hwpfilter/source/hfont.h @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -75,3 +76,5 @@ class DLLEXPORT HWPFont bool Read( HWPFile &hwpf ); }; #endif /* _HWPFONTS+H_ */ + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/hgzip.cpp b/hwpfilter/source/hgzip.cpp index 93aa889cfcaa..13811d2069a8 100644 --- a/hwpfilter/source/hgzip.cpp +++ b/hwpfilter/source/hgzip.cpp @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -335,3 +336,5 @@ int gz_close(gz_stream * file) #endif return destroy(s); } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/hgzip.h b/hwpfilter/source/hgzip.h index 74e8059246f2..f86269f6ec1f 100644 --- a/hwpfilter/source/hgzip.h +++ b/hwpfilter/source/hgzip.h @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -112,3 +113,5 @@ int gz_read ( gz_stream *file, voidp buf, unsigned len ); */ int gz_flush ( gz_stream *file, int flush ); #endif /* _HWPGZIP_H_ */ + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/himgutil.cpp b/hwpfilter/source/himgutil.cpp index 92892be00a59..3d94280f6135 100644 --- a/hwpfilter/source/himgutil.cpp +++ b/hwpfilter/source/himgutil.cpp @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -167,3 +168,5 @@ const char *GetEmbImgname(const EmPicture * empic) sprintf(ptr + 1, "mz_%s.%s", empic->name,ext); return fname; } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/himgutil.h b/hwpfilter/source/himgutil.h index 4a60e1b99992..cd21b0ac381d 100644 --- a/hwpfilter/source/himgutil.h +++ b/hwpfilter/source/himgutil.h @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -74,3 +75,5 @@ struct EmPicture; */ const char *GetEmbImgname(const EmPicture *empic); #endif /* _HIMGUTIL_H_ */ + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/hinfo.cpp b/hwpfilter/source/hinfo.cpp index 773fbf05ca1d..53dce1c1dbe9 100644 --- a/hwpfilter/source/hinfo.cpp +++ b/hwpfilter/source/hinfo.cpp @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -219,3 +220,5 @@ bool CharShape::Read(HWPFile & hwpf) return (!hwpf.State()); } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/hinfo.h b/hwpfilter/source/hinfo.h index 62f90ef92ae5..9407f3628a19 100644 --- a/hwpfilter/source/hinfo.h +++ b/hwpfilter/source/hinfo.h @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -262,3 +263,5 @@ struct ParaShape // virtual ~ParaShape(); }; #endif /* _HWPINFO_H_ */ + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/hiodev.cpp b/hwpfilter/source/hiodev.cpp index 183f8eef1c99..f898d41fd8a9 100644 --- a/hwpfilter/source/hiodev.cpp +++ b/hwpfilter/source/hiodev.cpp @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -363,3 +364,5 @@ int HMemIODev::skipBlock(int size) pos += size; return size; } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/hiodev.h b/hwpfilter/source/hiodev.h index 994bb3383397..32e588e6878b 100644 --- a/hwpfilter/source/hiodev.h +++ b/hwpfilter/source/hiodev.h @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -169,3 +170,5 @@ class HMemIODev : public HIODev virtual void init(); }; #endif /* _HIODEV_H_*/ + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/hpara.cpp b/hwpfilter/source/hpara.cpp index 885fa53799ae..b60df27dda1e 100644 --- a/hwpfilter/source/hpara.cpp +++ b/hwpfilter/source/hpara.cpp @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -318,3 +319,5 @@ HBox *HWPPara::readHBox(HWPFile & hwpf) return hbox; //return 0; } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/hpara.h b/hwpfilter/source/hpara.h index df8e57b8121a..380ff9cd2620 100644 --- a/hwpfilter/source/hpara.h +++ b/hwpfilter/source/hpara.h @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -180,3 +181,5 @@ inline int HWPPara::LineLen(int line) const return EndPos(line) - HomePos(line); } #endif /* _HWPPARA_H_ */ + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/hstream.cpp b/hwpfilter/source/hstream.cpp index 7d657850beff..c7ece7d679d9 100644 --- a/hwpfilter/source/hstream.cpp +++ b/hwpfilter/source/hstream.cpp @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -78,3 +79,5 @@ int HStream::available() void HStream::closeInput() { } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/hstream.h b/hwpfilter/source/hstream.h index 025ef085b661..f8aeadecc5d6 100644 --- a/hwpfilter/source/hstream.h +++ b/hwpfilter/source/hstream.h @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -64,3 +65,5 @@ class HStream int pos; }; #endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/hstyle.cpp b/hwpfilter/source/hstyle.cpp index 704f4fd03450..7d283d1e77c5 100644 --- a/hwpfilter/source/hstyle.cpp +++ b/hwpfilter/source/hstyle.cpp @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -151,3 +152,5 @@ bool HWPStyle::Read(HWPFile & hwpf) } return true; } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/hstyle.h b/hwpfilter/source/hstyle.h index 678414f9b2ce..11b153301a06 100644 --- a/hwpfilter/source/hstyle.h +++ b/hwpfilter/source/hstyle.h @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -59,3 +60,5 @@ class DLLEXPORT HWPStyle }; #endif /* _HWPSTYLE+H_ */ + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/htags.cpp b/hwpfilter/source/htags.cpp index 7a4bace0dd68..ad3d307d3c5b 100644 --- a/hwpfilter/source/htags.cpp +++ b/hwpfilter/source/htags.cpp @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -166,3 +167,5 @@ bool OlePicture::Read(HWPFile & hwpf) return true; } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/htags.h b/hwpfilter/source/htags.h index cf0f54b97d93..ac0468f93bee 100644 --- a/hwpfilter/source/htags.h +++ b/hwpfilter/source/htags.h @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -87,3 +88,5 @@ struct OlePicture bool Read(HWPFile& hwpf); }; #endif /* _HTAGS_H_ */ + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/hutil.cpp b/hwpfilter/source/hutil.cpp index 229b8e453b51..f2acede8b75a 100644 --- a/hwpfilter/source/hutil.cpp +++ b/hwpfilter/source/hutil.cpp @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -99,3 +100,5 @@ int hstrlen(const hchar * s) n++; return (n); } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/hutil.h b/hwpfilter/source/hutil.h index c8d80698d1d5..018c5b6ca0c8 100644 --- a/hwpfilter/source/hutil.h +++ b/hwpfilter/source/hutil.h @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -45,3 +46,5 @@ void str2hstr(const char *c, hchar *i); int hstrlen(const hchar *s); #endif /* UTIL_H_*/ + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/hwpeq.cpp b/hwpfilter/source/hwpeq.cpp index 350a3cef0958..6b663879cb92 100644 --- a/hwpfilter/source/hwpeq.cpp +++ b/hwpfilter/source/hwpeq.cpp @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -24,8 +25,6 @@ * ************************************************************************/ -//#include "stdafx.h" - #include <assert.h> #include <stdio.h> #include <string.h> @@ -39,6 +38,7 @@ using namespace std; #include "mzstring.h" #include "hwpeq.h" #include <sal/types.h> +#include <sal/macros.h> //#define TEST //#define DEBUG @@ -393,7 +393,7 @@ static hwpeq eq_tbl[] = { static hwpeq *lookup_eqn(char *str) { - static int eqCount = sizeof(eq_tbl) / sizeof(eq_tbl[0]); + static int eqCount = SAL_N_ELEMENTS(eq_tbl); int m, k, l = 0, r = eqCount; hwpeq *result = 0; @@ -763,3 +763,5 @@ void eq2latex(MzString& outs, char *s) delete stk; stk = 0; } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/hwpeq.h b/hwpfilter/source/hwpeq.h index 938f9f9246fe..89a1bd308055 100644 --- a/hwpfilter/source/hwpeq.h +++ b/hwpfilter/source/hwpeq.h @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -42,3 +43,5 @@ void eq2latex(MzString &mstr, char *str); #endif /* _HWPEQ_H_ */ + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/hwpfile.cpp b/hwpfilter/source/hwpfile.cpp index 54f35a206ab0..af458bea444f 100644 --- a/hwpfilter/source/hwpfile.cpp +++ b/hwpfilter/source/hwpfile.cpp @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -678,3 +679,5 @@ HWPFile *SetCurrentDoc(HWPFile * hwpfp) HWPFile::cur_doc = hwpfp; return org; } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/hwpfile.h b/hwpfilter/source/hwpfile.h index a0d934de827c..fcb3003577aa 100644 --- a/hwpfilter/source/hwpfile.h +++ b/hwpfilter/source/hwpfile.h @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -310,3 +311,5 @@ class DLLEXPORT HWPFile HWPFile *GetCurrentDoc(void); HWPFile *SetCurrentDoc(HWPFile *hwpfp); #endif /* _HWPFILE_H_ */ + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/hwplib.h b/hwpfilter/source/hwplib.h index 6fc8ff3dc45b..53575aa1c189 100644 --- a/hwpfilter/source/hwplib.h +++ b/hwpfilter/source/hwplib.h @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -242,3 +243,5 @@ enum DebugMask # define DIRSEP '/' #endif #endif /* _HWPLIB_H_*/ + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/hwpread.cpp b/hwpfilter/source/hwpread.cpp index faef616a5755..3be3cc0815b5 100644 --- a/hwpfilter/source/hwpread.cpp +++ b/hwpfilter/source/hwpread.cpp @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -811,3 +812,5 @@ int FixedSpace::Read(HWPFile & hwpf) } return !hwpf.State(); } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/hwpreader.cxx b/hwpfilter/source/hwpreader.cxx index 0701e6ec72f6..ba4c0f0b5821 100644 --- a/hwpfilter/source/hwpreader.cxx +++ b/hwpfilter/source/hwpreader.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -4947,3 +4948,5 @@ void HwpReader::parsePara(HWPPara * para, sal_Bool bParaStart) para = para->Next(); } } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/hwpreader.hxx b/hwpfilter/source/hwpreader.hxx index c5fdb180f776..0c9c574e554d 100644 --- a/hwpfilter/source/hwpreader.hxx +++ b/hwpfilter/source/hwpreader.hxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -399,3 +400,4 @@ extern "C" #endif +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/ksc5601.h b/hwpfilter/source/ksc5601.h index 9a5d504cc0f7..d19eb0e89a16 100644 --- a/hwpfilter/source/ksc5601.h +++ b/hwpfilter/source/ksc5601.h @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Conversion tables for KS C 5601-1992 based encoding conversion. Copyright (C) 1998 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -758,3 +759,5 @@ const hchar ksc5601_hanja_to_ucs[4888]= 0x59ec, 0x5b09, 0x5e0c, 0x6199, 0x6198, 0x6231, 0x665e, 0x66e6, 0x7199, 0x71b9, 0x71ba, 0x72a7, 0x79a7, 0x7a00, 0x7fb2, 0x8a70 }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/lexer.cpp b/hwpfilter/source/lexer.cpp index 4ef976fcd5f8..03bc4a091a92 100644 --- a/hwpfilter/source/lexer.cpp +++ b/hwpfilter/source/lexer.cpp @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* ************************************************************************/ @@ -2414,3 +2415,5 @@ int token_debug(const char * /*format*/, ...) return 0; } #endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/list.hxx b/hwpfilter/source/list.hxx index 70677d6a4b31..2399bb8e3f39 100644 --- a/hwpfilter/source/list.hxx +++ b/hwpfilter/source/list.hxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -281,3 +282,5 @@ bool LinkedListIterator<T>::valid() } #endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/mapping.h b/hwpfilter/source/mapping.h index 7c7ceb086bf3..89e29c96feac 100644 --- a/hwpfilter/source/mapping.h +++ b/hwpfilter/source/mapping.h @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -30,6 +31,7 @@ #include <string.h> #include <stdio.h> +#include <sal/macros.h> typedef unsigned short hchar; @@ -369,7 +371,7 @@ const struct FormulaEntry FormulaMapTab[] = { #ifndef DEBUG hchar *getMathMLEntity(const char *tex, hchar *buf) { - static int tabSize = sizeof( FormulaMapTab ) / sizeof( FormulaMapTab[0] ); + static int tabSize = SAL_N_ELEMENTS( FormulaMapTab ); int i, len; for( i = 0 ; i < tabSize ; i++ ){ @@ -396,3 +398,5 @@ char *getMathMLEntity(const char *tex, char *buf) #endif #endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/mzstring.cpp b/hwpfilter/source/mzstring.cpp index cf64b4f9c33f..88e04ebbb456 100644 --- a/hwpfilter/source/mzstring.cpp +++ b/hwpfilter/source/mzstring.cpp @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -38,7 +39,6 @@ #pragma implementation "mzstring.h" #endif -//#include "stdafx.h" // #include "mzstring.h" #ifndef WIN32 @@ -51,7 +51,6 @@ #if defined _MSC_VER #pragma warning(pop) #endif -//# include <crtdbg.h> #endif /* WIN32 */ #include <stdio.h> #include <stdlib.h> @@ -312,3 +311,5 @@ bool MzString::resize(int len) { return allocate(len); } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/mzstring.h b/hwpfilter/source/mzstring.h index f0a847085138..c8d8b159545e 100644 --- a/hwpfilter/source/mzstring.h +++ b/hwpfilter/source/mzstring.h @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -185,3 +186,5 @@ inline const char* MzString::c_str() const // Non friend, non member operators // #endif /* _MZSTRING_H_ */ + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/nodes.h b/hwpfilter/source/nodes.h index 681af19cf302..dcbf297c75b4 100644 --- a/hwpfilter/source/nodes.h +++ b/hwpfilter/source/nodes.h @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -105,3 +106,5 @@ public: //static LinkedList<Node> nodelist; #endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/precompile.h b/hwpfilter/source/precompile.h index 7a85945f262a..7d3b0d03de97 100644 --- a/hwpfilter/source/precompile.h +++ b/hwpfilter/source/precompile.h @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -35,10 +36,11 @@ #endif #include "windows.h" #ifndef __MINGW32__ -//#include "stdafx.h" #include "crtdbg.h" #if defined _MSC_VER #pragma warning(pop) #endif #endif #endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/solver.cpp b/hwpfilter/source/solver.cpp index e21d9b310deb..caad95701b80 100644 --- a/hwpfilter/source/solver.cpp +++ b/hwpfilter/source/solver.cpp @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -181,3 +182,5 @@ int mgcLinearSystemD::Solve (int n, double** a, double* b) delete[] indxc; return 1; } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/solver.h b/hwpfilter/source/solver.h index a0c4ca403fe6..3d63650b9bac 100644 --- a/hwpfilter/source/solver.h +++ b/hwpfilter/source/solver.h @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -48,3 +49,5 @@ public: }; #endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |