~ubuntu-branches/ubuntu/precise/koffice/precise

« back to all changes in this revision

Viewing changes to filters/kword/html/export/ExportFilter.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-09-21 15:36:35 UTC
  • mfrom: (1.4.1 upstream) (60.2.11 maverick)
  • Revision ID: james.westby@ubuntu.com-20100921153635-6tejqkiro2u21ydi
Tags: 1:2.2.2-0ubuntu3
Add kubuntu_03_fix-crash-on-closing-sqlite-connection-2.2.2.diff and
kubuntu_04_support-large-memo-values-for-msaccess-2.2.2.diff as
recommended by upstream http://kexi-
project.org/wiki/wikiview/index.php@Kexi2.2_Patches.html#sqlite_stab
ility

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
{
38
38
public:
39
39
    HtmlWorker(void) : m_ioDevice(NULL), m_streamOut(NULL) { }
40
 
    virtual ~HtmlWorker(void) { delete m_streamOut; delete m_ioDevice; }
 
40
    virtual ~HtmlWorker(void) {
 
41
        delete m_streamOut; delete m_ioDevice;
 
42
    }
41
43
public:
42
44
    virtual bool doOpenFile(const QString& filenameOut, const QString& to);
43
45
    virtual bool doCloseFile(void); // Close file in normal conditions
44
46
    virtual bool doOpenDocument(void);
45
47
    virtual bool doCloseDocument(void);
46
48
    virtual bool doFullParagraph(const QString& paraText, const LayoutData& layout,
47
 
        const ValueListFormatData& paraFormatDataList);
 
49
                                 const ValueListFormatData& paraFormatDataList);
48
50
    virtual bool doFullDocumentInfo(const KWEFDocumentInfo& docInfo);
49
51
    virtual bool doOpenTextFrameSet(void);
50
52
    virtual bool doCloseTextFrameSet(void);
53
55
    virtual bool doOpenBody(void); ///< HTML's \<body\>
54
56
    virtual bool doCloseBody(void); ///< HTML's \</body\>
55
57
protected:
56
 
    virtual QString getStartOfListOpeningTag(const CounterData::Style typeList, bool& ordered)=0;
 
58
    virtual QString getStartOfListOpeningTag(const CounterData::Style typeList, bool& ordered) = 0;
57
59
    /**
58
60
     * \note QChar::Direction is needed because the text flow can only
59
61
     * be detected from the actual string data
60
62
     */
61
63
    virtual void openParagraph(const QString& strTag,
62
 
        const LayoutData& layout, QChar::Direction direction=QChar::DirL)=0;
 
64
                               const LayoutData& layout, QChar::Direction direction = QChar::DirL) = 0;
63
65
    virtual void closeParagraph(const QString& strTag,
64
 
        const LayoutData& layout)=0;
65
 
    virtual void openSpan(const FormatData& formatOrigin, const FormatData& format)=0;
66
 
    virtual void closeSpan(const FormatData& formatOrigin, const FormatData& format)=0;
 
66
                                const LayoutData& layout) = 0;
 
67
    virtual void openSpan(const FormatData& formatOrigin, const FormatData& format) = 0;
 
68
    virtual void closeSpan(const FormatData& formatOrigin, const FormatData& format) = 0;
67
69
    virtual void writeDocType(void);
68
70
 
69
 
    virtual QString customCSSURL(void) const { return QString(); }
 
71
    virtual QString customCSSURL(void) const {
 
72
        return QString();
 
73
    }
70
74
public:
71
 
    inline bool isXML  (void) const { return m_xml; }
72
 
    inline void setXML (const bool flag ) { m_xml=flag; }
73
 
    inline QTextCodec* getCodec(void) const { return m_codec; }
74
 
    inline void setCodec(QTextCodec* codec) { m_codec=codec; }
 
75
    inline bool isXML(void) const {
 
76
        return m_xml;
 
77
    }
 
78
    inline void setXML(const bool flag) {
 
79
        m_xml = flag;
 
80
    }
 
81
    inline QTextCodec* getCodec(void) const {
 
82
        return m_codec;
 
83
    }
 
84
    inline void setCodec(QTextCodec* codec) {
 
85
        m_codec = codec;
 
86
    }
75
87
protected:
76
88
    QString escapeHtmlText(const QString& strText) const;
77
89
    /**
84
96
     */
85
97
    QString getAdditionalFileName(const QString& additionalName);
86
98
private:
87
 
    void ProcessParagraphData ( const QString& strTag, const QString &paraText,
88
 
        const LayoutData& layout, const ValueListFormatData &paraFormatDataList);
 
99
    void ProcessParagraphData(const QString& strTag, const QString &paraText,
 
100
                              const LayoutData& layout, const ValueListFormatData &paraFormatDataList);
89
101
    void formatTextParagraph(const QString& strText,
90
 
        const FormatData& formatOrigin, const FormatData& format);
 
102
                             const FormatData& formatOrigin, const FormatData& format);
91
103
    bool makeTable(const FrameAnchor& anchor);
92
104
    bool makeImage(const FrameAnchor& anchor);
93
105
protected: