diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-06-04 09:01:49 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-06-04 09:01:49 +0000 |
commit | ca28a7236d7ee6670f5363dbf9960a51e64fdd31 (patch) | |
tree | 8ea57e57fe8c409f88083ab46f7329793b644a52 /hwpfilter/source | |
parent | 9be6a3f0dcdea27918eb03de6490c40f7fa407cc (diff) |
INTEGRATION: CWS sw30bf04 (1.10.2); FILE MERGED
2008/04/16 14:07:55 ama 1.10.2.1: Patch #i86356#: Remove unused methods
Diffstat (limited to 'hwpfilter/source')
-rw-r--r-- | hwpfilter/source/hwpreader.cxx | 348 |
1 files changed, 140 insertions, 208 deletions
diff --git a/hwpfilter/source/hwpreader.cxx b/hwpfilter/source/hwpreader.cxx index 2254943f3487..fc253ed4ce13 100644 --- a/hwpfilter/source/hwpreader.cxx +++ b/hwpfilter/source/hwpreader.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: hwpreader.cxx,v $ - * $Revision: 1.10 $ + * $Revision: 1.11 $ * * This file is part of OpenOffice.org. * @@ -365,7 +365,7 @@ void HwpReader::makeMeta() } sprintf(buf,"%d-%02d-%02dT%02d:%02d:00",year,month,day,hour,minute); -/* 2001 9 8 , 14 16 */ +/* 2001?? 9?? 8?? ??????, 14?? 16?? */ // 2001-09-07T11:16:47 rstartEl( ascii("meta:creation-date"), rList ); rchars( ascii(buf)); @@ -374,7 +374,7 @@ void HwpReader::makeMeta() if (hwpinfo->summary.keyword[0][0] || hwpinfo->summary.etc[0][0]) { -/* 忡 dc Ǿִ. */ +/* ???????? dc?? ????????. */ rstartEl(ascii("meta:keywords"), rList); if (hwpinfo->summary.keyword[0][0]) { @@ -502,7 +502,7 @@ void HwpReader::makeDrawMiscStyle( HWPDrawingObject *hdo ) if( hdo->type == HWPDO_LINE || hdo->type == HWPDO_ARC || hdo->type == HWPDO_FREEFORM || hdo->type == HWPDO_ADVANCED_ARC ) { - /* ȭǥ */ + /* ???????? ???? */ if( prop->line_tstyle && !ArrowShape[prop->line_tstyle].bMade ) { ArrowShape[prop->line_tstyle].bMade = sal_True; @@ -555,7 +555,7 @@ void HwpReader::makeDrawMiscStyle( HWPDrawingObject *hdo ) if( hdo->type != HWPDO_LINE ) { - if( prop->flag >> 18 & 0x01 ) /* Ʈ Ӽ */ + if( prop->flag >> 18 & 0x01 ) /* ?????? ???? ???? ???? */ { padd( ascii("draw:name"), sXML_CDATA, ascii(Int2Str(hdo->index, "fillimage%d", buf))); if( !prop->pictype ) @@ -563,7 +563,7 @@ void HwpReader::makeDrawMiscStyle( HWPDrawingObject *hdo ) padd( ascii("xlink:href"), sXML_CDATA, hconv(kstr2hstr( (uchar *)urltounix(prop->szPatternFile, buf), sbuf), gstr)); } - else /* Ӻ imageμ Ϸ ؾ Ѵ. */ + else /* ???????? image???? ?????? ???????? ????. */ { EmPicture *emp = 0L; if ( strlen( prop->szPatternFile ) > 3) @@ -615,8 +615,8 @@ void HwpReader::makeDrawMiscStyle( HWPDrawingObject *hdo ) pList->clear(); rendEl( ascii("draw:fill-image")); } -/* ̼ ص, Ʈ ϸ, ̰ 켱̴. */ - else if( prop->flag >> 16 & 0x01 ) /* ̼ 翩 */ +/* ???????????? ????????, ???????????? ????????, ?????? ????????. */ + else if( prop->flag >> 16 & 0x01 ) /* ?????????? ???????? */ { padd( ascii("draw:name"), sXML_CDATA, ascii(Int2Str(hdo->index, "Grad%d", buf))); switch( prop->gstyle ) @@ -698,7 +698,7 @@ void HwpReader::makeDrawMiscStyle( HWPDrawingObject *hdo ) pList->clear(); rendEl( ascii("draw:gradient")); } - /* Ī */ + /* ???? */ else if( prop->pattern_type >> 24 & 0x01 ) { int type = prop->pattern_type & 0xffffff; @@ -862,8 +862,8 @@ void HwpReader::makeStyles() /** * parse automatic styles from hwpfile - * ڵ ݿ Ǵ Ÿ Ѵ. ̳, ̺, Ÿ ̰ ϰ, Body ̰ ǵ Ÿ ̿Ѵ. - * 1. paragraph, text, fbox, pageŸϿ Ѵ. + * ?????????? ?????? ???? ???????? ????????. ???????? ?????? ????????, ??????, ???? ?????? ???????? ???????? ????????, Body?????? ?????? ?????? ???????? ????????. + * 1. paragraph, text, fbox, page???????? ???? ????????. */ void HwpReader::makeAutoStyles() { @@ -1094,7 +1094,7 @@ void HwpReader::makeMasterStyles() rstartEl(ascii("style:master-page"), rList); pList->clear(); - if( pSet[i].bIsSet ) /* ٲ */ + if( pSet[i].bIsSet ) /* ???? ?????? ?????????? */ { if( !pSet[i].pagenumber ){ if( pPrevSet && pPrevSet->pagenumber ) @@ -1136,11 +1136,11 @@ void HwpReader::makeMasterStyles() pPage = &pSet[i]; pPrevSet = &pSet[i]; } - else if( pPrevSet ) /* . */ + else if( pPrevSet ) /* ?????? ?????? ???? ??????. */ { pPage = pPrevSet; } - else /* ٸ ⺻ */ + else /* ???? ?????? ?????? ???????????? */ { rstartEl(ascii("style:header"), rList); padd(ascii("text:style-name"), sXML_CDATA, ascii("Standard")); @@ -1190,7 +1190,7 @@ void HwpReader::makeMasterStyles() d->nPnPos = 0; rendEl(ascii("style:header")); } - /* ⺻ Ѵ. */ + /* ???????? ????. */ else if( pPage->header_odd && !pPage->header_even ) { rstartEl(ascii("style:header"), rList); @@ -1225,7 +1225,7 @@ void HwpReader::makeMasterStyles() d->nPnPos = 0; rendEl(ascii("style:header-left")); } - /* ⺻ Ѵ. */ + /* ???????? ????. */ else if( pPage->header_even && !pPage->header_odd ) { rstartEl(ascii("style:header-left"), rList); @@ -1291,7 +1291,7 @@ void HwpReader::makeMasterStyles() d->nPnPos = 0; rendEl(ascii("style:footer")); } - /* ⺻ Ѵ. */ + /* ???????? ????. */ else if( pPage->footer_odd && !pPage->footer_even ) { rstartEl(ascii("style:footer"), rList); @@ -1326,7 +1326,7 @@ void HwpReader::makeMasterStyles() d->nPnPos = 0; rendEl(ascii("style:footer-left")); } - /* ⺻ Ѵ. */ + /* ???????? ????. */ else if( pPage->footer_even && !pPage->footer_odd ) { rstartEl(ascii("style:footer-left"), rList); @@ -1369,11 +1369,11 @@ void HwpReader::makeMasterStyles() /** - * ؽƮ Ÿ Ƽ . + * ?????? ???????? ???? ???????????? ??????. * 1. fo:font-size, fo:font-family, fo:letter-spacing, fo:color, * style:text-background-color, fo:font-style, fo:font-weight, * style:text-underline,style:text-outline,fo:text-shadow,style:text-position - * Ѵ. + * ?? ????????. */ void HwpReader::parseCharShape(CharShape * cshape) { @@ -1443,11 +1443,11 @@ void HwpReader::parseCharShape(CharShape * cshape) /** - * Paragraph شϴ properties . + * ???? Paragraph?? ???????? properties???? ??????. * 1. fo:margin-left,fo:margin-right,fo:margin-top, fo:margin-bottom, * fo:text-indent, fo:line-height, fo:text-align, fo:border - * . - * TODO : Ǽ => ⺻ ƴѰ͵鸸 ؾ Ѵ. + * ?? ??????. + * TODO : ?????? => ???????? ?????????? ?????????? ???????? ????. */ void HwpReader::parseParaShape(ParaShape * pshape) { @@ -1515,7 +1515,7 @@ void HwpReader::parseParaShape(ParaShape * pshape) /** - * Paragraph Ÿ . + * Paragraph?? ???? ???????? ??????. */ void HwpReader::makePStyle(ParaShape * pshape) { @@ -1585,8 +1585,8 @@ void HwpReader::makePStyle(ParaShape * pshape) /** - * Ÿ . header/footer, footnote Եȴ. - * TODO : , fo:background-color( ) + * ???????? ???????? ??????. ???????? header/footer, footnote???? ????????. + * TODO : , fo:background-color(?????? ????) */ void HwpReader::makePageStyle() { @@ -1818,7 +1818,7 @@ void HwpReader::makePageStyle() rendEl(ascii("style:properties")); rendEl(ascii("style:footer-style")); - /* footnote style ̰ dtd , 忡 ǵǾ ִ. REALKING */ + /* footnote style ???? dtd?????? ????????, ???????? ???????? ????. REALKING */ rstartEl(ascii("style:footnote-layout"), rList); padd(ascii("style:distance-before-sep"), sXML_CDATA, @@ -1857,17 +1857,17 @@ void HwpReader::makeColumns(ColumnDef *coldef) { switch( coldef->separator ) { - case 1: /* */ + case 1: /* ?????? */ padd(ascii("style:width"), sXML_CDATA, ascii("0.02mm")); - case 3: /* */ + case 3: /* ???? */ padd(ascii("style:style"), sXML_CDATA, ascii("dotted")); padd(ascii("style:width"), sXML_CDATA, ascii("0.02mm")); break; - case 2: /* β */ - case 4: /* 2 */ + case 2: /* ???????? */ + case 4: /* 2???? */ padd(ascii("style:width"), sXML_CDATA, ascii("0.35mm")); break; - case 0: /* */ + case 0: /* ???? */ default: padd(ascii("style:style"), sXML_CDATA, ascii("none")); break; @@ -1981,14 +1981,14 @@ void HwpReader::makeTableStyle(Table *tbl) { switch( cl->linetype[2] ) { - case 1: /* ½Ǽ */ - case 3: /* -> Ÿǽ . */ + case 1: /* ???????? */ + case 3: /* ???? -> ?????????????? ?????? ????. */ padd(ascii("fo:border"), sXML_CDATA,ascii("0.002cm solid #000000")); break; - case 2: /* Ǽ */ + case 2: /* ???????? */ padd(ascii("fo:border"), sXML_CDATA,ascii("0.035cm solid #000000")); break; - case 4: /* 2 */ + case 4: /* 2???? */ padd(ascii("style:border-line-width"), sXML_CDATA,ascii("0.002cm 0.035cm 0.002cm")); padd(ascii("fo:border"), sXML_CDATA,ascii("0.039cm double #000000")); break; @@ -1998,56 +1998,56 @@ void HwpReader::makeTableStyle(Table *tbl) { switch( cl->linetype[0] ) { - case 1: /* ½Ǽ */ - case 3: /* -> Ÿǽ . */ + case 1: /* ???????? */ + case 3: /* ???? -> ?????????????? ?????? ????. */ padd(ascii("fo:border-left"), sXML_CDATA,ascii("0.002cm solid #000000")); break; - case 2: /* Ǽ */ + case 2: /* ???????? */ padd(ascii("fo:border-left"), sXML_CDATA,ascii("0.035cm solid #000000")); break; - case 4: /* 2 */ + case 4: /* 2???? */ padd(ascii("style:border-line-width-left"), sXML_CDATA,ascii("0.002cm 0.035cm 0.002cm")); padd(ascii("fo:border-left"), sXML_CDATA,ascii("0.039cm double #000000")); break; } switch( cl->linetype[1] ) { - case 1: /* ½Ǽ */ - case 3: /* -> Ÿǽ . */ + case 1: /* ???????? */ + case 3: /* ???? -> ?????????????? ?????? ????. */ padd(ascii("fo:border-right"), sXML_CDATA,ascii("0.002cm solid #000000")); break; - case 2: /* Ǽ */ + case 2: /* ???????? */ padd(ascii("fo:border-right"), sXML_CDATA,ascii("0.035cm solid #000000")); break; - case 4: /* 2 */ + case 4: /* 2???? */ padd(ascii("style:border-line-width-right"), sXML_CDATA,ascii("0.002cm 0.035cm 0.002cm")); padd(ascii("fo:border-right"), sXML_CDATA,ascii("0.039cm double #000000")); break; } switch( cl->linetype[2] ) { - case 1: /* ½Ǽ */ - case 3: /* -> Ÿǽ . */ + case 1: /* ???????? */ + case 3: /* ???? -> ?????????????? ?????? ????. */ padd(ascii("fo:border-top"), sXML_CDATA,ascii("0.002cm solid #000000")); break; - case 2: /* Ǽ */ + case 2: /* ???????? */ padd(ascii("fo:border-top"), sXML_CDATA,ascii("0.035cm solid #000000")); break; - case 4: /* 2 */ + case 4: /* 2???? */ padd(ascii("style:border-line-width-top"), sXML_CDATA,ascii("0.002cm 0.035cm 0.002cm")); padd(ascii("fo:border-top"), sXML_CDATA,ascii("0.039cm double #000000")); break; } switch( cl->linetype[3] ) { - case 1: /* ½Ǽ */ - case 3: /* -> Ÿǽ . */ + case 1: /* ???????? */ + case 3: /* ???? -> ?????????????? ?????? ????. */ padd(ascii("fo:border-bottom"), sXML_CDATA,ascii("0.002cm solid #000000")); break; - case 2: /* Ǽ */ + case 2: /* ???????? */ padd(ascii("fo:border-bottom"), sXML_CDATA,ascii("0.035cm solid #000000")); break; - case 4: /* 2 */ + case 4: /* 2???? */ padd(ascii("style:border-line-width-bottom"), sXML_CDATA,ascii("0.002cm 0.035cm 0.002cm")); padd(ascii("fo:border-bottom"), sXML_CDATA,ascii("0.039cm double #000000")); break; @@ -2392,14 +2392,14 @@ void HwpReader::makeCaptionStyle(FBoxStyle * fstyle) case 0: padd(ascii("fo:padding"), sXML_CDATA,ascii("0mm")); break; - case 1: /* ½Ǽ */ - case 3: /* -> Ÿǽ . */ + case 1: /* ???????? */ + case 3: /* ???? -> ?????????????? ?????? ????. */ padd(ascii("fo:border"), sXML_CDATA,ascii("0.002cm solid #000000")); break; - case 2: /* Ǽ */ + case 2: /* ???????? */ padd(ascii("fo:border"), sXML_CDATA,ascii("0.035cm solid #000000")); break; - case 4: /* 2 */ + case 4: /* 2???? */ padd(ascii("style:border-line-width"), sXML_CDATA,ascii("0.002cm 0.035cm 0.002cm")); padd(ascii("fo:border"), sXML_CDATA,ascii("0.039cm double #000000")); break; @@ -2409,56 +2409,56 @@ void HwpReader::makeCaptionStyle(FBoxStyle * fstyle) { switch( cell->linetype[0] ) { - case 1: /* ½Ǽ */ - case 3: /* -> Ÿǽ . */ + case 1: /* ???????? */ + case 3: /* ???? -> ?????????????? ?????? ????. */ padd(ascii("fo:border-left"), sXML_CDATA,ascii("0.002cm solid #000000")); break; - case 2: /* Ǽ */ + case 2: /* ???????? */ padd(ascii("fo:border-left"), sXML_CDATA,ascii("0.035cm solid #000000")); break; - case 4: /* 2 */ + case 4: /* 2???? */ padd(ascii("style:border-line-width-left"), sXML_CDATA,ascii("0.002cm 0.035cm 0.002cm")); padd(ascii("fo:border-left"), sXML_CDATA,ascii("0.039cm double #000000")); break; } switch( cell->linetype[1] ) { - case 1: /* ½Ǽ */ - case 3: /* -> Ÿǽ . */ + case 1: /* ???????? */ + case 3: /* ???? -> ?????????????? ?????? ????. */ padd(ascii("fo:border-right"), sXML_CDATA,ascii("0.002cm solid #000000")); break; - case 2: /* Ǽ */ + case 2: /* ???????? */ padd(ascii("fo:border-right"), sXML_CDATA,ascii("0.035cm solid #000000")); break; - case 4: /* 2 */ + case 4: /* 2???? */ padd(ascii("style:border-line-width-right"), sXML_CDATA,ascii("0.002cm 0.035cm 0.002cm")); padd(ascii("fo:border-right"), sXML_CDATA,ascii("0.039cm double #000000")); break; } switch( cell->linetype[2] ) { - case 1: /* ½Ǽ */ - case 3: /* -> Ÿǽ . */ + case 1: /* ???????? */ + case 3: /* ???? -> ?????????????? ?????? ????. */ padd(ascii("fo:border-top"), sXML_CDATA,ascii("0.002cm solid #000000")); break; - case 2: /* Ǽ */ + case 2: /* ???????? */ padd(ascii("fo:border-top"), sXML_CDATA,ascii("0.035cm solid #000000")); break; - case 4: /* 2 */ + case 4: /* 2???? */ padd(ascii("style:border-line-width-top"), sXML_CDATA,ascii("0.002cm 0.035cm 0.002cm")); padd(ascii("fo:border-top"), sXML_CDATA,ascii("0.039cm double #000000")); break; } switch( cell->linetype[3] ) { - case 1: /* ½Ǽ */ - case 3: /* -> Ÿǽ . */ + case 1: /* ???????? */ + case 3: /* ???? -> ?????????????? ?????? ????. */ padd(ascii("fo:border-bottom"), sXML_CDATA,ascii("0.002cm solid #000000")); break; - case 2: /* Ǽ */ + case 2: /* ???????? */ padd(ascii("fo:border-bottom"), sXML_CDATA,ascii("0.035cm solid #000000")); break; - case 4: /* 2 */ + case 4: /* 2???? */ padd(ascii("style:border-line-width-bottom"), sXML_CDATA,ascii("0.002cm 0.035cm 0.002cm")); padd(ascii("fo:border-bottom"), sXML_CDATA,ascii("0.039cm double #000000")); break; @@ -2477,11 +2477,11 @@ void HwpReader::makeCaptionStyle(FBoxStyle * fstyle) /** - * Floating ü Ÿ . + * Floating ?????? ???? ???????? ??????. */ void HwpReader::makeFStyle(FBoxStyle * fstyle) { - /* ĸ exist */ + /* ???? exist */ if( ( fstyle->boxtype == 'G' || fstyle->boxtype == 'X' ) && fstyle->cap_len > 0 ) { makeCaptionStyle(fstyle); @@ -2603,14 +2603,14 @@ void HwpReader::makeFStyle(FBoxStyle * fstyle) case 0: padd(ascii("fo:border"), sXML_CDATA, ascii("none")); break; - case 1: /* ½Ǽ */ - case 3: /* -> Ÿǽ . */ + case 1: /* ???????? */ + case 3: /* ???? -> ?????????????? ?????? ????. */ padd(ascii("fo:border"), sXML_CDATA,ascii("0.002cm solid #000000")); break; - case 2: /* Ǽ */ + case 2: /* ???????? */ padd(ascii("fo:border"), sXML_CDATA,ascii("0.035cm solid #000000")); break; - case 4: /* 2 */ + case 4: /* 2???? */ padd(ascii("style:border-line-width"), sXML_CDATA,ascii("0.002cm 0.035cm 0.002cm")); padd(ascii("fo:border"), sXML_CDATA,ascii("0.039cm double #000000")); break; @@ -2620,56 +2620,56 @@ void HwpReader::makeFStyle(FBoxStyle * fstyle) { switch( cell->linetype[0] ) { - case 1: /* ½Ǽ */ - case 3: /* -> Ÿǽ . */ + case 1: /* ???????? */ + case 3: /* ???? -> ?????????????? ?????? ????. */ padd(ascii("fo:border-left"), sXML_CDATA,ascii("0.002cm solid #000000")); break; - case 2: /* Ǽ */ + case 2: /* ???????? */ padd(ascii("fo:border-left"), sXML_CDATA,ascii("0.035cm solid #000000")); break; - case 4: /* 2 */ + case 4: /* 2???? */ padd(ascii("style:border-line-width-left"), sXML_CDATA,ascii("0.002cm 0.035cm 0.002cm")); padd(ascii("fo:border-left"), sXML_CDATA,ascii("0.039cm double #000000")); break; } switch( cell->linetype[1] ) { - case 1: /* ½Ǽ */ - case 3: /* -> Ÿǽ . */ + case 1: /* ???????? */ + case 3: /* ???? -> ?????????????? ?????? ????. */ padd(ascii("fo:border-right"), sXML_CDATA,ascii("0.002cm solid #000000")); break; - case 2: /* Ǽ */ + case 2: /* ???????? */ padd(ascii("fo:border-right"), sXML_CDATA,ascii("0.035cm solid #000000")); break; - case 4: /* 2 */ + case 4: /* 2???? */ padd(ascii("style:border-line-width-right"), sXML_CDATA,ascii("0.002cm 0.035cm 0.002cm")); padd(ascii("fo:border-right"), sXML_CDATA,ascii("0.039cm double #000000")); break; } switch( cell->linetype[2] ) { - case 1: /* ½Ǽ */ - case 3: /* -> Ÿǽ . */ + case 1: /* ???????? */ + case 3: /* ???? -> ?????????????? ?????? ????. */ padd(ascii("fo:border-top"), sXML_CDATA,ascii("0.002cm solid #000000")); break; - case 2: /* Ǽ */ + case 2: /* ???????? */ padd(ascii("fo:border-top"), sXML_CDATA,ascii("0.035cm solid #000000")); break; - case 4: /* 2 */ + case 4: /* 2???? */ padd(ascii("style:border-line-width-top"), sXML_CDATA,ascii("0.002cm 0.035cm 0.002cm")); padd(ascii("fo:border-top"), sXML_CDATA,ascii("0.039cm double #000000")); break; } switch( cell->linetype[3] ) { - case 1: /* ½Ǽ */ - case 3: /* -> Ÿǽ . */ + case 1: /* ???????? */ + case 3: /* ???? -> ?????????????? ?????? ????. */ padd(ascii("fo:border-bottom"), sXML_CDATA,ascii("0.002cm solid #000000")); break; - case 2: /* Ǽ */ + case 2: /* ???????? */ padd(ascii("fo:border-bottom"), sXML_CDATA,ascii("0.035cm solid #000000")); break; - case 4: /* 2 */ + case 4: /* 2???? */ padd(ascii("style:border-line-width-bottom"), sXML_CDATA,ascii("0.002cm 0.035cm 0.002cm")); padd(ascii("fo:border-bottom"), sXML_CDATA,ascii("0.039cm double #000000")); break; @@ -2761,7 +2761,7 @@ void HwpReader::makeChars(hchar *str, int size) /** - * ܳ Ưڰ ڰ CharShape ϴ + * ???????? ?????????? ???? ???? ?????? ?????? CharShape?? ???????? ???? */ void HwpReader::make_text_p0(HWPPara * para, sal_Bool bParaStart) { @@ -2778,7 +2778,7 @@ void HwpReader::make_text_p0(HWPPara * para, sal_Bool bParaStart) } if( d->bFirstPara && d->bInBody ) { - strcpy(buf,"[ ó]"); + strcpy(buf,"[?????? ????]"); padd(ascii("text:name"), sXML_CDATA, OUString(buf, strlen(buf), RTL_TEXTENCODING_EUC_KR)); rstartEl(ascii("text:bookmark"), rList); pList->clear(); @@ -2828,7 +2828,7 @@ void HwpReader::make_text_p0(HWPPara * para, sal_Bool bParaStart) /** - * ܳ Ưڰ ڵ ٸ CharShape ϴ + * ???????? ?????????? ?????? ???????? ???? CharShape?? ???????? ???? */ void HwpReader::make_text_p1(HWPPara * para,sal_Bool bParaStart) { @@ -2848,7 +2848,7 @@ void HwpReader::make_text_p1(HWPPara * para,sal_Bool bParaStart) if( d->bFirstPara && d->bInBody ) { /* for HWP's Bookmark */ - strcpy(buf,"[ ó]"); + strcpy(buf,"[?????? ????]"); padd(ascii("text:name"), sXML_CDATA, OUString(buf, strlen(buf), RTL_TEXTENCODING_EUC_KR)); rstartEl(ascii("text:bookmark"), rList); pList->clear(); @@ -2911,7 +2911,7 @@ void HwpReader::make_text_p1(HWPPara * para,sal_Bool bParaStart) /** - * Ưڰ ڵ ٸ CharShape 쿡 ó + * ???? ???? ?????????? ?????? ???????? ???? CharShape?? ???? ?????? ???? ???? */ void HwpReader::make_text_p3(HWPPara * para,sal_Bool bParaStart) { @@ -2927,7 +2927,7 @@ void HwpReader::make_text_p3(HWPPara * para,sal_Bool bParaStart) { if( !pstart ) STARTP; - strcpy(buf,"[ ó]"); + strcpy(buf,"[?????? ????]"); padd(ascii("text:name"), sXML_CDATA, OUString(buf, strlen(buf), RTL_TEXTENCODING_EUC_KR)); rstartEl(ascii("text:bookmark"), rList); pList->clear(); @@ -3050,9 +3050,9 @@ void HwpReader::make_text_p3(HWPPara * para,sal_Bool bParaStart) } makeTab((Tab *) para->hhstr[n]); break; - case CH_TEXT_BOX: /* 10 - ǥ/ؽƮڽ//ư/ؽƮ */ + case CH_TEXT_BOX: /* 10 - ??/??????????/????/????/???????????? ?? */ { -/* ϴ ǥ óϰ, text:pȿ ó. */ +/* ?????? ???? ????????, ?????? text:p???? ???????? ?????? ????. */ TxtBox *hbox = (TxtBox *) para->hhstr[n]; if( hbox->style.anchor_type == 0 ) @@ -3159,11 +3159,11 @@ void HwpReader::make_text_p3(HWPPara * para,sal_Bool bParaStart) l = 0; makeMailMerge((MailMerge *) para->hhstr[n]); break; - case CH_COMPOSE: /* 23 - ڰħ */ + case CH_COMPOSE: /* 23 - ???????? */ break; case CH_HYPHEN: // 24 break; - case CH_TOC_MARK: /* 25 Ʒ 3 ۾ؾ Ѵ. */ + case CH_TOC_MARK: /* 25 ?????? 3???? ???????? ????. */ if( !pstart ) {STARTP;} if( !tstart ) {STARTT;} makeChars(gstr, l); @@ -3196,7 +3196,7 @@ void HwpReader::make_text_p3(HWPPara * para,sal_Bool bParaStart) void HwpReader::makeFieldCode(FieldCode *hbox) { -/* Ʋ */ +/* ?????? */ if( hbox->type[0] == 4 && hbox->type[1] == 0 ) { padd(ascii("text:placeholder-type"), sXML_CDATA, ascii("text")); @@ -3207,7 +3207,7 @@ void HwpReader::makeFieldCode(FieldCode *hbox) rchars( OUString(gstr)); rendEl( ascii("text:placeholder") ); } -/* */ +/* ???????? */ else if( hbox->type[0] == 3 && hbox->type[1] == 0 ) { if( hconv( hbox->str3, gstr ).equals(OUString::createFromAscii("title"))) @@ -3235,7 +3235,7 @@ void HwpReader::makeFieldCode(FieldCode *hbox) rendEl( ascii("text:keywords") ); } } -/* */ +/* ???????? */ else if( hbox->type[0] == 3 && hbox->type[1] == 1 ) { if( hconv( hbox->str3, gstr ).equals(OUString::createFromAscii("User"))) @@ -3300,7 +3300,7 @@ void HwpReader::makeFieldCode(FieldCode *hbox) } } - else if( hbox->type[0] == 3 && hbox->type[1] == 2 ) /* 糯¥ */ + else if( hbox->type[0] == 3 && hbox->type[1] == 2 ) /* ???????? */ { if( hbox->m_pDate ) padd(ascii("style:data-style-name"), sXML_CDATA, @@ -3315,7 +3315,7 @@ void HwpReader::makeFieldCode(FieldCode *hbox) /** * Completed - * Ÿǽ ϸũ Reference ϳ hwp . + * ???????????????? ???????? Reference?? ???????? hwp???? ?? ?????? ????. */ void HwpReader::makeBookmark(Bookmark * hbox) { @@ -3326,7 +3326,7 @@ void HwpReader::makeBookmark(Bookmark * hbox) pList->clear(); rendEl(ascii("text:bookmark")); } - else if (hbox->type == 1) /* ϸũ ۰ ִ */ + else if (hbox->type == 1) /* ???? ???????? ???? ?????? ???? ???? */ { padd(ascii("text:name"), sXML_CDATA, (hconv(hbox->id, gstr))); rstartEl(ascii("text:bookmark-start"), rList); @@ -3587,10 +3587,10 @@ void HwpReader::makeTable(TxtBox * hbox) /** - * ؽƮڽ ̺ ĽѴ. + * ???????????? ???????? ????????. * 1. draw:style-name, draw:name, text:anchor-type, svg:width, * fo:min-height, svg:x, svg:y - * TODO : fo:background-color Į =>ŸϿ ڴ. + * TODO : fo:background-color?? ???? ???? ????=>???????? ???????? ?? ???? ????????. */ void HwpReader::makeTextBox(TxtBox * hbox) { @@ -3634,7 +3634,7 @@ void HwpReader::makeTextBox(TxtBox * hbox) Double2Str(WTMM(( hbox->box_ys + hbox->cap_ys) )) + ascii("mm")); rstartEl(ascii("draw:text-box"), rList); pList->clear(); - if( hbox->cap_pos % 2 ) /* ĸ ʿ ġѴ */ + if( hbox->cap_pos % 2 ) /* ?????? ?????? ???????? */ { parsePara(hbox->caption.first()); } @@ -3705,7 +3705,7 @@ void HwpReader::makeTextBox(TxtBox * hbox) { rstartEl(ascii("draw:text-box"), rList); pList->clear(); -/* ĸ ϰ, ʿ */ +/* ?????? ????????, ?????? ?????? */ if( hbox->style.cap_len > 0 && (hbox->cap_pos % 2) && hbox->type == TBL_TYPE ) { parsePara(hbox->caption.first()); @@ -3718,7 +3718,7 @@ void HwpReader::makeTextBox(TxtBox * hbox) { parsePara(hbox->plists[0].first()); } -/* ĸ ϰ, Ʒʿ */ +/* ?????? ????????, ???????? ?????? */ if( hbox->style.cap_len > 0 && !(hbox->cap_pos % 2) && hbox->type == TBL_TYPE) { parsePara(hbox->caption.first()); @@ -3746,7 +3746,7 @@ void HwpReader::makeTextBox(TxtBox * hbox) /** - * MathML ȯؾ Ѵ. + * MathML?? ???????? ????. * */ void HwpReader::makeFormula(TxtBox * hbox) @@ -3804,9 +3804,9 @@ void HwpReader::makeFormula(TxtBox * hbox) /** - * platform о鿩 href C:\ D:\ ̸ֶ - * C:\ => Ȩ, D:\ => Ʈ(/) ٲپִ ۾ ʿϴ. ̰ - * ķ ̴. + * platform?????? ?????????? href?? C:\?? D:\?? ?????? ???? ???????? ???????????? + * C:\ => ??????, D:\ => ????(/)?? ?????????? ?????? ????????. ?????? + * ?????? ???????????????? ???? ????????. */ void HwpReader::makeHyperText(TxtBox * hbox) { @@ -3849,9 +3849,9 @@ void HwpReader::makeHyperText(TxtBox * hbox) /** - * platform о鿩 href C:\ D:\ ̸ֶ - * C:\ => Ȩ, D:\ => Ʈ(/) ٲپ. ̰ - * ķ ̴. + * platform?????? ?????????? href?? C:\?? D:\?? ?????? ???? ???????? ???????????? + * C:\ => ??????, D:\ => ????(/)?? ????????. ?????? + * ?????? ???????????????? ???? ????????. */ void HwpReader::makePicture(Picture * hbox) { @@ -3901,7 +3901,7 @@ void HwpReader::makePicture(Picture * hbox) Double2Str(WTMM( hbox->box_ys + hbox->style.margin[1][2] + hbox->style.margin[1][3] + hbox->cap_ys )) + ascii("mm")); rstartEl(ascii("draw:text-box"), rList); pList->clear(); - if( hbox->cap_pos % 2 ) /* ĸ ʿ ġѴ */ + if( hbox->cap_pos % 2 ) /* ?????? ?????? ???????? */ { parsePara(hbox->caption.first()); } @@ -4048,7 +4048,7 @@ void HwpReader::makePicture(Picture * hbox) if( hbox->style.cap_len > 0 ) { rendEl( ascii("text:p")); - if( !(hbox->cap_pos % 2)) /* ĸ Ʒʿ ġϸ, */ + if( !(hbox->cap_pos % 2)) /* ?????? ???????? ????????, */ { parsePara(hbox->caption.first()); } @@ -4068,10 +4068,6 @@ void HwpReader::makePicture(Picture * hbox) } -void HwpReader::makePictureOLE(Picture * ) -{ -} - #define DBL(x) ((x) * (x)) void HwpReader::makePictureDRAW(HWPDrawingObject *drawobj, Picture * hbox) { @@ -4130,13 +4126,13 @@ void HwpReader::makePictureDRAW(HWPDrawingObject *drawobj, Picture * hbox) ZZPoint pt[3], r_pt[3]; for(i = 0 ; i < 3 ; i++ ){ pt[i].x = pal->pt[i].x - drawobj->property.rot_originx; - /* ǥ ȯ */ + /* ???????????? ???? */ pt[i].y = -(pal->pt[i].y - drawobj->property.rot_originy); } double rotate, skewX ; - /* 2 - ȸ */ + /* 2 - ?????? ???? */ if( pt[1].x == pt[0].x ){ if( pt[1].y > pt[0].y ) rotate = PI/2; @@ -4153,7 +4149,7 @@ void HwpReader::makePictureDRAW(HWPDrawingObject *drawobj, Picture * hbox) r_pt[i].y = (int)(pt[i].y * cos(-(rotate)) + pt[i].x * sin(-(rotate))); } - /* 4 - ذ */ + /* 4 - ???? ???? */ if( r_pt[2].y == r_pt[1].y ) skewX = 0; else @@ -4191,7 +4187,7 @@ void HwpReader::makePictureDRAW(HWPDrawingObject *drawobj, Picture * hbox) } switch (drawobj->type) { - case HWPDO_LINE: /* - ǥ, ǥ. */ + case HWPDO_LINE: /* ?? - ????????, ??????. */ if( drawobj->u.line_arc.flip & 0x01 ) { padd(ascii("svg:x1"), sXML_CDATA, @@ -4225,7 +4221,7 @@ void HwpReader::makePictureDRAW(HWPDrawingObject *drawobj, Picture * hbox) pList->clear(); rendEl(ascii("draw:line")); break; - case HWPDO_RECT: /* 簢 - ġ, / */ + case HWPDO_RECT: /* ?????? - ????????, ????/???? */ if( !bIsRotate ) { padd(ascii("svg:x"), sXML_CDATA, @@ -4267,8 +4263,8 @@ void HwpReader::makePictureDRAW(HWPDrawingObject *drawobj, Picture * hbox) } rendEl(ascii("draw:rect")); break; - case HWPDO_ELLIPSE: /* Ÿ - ġ, / */ - case HWPDO_ADVANCED_ELLIPSE: /* Ÿ */ + case HWPDO_ELLIPSE: /* ???? - ????????, ????/???? */ + case HWPDO_ADVANCED_ELLIPSE: /* ?????? ???? */ { if( !bIsRotate ) { @@ -4317,10 +4313,10 @@ void HwpReader::makePictureDRAW(HWPDrawingObject *drawobj, Picture * hbox) break; } - case HWPDO_ARC: /* ȣ */ + case HWPDO_ARC: /* ?? */ case HWPDO_ADVANCED_ARC: { - /* ȣϰ쿡, Ÿǽ ü Ÿ ũ⸦ Ѵ. */ + /* ??????????, ???????????? ???? ?????? ?????? ???????? ????. */ uint flip = drawobj->u.line_arc.flip; if( !bIsRotate ) { @@ -4427,7 +4423,7 @@ void HwpReader::makePictureDRAW(HWPDrawingObject *drawobj, Picture * hbox) break; } - case HWPDO_CURVE: /* : ٰ ȯ. */ + case HWPDO_CURVE: /* ???? : ?????????? ????. */ { sal_Bool bIsNatural = sal_True; // os unused @@ -4535,7 +4531,7 @@ void HwpReader::makePictureDRAW(HWPDrawingObject *drawobj, Picture * hbox) break; } case HWPDO_CLOSED_FREEFORM: - case HWPDO_FREEFORM: /* ٰ */ + case HWPDO_FREEFORM: /* ?????? */ { bool bIsPolygon = false; @@ -4678,8 +4674,8 @@ void HwpReader::makeLine(Line * ) /** - * Է-ּ- : ڿ ش. - * Ե , ڿ ̾Ƴ ĽѴ. + * ????-????-???????? : ?????????? ???? ?????? ????????. + * ?????? ?????? ?? ??????, ???? ???????? ???????? ????????. */ void HwpReader::makeHidden(Hidden * hbox) { @@ -4709,16 +4705,7 @@ void HwpReader::makeHidden(Hidden * hbox) /** - * ̹ master-page ۾ Ǿ ۾ ʿ䰡 . - * TODO : ߿ ҽҶ . - */ -void HwpReader::makeHeaderFooter(HeaderFooter * ) -{ -} - - -/** - * ִ text:footnote, ִ text:endnote ȯ + * ?????? text:footnote, ?????? text:endnote?? ???? */ void HwpReader::makeFootnote(Footnote * hbox) { @@ -4816,15 +4803,6 @@ rendEl(ascii("text:endnote-ref")); } -/** - * input new number of page/footnote/endnote/picture/table/formula number - * not support operation in OO writer - */ -void HwpReader::makeNewNum(NewNum * ) /*hbox */ -{ -} - - void HwpReader::makeShowPageNum() { ShowPageNum *hbox = d->pPn; @@ -4835,7 +4813,7 @@ void HwpReader::makeShowPageNum() nPos = 2; else if( hbox->where == 3 || hbox->where == 6 ) nPos = 3; - else /* 찡 ϸ ȵȴ. */ + else /* ?? ?????? ???????? ??????. */ { if( d->nPnPos == 1 ) nPos = 1; @@ -4879,16 +4857,6 @@ void HwpReader::makeShowPageNum() /** - * disappear page-number/header/footer/border in current page. - * not support operation in OO writer. - */ -/*hbox */ -void HwpReader::makePageNumCtrl(PageNumCtrl * ) -{ -} - - -/** * mail merge operation using hwp adressbook and hwp data form. * not support operation in OO writer. */ @@ -4900,24 +4868,6 @@ void HwpReader::makeMailMerge(MailMerge * hbox) /** - * write character on another character. - * not support operation in OO writer. - */ -void HwpReader::makeCompose(Compose * ) /*hbox */ -{ -} - - -/** - * In hwp, hyphen is adapted for only one character to be placed hyphen. - * but, OO do it as paragraph. - */ -void HwpReader::makeHyphen(Hyphen * ) /*hbox */ -{ -} - - -/** * Make heading contents file using toc marks * not support operation. */ @@ -4942,24 +4892,6 @@ void HwpReader::makeOutline(Outline * hbox) } -void HwpReader::makeKeepSpace(KeepSpace * ) -{ - padd(ascii("text:c"), sXML_CDATA, ascii("1")); - rstartEl(ascii("text:s"), rList); - pList->clear(); - rendEl(ascii("text:s")); -} - - -void HwpReader::makeFixedSpace(FixedSpace * ) -{ - padd(ascii("text:c"), sXML_CDATA, ascii("1")); - rstartEl(ascii("text:s"), rList); - pList->clear(); - rendEl(ascii("text:s")); -} - - void HwpReader::parsePara(HWPPara * para, sal_Bool bParaStart) { @@ -4977,7 +4909,7 @@ void HwpReader::parsePara(HWPPara * para, sal_Bool bParaStart) if( d->bFirstPara && d->bInBody ) { /* for HWP's Bookmark */ - strcpy(buf,"[ ó]"); + strcpy(buf,"[?????? ????]"); padd(ascii("text:name"), sXML_CDATA, OUString(buf, strlen(buf), RTL_TEXTENCODING_EUC_KR)); rstartEl(ascii("text:bookmark"), rList); pList->clear(); |