28#include <rtl/ustring.hxx>
31#include <com/sun/star/lang/XServiceInfo.hpp>
32#include <com/sun/star/lang/XComponent.hpp>
33#include <com/sun/star/io/XInputStream.hpp>
34#include <com/sun/star/document/XFilter.hpp>
35#include <com/sun/star/document/XImporter.hpp>
36#include <com/sun/star/xml/sax/XDocumentHandler.hpp>
37#include <com/sun/star/uno/XComponentContext.hpp>
39#include <com/sun/star/io/XActiveDataSink.hpp>
40#include <com/sun/star/io/XActiveDataControl.hpp>
41#include <com/sun/star/io/XStreamListener.hpp>
42#include <com/sun/star/document/XExtendedFilterDetection.hpp>
50using namespace ::
cppu;
87 virtual sal_Bool SAL_CALL
filter(
const Sequence<PropertyValue>& aDescriptor)
override;
88 virtual void SAL_CALL
cancel()
override {}
100 std::unique_ptr<HwpReaderPrivate>
d;
156 void startEl(
const OUString& el);
157 void endEl(
const OUString& el);
158 void chars(
const OUString& s);
The HWPFile class is the main class of hwp for reading file information from stream.
It represents the paragraph.
This class implements the external Parser interface.
static OUString getTStyleName(int)
bool importHStream(std::unique_ptr< HStream > stream)
void makeFormula(TxtBox *hbox)
It must be converted into MathML.
virtual sal_Bool SAL_CALL filter(const Sequence< PropertyValue > &aDescriptor) override
parseStream does Parser-startup initializations
void parseParaShape(ParaShape const *)
Create the properties that correspond to the real Paragraph.
void makeColumns(ColumnDef const *)
void makeOutline(Outline const *hbox)
void make_text_p1(HWPPara *para, bool bParaStart)
void makeTStyle(CharShape const *)
void makePictureDRAW(HWPDrawingObject *drawobj, const Picture *hbox)
void makeTable(TxtBox *hbox)
void makeCaptionStyle(FBoxStyle *)
void makeAutoStyles()
parse automatic styles from hwpfile Define a style that is automatically reflected.
void makeBookmark(Bookmark const *hbox)
Completed In LibreOffice, refer bookmarks as reference, but hwp doesn't have the sort of feature.
virtual ~HwpReader() override
void make_text_p0(HWPPara *para, bool bParaStart)
If no special characters in the paragraph and all characters use the same CharShape.
void parsePara(HWPPara *para)
void setDocumentHandler(Reference< XDocumentHandler > const &xHandler)
void make_text_p3(HWPPara *para, bool bParaStart)
Special characters are in the paragraph and characters use different CharShapes.
void makeTextDecls()
make text decls
void startEl(const OUString &el)
Reference< XDocumentHandler > m_rxDocumentHandler
void makeDateFormat(DateCode *hbox)
void makeHidden(Hidden *hbox)
Input-comment-hidden description: shows a hidden explanation to the users.
void makeAutoNum(AutoNum const *hbox)
page/footnote/endnote/picture/table/formula number
void makeDrawStyle(HWPDrawingObject *, FBoxStyle *)
void makeFootnote(Footnote *hbox)
Converts footnote to text:footnote, endnote to text:endnote.
void endEl(const OUString &el)
void makeBody()
make office:body
void makePicture(Picture *hbox)
Read the platform information.
void makePageStyle()
Create a style for the page.
void makeFStyle(FBoxStyle *)
Create a style for the Floating objects.
void chars(const OUString &s)
static OUString getPStyleName(int)
rtl::Reference< AttributeListImpl > mxList
void makeMeta()
make office:meta Completed
void makeTableStyle(Table *)
void parseCharShape(CharShape const *)
Create the properties for text styles.
void makeFieldCode(hchar_string const &rStr, FieldCode const *hbox)
virtual void SAL_CALL cancel() override
void makeHyperText(TxtBox *hbox)
Read the platform information.
std::unique_ptr< HwpReaderPrivate > d
void makeChars(hchar_string &rStr)
void makeDrawMiscStyle(HWPDrawingObject *)
void makeMailMerge(MailMerge *hbox)
mail merge operation using hwp addressbook and hwp data form.
void makeTextBox(TxtBox *hbox)
Parses the text boxes and tables.
void makePStyle(ParaShape const *)
Make the style of the Paragraph.
void makeDateCode(DateCode *hbox)
Number and format of title.
::std::basic_string< hchar > hchar_string
constexpr OUStringLiteral WRITER_IMPORTER_NAME
Input current index of page,comment,table and picture.
Class for current date and time with specified format.
Style for floating object.
Common header for drawing object.
Generates the mailing list automatically using address book and mail body format.
There are four kinds of image.
The TxtBox class saves object properties about table, textbox, equalizer or button.