LibreOffice Module hwpfilter (master) 1
|
This class implements the external Parser interface. More...
#include <hwpreader.hxx>
Public Member Functions | |
HwpReader () | |
virtual | ~HwpReader () override |
virtual sal_Bool SAL_CALL | filter (const Sequence< PropertyValue > &aDescriptor) override |
parseStream does Parser-startup initializations More... | |
virtual void SAL_CALL | cancel () override |
void | setDocumentHandler (Reference< XDocumentHandler > const &xHandler) |
bool | importHStream (std::unique_ptr< HStream > stream) |
Private Member Functions | |
void | makeMeta () |
make office:meta Completed More... | |
void | makeStyles () |
void | makeDrawMiscStyle (HWPDrawingObject *) |
void | makeAutoStyles () |
parse automatic styles from hwpfile Define a style that is automatically reflected. More... | |
void | makeMasterStyles () |
void | makeBody () |
make office:body More... | |
void | makeTextDecls () |
make text decls More... | |
void | parsePara (HWPPara *para) |
void | make_text_p0 (HWPPara *para, bool bParaStart) |
If no special characters in the paragraph and all characters use the same CharShape. More... | |
void | make_text_p1 (HWPPara *para, bool bParaStart) |
void | make_text_p3 (HWPPara *para, bool bParaStart) |
Special characters are in the paragraph and characters use different CharShapes. More... | |
void | makeChars (hchar_string &rStr) |
void | makeFieldCode (hchar_string const &rStr, FieldCode const *hbox) |
void | makeBookmark (Bookmark const *hbox) |
Completed In LibreOffice, refer bookmarks as reference, but hwp doesn't have the sort of feature. More... | |
void | makeDateFormat (DateCode *hbox) |
void | makeDateCode (DateCode *hbox) |
void | makeTab () |
void | makeTable (TxtBox *hbox) |
void | makeTextBox (TxtBox *hbox) |
Parses the text boxes and tables. More... | |
void | makeFormula (TxtBox *hbox) |
It must be converted into MathML. More... | |
void | makeHyperText (TxtBox *hbox) |
Read the platform information. More... | |
void | makePicture (Picture *hbox) |
Read the platform information. More... | |
void | makePictureDRAW (HWPDrawingObject *drawobj, const Picture *hbox) |
void | makeLine () |
void | makeHidden (Hidden *hbox) |
Input-comment-hidden description: shows a hidden explanation to the users. More... | |
void | makeFootnote (Footnote *hbox) |
Converts footnote to text:footnote, endnote to text:endnote. More... | |
void | makeAutoNum (AutoNum const *hbox) |
page/footnote/endnote/picture/table/formula number More... | |
void | makeShowPageNum () |
void | makeMailMerge (MailMerge *hbox) |
mail merge operation using hwp addressbook and hwp data form. More... | |
void | makeOutline (Outline const *hbox) |
void | makePageStyle () |
Create a style for the page. More... | |
void | makeColumns (ColumnDef const *) |
void | makeTStyle (CharShape const *) |
void | makePStyle (ParaShape const *) |
Make the style of the Paragraph. More... | |
void | makeFStyle (FBoxStyle *) |
Create a style for the Floating objects. More... | |
void | makeCaptionStyle (FBoxStyle *) |
void | makeDrawStyle (HWPDrawingObject *, FBoxStyle *) |
void | makeTableStyle (Table *) |
void | parseCharShape (CharShape const *) |
Create the properties for text styles. More... | |
void | parseParaShape (ParaShape const *) |
Create the properties that correspond to the real Paragraph. More... | |
void | startEl (const OUString &el) |
void | endEl (const OUString &el) |
void | chars (const OUString &s) |
Static Private Member Functions | |
static OUString | getTStyleName (int) |
static OUString | getPStyleName (int) |
Private Attributes | |
Reference< XDocumentHandler > | m_rxDocumentHandler |
rtl::Reference< AttributeListImpl > | mxList |
HWPFile | hwpfile |
std::unique_ptr< HwpReaderPrivate > | d |
This class implements the external Parser interface.
Definition at line 77 of file hwpreader.hxx.
HwpReader::HwpReader | ( | ) |
Definition at line 82 of file hwpreader.cxx.
References d.
|
overridevirtual |
Definition at line 87 of file hwpreader.cxx.
|
inlineoverridevirtual |
Definition at line 88 of file hwpreader.hxx.
|
private |
Definition at line 4711 of file hwpreader.cxx.
References m_rxDocumentHandler.
Referenced by makeAutoNum(), makeChars(), makeDateCode(), makeDateFormat(), makeDrawMiscStyle(), makeFieldCode(), makeFootnote(), makeMailMerge(), makeMeta(), makeOutline(), makePageStyle(), makePicture(), and makeShowPageNum().
|
private |
Definition at line 4704 of file hwpreader.cxx.
References m_rxDocumentHandler.
Referenced by importHStream(), make_text_p0(), make_text_p1(), make_text_p3(), makeAutoNum(), makeAutoStyles(), makeBody(), makeBookmark(), makeCaptionStyle(), makeColumns(), makeDateCode(), makeDateFormat(), makeDrawMiscStyle(), makeDrawStyle(), makeFieldCode(), makeFootnote(), makeFStyle(), makeHidden(), makeHyperText(), makeMasterStyles(), makeMeta(), makePageStyle(), makePicture(), makePictureDRAW(), makePStyle(), makeShowPageNum(), makeStyles(), makeTab(), makeTable(), makeTableStyle(), makeTextBox(), makeTextDecls(), makeTStyle(), and parsePara().
parseStream does Parser-startup initializations
Definition at line 159 of file hwpreader.cxx.
References aBuffer, utl::MediaDescriptor::addInputStream(), importHStream(), utl::MediaDescriptor::PROP_INPUTSTREAM, and stream.
|
staticprivate |
Definition at line 2606 of file hwpreader.cxx.
References index.
Referenced by make_text_p0(), make_text_p1(), make_text_p3(), and parsePara().
|
staticprivate |
Definition at line 2600 of file hwpreader.cxx.
References index.
Referenced by make_text_p0(), make_text_p1(), and make_text_p3().
bool HwpReader::importHStream | ( | std::unique_ptr< HStream > | stream | ) |
Definition at line 115 of file hwpreader.cxx.
References endEl(), hwpfile, m_rxDocumentHandler, makeAutoStyles(), makeBody(), makeMasterStyles(), makeMeta(), makeStyles(), mxList, HWPFile::ReadHwpFile(), startEl(), stream, and sXML_CDATA.
Referenced by filter().
|
private |
If no special characters in the paragraph and all characters use the same CharShape.
Definition at line 2622 of file hwpreader.cxx.
References CH_END_PARA, CH_SPACE, HWPPara::cshape, d, endEl(), HWPPara::GetParaShape(), getPStyleName(), getTStyleName(), hcharconv(), HWPPara::hhstr, ParaShape::index, makeChars(), makeShowPageNum(), mxList, startEl(), sXML_CDATA, and UNICODE.
Referenced by parsePara().
|
private |
Definition at line 2690 of file hwpreader.cxx.
References CH_END_PARA, CH_SPACE, HWPPara::cshape, d, endEl(), HWPPara::GetCharShape(), HWPPara::GetParaShape(), getPStyleName(), getTStyleName(), hcharconv(), HWPPara::hhstr, CharShape::index, ParaShape::index, makeChars(), makeShowPageNum(), mxList, n, startEl(), sXML_CDATA, and UNICODE.
Referenced by makePictureDRAW(), and parsePara().
|
private |
Special characters are in the paragraph and characters use different CharShapes.
Definition at line 2775 of file hwpreader.cxx.
References FBoxStyle::anchor_type, BUTTON_TYPE, CH_AUTO_NUM, CH_BOOKMARK, CH_COMPOSE, CH_DATE_CODE, CH_DATE_FORM, CH_END_PARA, CH_FIELD, CH_FIXED_SPACE, CH_FOOTNOTE, CH_HIDDEN, CH_HYPHEN, CH_INDEX_MARK, CH_KEEP_SPACE, CH_LINE, CH_MAIL_MERGE, CH_NEW_NUM, CH_OUTLINE, CH_PAGE_NUM_CTRL, CH_PICTURE, CH_SPACE, CH_TAB, CH_TEXT_BOX, CH_TOC_MARK, d, endEl(), EQU_TYPE, HWPPara::GetCharShape(), HWPPara::GetParaShape(), getPStyleName(), getTStyleName(), hcharconv(), HWPPara::hhstr, HYPERTEXT_TYPE, CharShape::index, ParaShape::index, FieldCode::location_info, makeAutoNum(), makeBookmark(), makeChars(), makeDateCode(), makeFieldCode(), makeFootnote(), makeHidden(), makeHyperText(), makeLine(), makeMailMerge(), makeOutline(), makePicture(), makeShowPageNum(), makeTab(), makeTextBox(), mxList, n, pos, startEl(), FieldCode::str3, FBox::style, sXML_CDATA, TBL_TYPE, TXT_TYPE, FieldCode::type, TxtBox::type, and UNICODE.
Referenced by parsePara().
|
private |
page/footnote/endnote/picture/table/formula number
Definition at line 4546 of file hwpreader.cxx.
References chars(), endEl(), ENNUM_AUTO, EQUNUM_AUTO, FNNUM_AUTO, mxList, AutoNum::number, PGNUM_AUTO, PICNUM_AUTO, startEl(), sXML_CDATA, TBLNUM_AUTO, and AutoNum::type.
Referenced by make_text_p3().
|
private |
parse automatic styles from hwpfile Define a style that is automatically reflected.
For example, defining styles of each paragraph, tables, header, and etc,. at here. In Body, use the defined style.
Definition at line 749 of file hwpreader.cxx.
References FBoxStyle::boxtype, FBoxStyle::cell, endEl(), HWPFile::getCharShape(), HWPFile::getCharShapeCount(), HWPFile::getDateCode(), HWPFile::getDateFormatCount(), HWPFile::getFBoxStyle(), HWPFile::getFBoxStyleCount(), HWPFile::getPageNumber(), HWPFile::getPageNumberCount(), HWPFile::getParaShape(), HWPFile::getParaShapeCount(), HWPFile::getTable(), HWPFile::getTableCount(), hwpfile, i, makeDateFormat(), makeDrawStyle(), makeFStyle(), makePageStyle(), makePStyle(), makeTableStyle(), makeTStyle(), mxList, startEl(), sXML_CDATA, and ShowPageNum::where.
Referenced by importHStream().
|
private |
make office:body
Definition at line 187 of file hwpreader.cxx.
References d, endEl(), HWPFile::GetFirstPara(), hwpfile, makeTextDecls(), parsePara(), and startEl().
Referenced by importHStream().
|
private |
Completed In LibreOffice, refer bookmarks as reference, but hwp doesn't have the sort of feature.
Definition at line 3191 of file hwpreader.cxx.
References endEl(), hstr2OUString(), Bookmark::id, mxList, startEl(), sXML_CDATA, and Bookmark::type.
Referenced by make_text_p3().
|
private |
Definition at line 2138 of file hwpreader.cxx.
References FBoxStyle::anchor_type, FBoxStyle::boxnum, FBoxStyle::boxtype, FBoxStyle::cell, CHAR_ANCHOR, Cell::color, endEl(), hcolor2str(), Cell::linetype, mxList, PARA_ANCHOR, Cell::shade, startEl(), sXML_CDATA, FBoxStyle::txtflow, FBoxStyle::xpos, and FBoxStyle::ypos.
Referenced by makeFStyle().
|
private |
Definition at line 2612 of file hwpreader.cxx.
References chars(), and fromHcharStringToOUString().
Referenced by make_text_p0(), make_text_p1(), make_text_p3(), and makeHidden().
|
private |
Definition at line 1739 of file hwpreader.cxx.
References endEl(), mxList, ColumnDef::ncols, ColumnDef::separator, ColumnDef::spacing, startEl(), and sXML_CDATA.
Referenced by makePageStyle().
|
private |
Definition at line 3365 of file hwpreader.cxx.
References chars(), endEl(), DateCode::GetString(), hstr2OUString(), DateCode::key, mxList, startEl(), and sXML_CDATA.
Referenced by make_text_p3().
|
private |
Definition at line 3217 of file hwpreader.cxx.
References chars(), DateCode::date, DATE_SIZE, DateCode::DAY, defaultform, endEl(), DateCode::format, hstr2OUString(), DateCode::key, mxList, startEl(), and sXML_CDATA.
Referenced by makeAutoStyles().
|
private |
Definition at line 397 of file hwpreader.cxx.
References HWPDOProperty::angle, ArrowShape, HWPInfo::back_info, base64_encode_string(), HWPDOProperty::center_x, HWPDOProperty::center_y, chars(), HWPDrawingObject::child, PaperBackInfo::color, EmPicture::data, endEl(), HWPDOProperty::flag, HWPDOProperty::fromcolor, HWPFile::GetEmPictureByName(), HWPFile::GetHWPInfo(), HWPDOProperty::gstyle, hstr2OUString(), HWPDO_ADVANCED_ARC, HWPDO_ARC, HWPDO_CONTAINER, HWPDO_FREEFORM, HWPDO_LINE, hwpfile, HWPDrawingObject::index, PaperBackInfo::isset, kstr2hstr(), HWPDOProperty::line_color, HWPDOProperty::line_hstyle, HWPDOProperty::line_pstyle, HWPDOProperty::line_tstyle, HWPDOProperty::line_width, o3tl::make_unsigned(), makeDrawMiscStyle(), mxList, HWPDrawingObject::next, HWPDOProperty::pattern_color, HWPDOProperty::pattern_type, HWPDOProperty::pictype, HWPDrawingObject::property, rgb2str(), EmPicture::size, startEl(), sXML_CDATA, HWPDOProperty::szPatternFile, HWPDOProperty::tocolor, type, HWPDrawingObject::type, urltounix(), and WTMM.
Referenced by makeDrawMiscStyle(), and makeStyles().
|
private |
Definition at line 1962 of file hwpreader.cxx.
References FBoxStyle::anchor_type, ArrowShape, CHAR_ANCHOR, HWPDrawingObject::child, endEl(), HWPDOProperty::fill_color, HWPDOProperty::flag, HWPDO_ADVANCED_ARC, HWPDO_ARC, HWPDO_FREEFORM, HWPDO_LINE, HWPDrawingObject::index, HWPDOProperty::line_color, HWPDOProperty::line_hstyle, HWPDOProperty::line_pstyle, HWPDOProperty::line_tstyle, HWPDOProperty::line_width, HWPDOProperty::luminance, o3tl::make_unsigned(), makeDrawStyle(), mxList, HWPDrawingObject::next, HWPDOProperty::nstep, HWPDOProperty::pattern_type, HWPDrawingObject::property, rgb2str(), startEl(), sXML_CDATA, FBoxStyle::txtflow, HWPDrawingObject::type, and WTMM.
Referenced by makeAutoStyles(), and makeDrawStyle().
|
private |
Definition at line 3067 of file hwpreader.cxx.
References chars(), d, endEl(), fromHcharStringToOUString(), hstr2OUString(), FieldCode::m_pDate, mxList, startEl(), FieldCode::str2, FieldCode::str3, sXML_CDATA, and FieldCode::type.
Referenced by make_text_p3().
|
private |
Converts footnote to text:footnote, endnote to text:endnote.
Definition at line 4506 of file hwpreader.cxx.
References chars(), endEl(), mxList, Footnote::number, parsePara(), Footnote::plist, startEl(), sXML_CDATA, and Footnote::type.
Referenced by make_text_p3().
|
private |
It must be converted into MathML.
Definition at line 3597 of file hwpreader.cxx.
References hcharconv(), HWPPara::hhstr, m_rxDocumentHandler, mxList, HWPPara::Next(), Formula::parse(), TxtBox::plists, Formula::setAttributeListImpl(), Formula::setDocumentHandler(), and UNICODE.
Referenced by makeTextBox().
|
private |
Create a style for the Floating objects.
Definition at line 2348 of file hwpreader.cxx.
References FBoxStyle::anchor_type, FBoxStyle::boxnum, FBoxStyle::boxtype, FBoxStyle::cap_len, FBoxStyle::cell, CHAR_ANCHOR, Cell::color, endEl(), hcolor2str(), Cell::linetype, makeCaptionStyle(), FBoxStyle::margin, mxList, PARA_ANCHOR, Cell::shade, startEl(), sXML_CDATA, FBoxStyle::txtflow, WTMM, FBoxStyle::xpos, and FBoxStyle::ypos.
Referenced by makeAutoStyles().
|
private |
Input-comment-hidden description: shows a hidden explanation to the users.
Parse out only strings, but it may contain paragraphs.
Definition at line 4471 of file hwpreader.cxx.
References endEl(), hcharconv(), HWPPara::hhstr, makeChars(), mxList, HWPPara::Next(), Hidden::plist, startEl(), sXML_CDATA, and UNICODE.
Referenced by make_text_p3().
|
private |
Read the platform information.
if the platform is Linux or Solaris, it needs to change C: \ => Home, D: \ => changed to root (/). Because HWP uses DOS emulator.
Definition at line 3647 of file hwpreader.cxx.
References HyperText::bookmark, endEl(), HyperText::filename, HWPFile::GetHyperText(), hstr2ksstr(), hwpfile, kstr2hstr(), makeTextBox(), mxList, startEl(), sXML_CDATA, and urltounix().
Referenced by make_text_p3().
|
private |
Definition at line 4460 of file hwpreader.cxx.
References mxList, startEl(), and sXML_CDATA.
Referenced by make_text_p3().
|
private |
mail merge operation using hwp addressbook and hwp data form.
not support operation in OO writer.
Definition at line 4634 of file hwpreader.cxx.
References chars(), MailMerge::GetString(), and hstr2OUString().
Referenced by make_text_p3().
|
private |
Definition at line 880 of file hwpreader.cxx.
References d, endEl(), HWPFile::getHeaderFooter(), HWPFile::getHeaderFooterCount(), HWPFile::getMaxSettedPage(), HWPFile::GetPageMasterNum(), HWPFile::getPageNumber(), HWPFile::getPageNumberCount(), hwpfile, i, utl::ConfigManager::IsFuzzing(), HeaderFooter::m_nPageNumber, ShowPageNum::m_nPageNumber, makeShowPageNum(), mxList, parsePara(), SAL_WARN, startEl(), sXML_CDATA, HeaderFooter::type, and HeaderFooter::where.
Referenced by importHStream().
|
private |
make office:meta Completed
Definition at line 233 of file hwpreader.cxx.
References HWPSummary::author, chars(), d, HWPSummary::date, day, endEl(), HWPSummary::etc, HWPFile::GetHWPInfo(), hstr2OUString(), hwpfile, HWPSummary::keyword, month, o3tl::sprintf(), startEl(), HWPSummary::subject, HWPInfo::summary, HWPSummary::title, and year.
Referenced by importHStream().
|
private |
Definition at line 4641 of file hwpreader.cxx.
References chars(), Outline::GetUnicode(), and Outline::kind.
Referenced by make_text_p3().
|
private |
Create a style for the page.
This includes the header/footer, footnote and more. TODO: fo: background-color (no information)
Definition at line 1474 of file hwpreader.cxx.
References HWPInfo::back_info, base64_encode_string(), HWPInfo::beginpagenum, HWPInfo::borderline, HWPInfo::bordermargin, chars(), PaperBackInfo::color, PaperBackInfo::data, endEl(), PaperBackInfo::filename, PaperBackInfo::flag, HWPInfo::fnlinetype, HWPFile::getColumnCount(), HWPFile::GetColumnDef(), HWPFile::GetHWPInfo(), hstr2OUString(), hwpfile, i, utl::ConfigManager::IsFuzzing(), PaperBackInfo::isset, kstr2hstr(), makeColumns(), mxList, HWPInfo::paper, rgb2str(), SAL_WARN, PaperBackInfo::size, HWPInfo::splinefn, HWPInfo::splinetext, startEl(), sXML_CDATA, PaperBackInfo::type, and urltounix().
Referenced by makeAutoStyles().
|
private |
Read the platform information.
if the platform is Linux or Solaris, it needs to change C: \ => Home, D: \ => changed to root (/). Because HWP uses DOS emulator.
Definition at line 3695 of file hwpreader.cxx.
References FBoxStyle::anchor_type, base64_encode_string(), FBox::box_xs, FBox::box_ys, FBoxStyle::boxnum, FBoxStyle::cap_len, Picture::cap_pos, FBox::cap_ys, Picture::caption, CHAR_ANCHOR, chars(), d, EmPicture::data, PicDefOle::embname, endEl(), Picture::follow, HWPFile::GetEmPicture(), PicDefDraw::hdo, hstr2OUString(), hwpfile, Picture::ishyper, kstr2hstr(), makePictureDRAW(), FBoxStyle::margin, mxList, HWPFile::oledata, PAGE_ANCHOR, PAPER_ANCHOR, PARA_ANCHOR, parsePara(), PicDefUnknown::path, FBox::pgno, FBox::pgx, FBox::pgy, PicDef::picdraw, Picture::picinfo, PicDef::picole, Picture::pictype, PICTYPE_DRAW, PICTYPE_EMBED, PICTYPE_FILE, PICTYPE_OLE, PICTYPE_UNKNOWN, PicDef::picun, EmPicture::size, sprintf(), startEl(), FBox::style, sXML_CDATA, urltounix(), WTMM, FBox::zorder, and PicDefDraw::zorder.
Referenced by make_text_p3().
|
private |
Definition at line 3898 of file hwpreader.cxx.
References a, FBoxStyle::anchor_type, HWPDrawingObject::arc, calcAngle(), CHAR_ANCHOR, o3tl::checked_add(), HWPDrawingObject::child, Cx, Cy, endEl(), HWPDrawingObject::extent, HWPDOProperty::fill_color, HWPDOProperty::flag, HWPDOLine::flip, HWPDrawingObject::freeform, HWPFile::GetHWPInfo(), basegfx::Tuple2D< typename TYPE >::getX(), basegfx::Tuple2D< typename TYPE >::getY(), HWPDOTextBox::h, ZZSize::h, HWPDO_ADVANCED_ARC, HWPDO_ADVANCED_ELLIPSE, HWPDO_ARC, HWPDO_CLOSED_FREEFORM, HWPDO_CONTAINER, HWPDO_CURVE, HWPDO_ELLIPSE, HWPDO_FLAG_AS_TEXTBOX, HWPDO_FLAG_DRAW_PIE, HWPDO_FLAG_ROTATION, HWPDO_FREEFORM, HWPDO_LINE, HWPDO_RECT, HWPDO_TEXTBOX, hwpfile, i, HWPDrawingObject::index, HWPDrawingObject::line_arc, make_text_p1(), o3tl::make_unsigned(), makePictureDRAW(), mxList, n, NaturalSpline(), HWPDrawingObject::next, HWPPara::Next(), HWPDOFreeForm::npt, HWPDrawingObject::offset2, PAGE_ANCHOR, HWPInfo::paper, PAPER_ANCHOR, PARA_ANCHOR, HWPDOProperty::parall, HWPDOProperty::pattern_type, PeriodicSpline(), FBox::pgno, FBox::pgx, FBox::pgy, HWPDOProperty::pPara, HWPDrawingObject::property, pt, HWPDOFreeForm::pt, ZZParall::pt, basegfx::rad2deg(), HWPDOArc::radial, HWPDOProperty::rot_originx, HWPDOProperty::rot_originy, rotate(), basegfx::Tuple2D< typename TYPE >::setX(), basegfx::Tuple2D< typename TYPE >::setY(), startEl(), FBox::style, sXML_CDATA, HWPDrawingObject::textbox, HWPDrawingObject::type, HWPDrawingObject::u, value, ZZSize::w, WTMM, x, ZZPoint::x, y, and ZZPoint::y.
Referenced by makePicture(), and makePictureDRAW().
|
private |
Make the style of the Paragraph.
Definition at line 1403 of file hwpreader.cxx.
References ParaShape::cshape, TabSet::dot_continue, endEl(), i, ParaShape::indent, ParaShape::index, ParaShape::left_margin, MAXTABS, mxList, parseCharShape(), parseParaShape(), TabSet::position, startEl(), sXML_CDATA, ParaShape::tabs, TabSet::type, and WTMM.
Referenced by makeAutoStyles().
|
private |
Definition at line 4580 of file hwpreader.cxx.
References chars(), d, endEl(), mxList, nPos, ShowPageNum::shape, startEl(), sXML_CDATA, and ShowPageNum::where.
Referenced by make_text_p0(), make_text_p1(), make_text_p3(), makeMasterStyles(), and parsePara().
|
private |
Definition at line 625 of file hwpreader.cxx.
References HWPInfo::beginfnnum, FBoxStyle::boxtype, FBoxStyle::cell, endEl(), HWPStyle::GetCharShape(), HWPFile::getFBoxStyle(), HWPFile::getFBoxStyleCount(), HWPFile::GetHWPInfo(), HWPFile::GetHWPStyle(), HWPStyle::GetName(), HWPStyle::GetParaShape(), hstr2OUString(), hwpfile, i, kstr2hstr(), HWPFile::linenumber, makeDrawMiscStyle(), mxList, HWPStyle::Num(), parseCharShape(), parseParaShape(), startEl(), and sXML_CDATA.
Referenced by importHStream().
|
private |
Definition at line 3376 of file hwpreader.cxx.
References endEl(), and startEl().
Referenced by make_text_p3().
|
private |
Definition at line 3383 of file hwpreader.cxx.
References FBoxStyle::boxnum, Table::cells, Table::columns, endEl(), i, TxtBox::m_pTable, mxList, Columns::nCount, parsePara(), TxtBox::plists, startEl(), FBox::style, and sXML_CDATA.
Referenced by makeTextBox().
|
private |
Definition at line 1803 of file hwpreader.cxx.
References Table::box, FBox::box_xs, FBoxStyle::boxnum, Table::cells, Cell::color, Table::columns, Columns::data, Rows::data, endEl(), hcolor2str(), i, Cell::linetype, mxList, Columns::nCount, Rows::nCount, Table::rows, Cell::shade, startEl(), FBox::style, sXML_CDATA, Cell::ver_align, and WTMM.
Referenced by makeAutoStyles().
|
private |
Parses the text boxes and tables.
Definition at line 3454 of file hwpreader.cxx.
References FBoxStyle::anchor_type, FBox::box_xs, FBox::box_ys, FBoxStyle::boxnum, FBoxStyle::cap_len, TxtBox::cap_pos, FBox::cap_xs, FBox::cap_ys, TxtBox::caption, CHAR_ANCHOR, endEl(), EQU_TYPE, makeFormula(), makeTable(), FBoxStyle::margin, mxList, PAGE_ANCHOR, PAPER_ANCHOR, PARA_ANCHOR, parsePara(), FBox::pgno, FBox::pgx, FBox::pgy, TxtBox::plists, startEl(), FBox::style, sXML_CDATA, TBL_TYPE, TXT_TYPE, TxtBox::type, WTMM, x, y, and FBox::zorder.
Referenced by make_text_p3(), and makeHyperText().
|
private |
make text decls
Definition at line 202 of file hwpreader.cxx.
References endEl(), mxList, startEl(), and sXML_CDATA.
Referenced by makeBody().
|
private |
Definition at line 1789 of file hwpreader.cxx.
References endEl(), CharShape::index, mxList, parseCharShape(), startEl(), and sXML_CDATA.
Referenced by makeAutoStyles().
|
private |
Create the properties for text styles.
Definition at line 1268 of file hwpreader.cxx.
References CharShape::attr, CharShape::color, d, CharShape::font, HWPFont::GetFontName(), HWPFile::GetHWPFont(), getRepFamilyName(), hcolor2str(), hstr2ksstr(), hwpfile, if(), kstr2hstr(), mxList, CharShape::ratio, CharShape::shade, size, CharShape::size, CharShape::space, and sXML_CDATA.
Referenced by makePStyle(), makeStyles(), and makeTStyle().
|
private |
Definition at line 4648 of file hwpreader.cxx.
References HWPPara::contain_cshape, HWPPara::ctrlflag, d, endEl(), HWPPara::GetParaShape(), getPStyleName(), ParaShape::index, make_text_p0(), make_text_p1(), make_text_p3(), makeShowPageNum(), mxList, HWPPara::nch, HWPPara::Next(), startEl(), and sXML_CDATA.
Referenced by makeBody(), makeFootnote(), makeMasterStyles(), makePicture(), makeTable(), and makeTextBox().
|
private |
Create the properties that correspond to the real Paragraph.
Definition at line 1340 of file hwpreader.cxx.
References ParaShape::arrange_type, hcolor2str(), ParaShape::indent, ParaShape::left_margin, ParaShape::lspacing, mxList, ParaShape::outline, ParaShape::pagebreak, ParaShape::pspacing_next, ParaShape::pspacing_prev, ParaShape::right_margin, ParaShape::shade, and sXML_CDATA.
Referenced by makePStyle(), and makeStyles().
|
inline |
Definition at line 89 of file hwpreader.hxx.
References m_rxDocumentHandler.
|
private |
Definition at line 4697 of file hwpreader.cxx.
References m_rxDocumentHandler, and mxList.
Referenced by importHStream(), make_text_p0(), make_text_p1(), make_text_p3(), makeAutoNum(), makeAutoStyles(), makeBody(), makeBookmark(), makeCaptionStyle(), makeColumns(), makeDateCode(), makeDateFormat(), makeDrawMiscStyle(), makeDrawStyle(), makeFieldCode(), makeFootnote(), makeFStyle(), makeHidden(), makeHyperText(), makeLine(), makeMasterStyles(), makeMeta(), makePageStyle(), makePicture(), makePictureDRAW(), makePStyle(), makeShowPageNum(), makeStyles(), makeTab(), makeTable(), makeTableStyle(), makeTextBox(), makeTextDecls(), makeTStyle(), and parsePara().
|
private |
Definition at line 100 of file hwpreader.hxx.
Referenced by make_text_p0(), make_text_p1(), make_text_p3(), makeBody(), makeFieldCode(), makeMasterStyles(), makeMeta(), makePicture(), makeShowPageNum(), parseCharShape(), and parsePara().
|
private |
Definition at line 99 of file hwpreader.hxx.
Referenced by importHStream(), makeAutoStyles(), makeBody(), makeDrawMiscStyle(), makeHyperText(), makeMasterStyles(), makeMeta(), makePageStyle(), makePicture(), makePictureDRAW(), makeStyles(), and parseCharShape().
|
private |
Definition at line 97 of file hwpreader.hxx.
Referenced by chars(), endEl(), importHStream(), makeFormula(), setDocumentHandler(), and startEl().
|
private |
Definition at line 98 of file hwpreader.hxx.
Referenced by importHStream(), make_text_p0(), make_text_p1(), make_text_p3(), makeAutoNum(), makeAutoStyles(), makeBookmark(), makeCaptionStyle(), makeColumns(), makeDateCode(), makeDateFormat(), makeDrawMiscStyle(), makeDrawStyle(), makeFieldCode(), makeFootnote(), makeFormula(), makeFStyle(), makeHidden(), makeHyperText(), makeLine(), makeMasterStyles(), makePageStyle(), makePicture(), makePictureDRAW(), makePStyle(), makeShowPageNum(), makeStyles(), makeTable(), makeTableStyle(), makeTextBox(), makeTextDecls(), makeTStyle(), parseCharShape(), parsePara(), parseParaShape(), and startEl().