~ubuntu-branches/ubuntu/edgy/libwpd/edgy-security

« back to all changes in this revision

Viewing changes to src/lib/WPXPageSpan.h

  • Committer: Bazaar Package Importer
  • Author(s): Rene Engelhard
  • Date: 2005-12-09 16:20:02 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20051209162002-6yx3aa0jrh06oocj
Tags: 0.8.4-2
* re-autogen to fix hppa build
* update automake builddep and add autoconf

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 *
15
15
 * You should have received a copy of the GNU Library General Public
16
16
 * License along with this library; if not, write to the Free Software
17
 
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 
17
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
18
18
 *
19
19
 * For further information visit http://libwpd.sourceforge.net
20
20
 */
30
30
#include <vector>
31
31
#include "WPXTable.h"
32
32
#include "libwpd_internal.h"
 
33
#include "WPXSubDocument.h"
33
34
 
34
35
// intermediate page representation class: for internal use only (by the high-level content/styles listeners). should not be exported.
35
36
 
37
38
{
38
39
public:
39
40
        WPXHeaderFooter(const WPXHeaderFooterType headerFooterType, const WPXHeaderFooterOccurence occurence, 
40
 
                        const uint8_t internalType, const uint16_t textPID, WPXTableList tableList);
 
41
                        const uint8_t internalType, const WPXSubDocument * subDocument, WPXTableList tableList);
41
42
        WPXHeaderFooter(const WPXHeaderFooterType headerFooterType, const WPXHeaderFooterOccurence occurence, 
42
 
                        const uint8_t internalType, const uint16_t textPID);
 
43
                        const uint8_t internalType, const WPXSubDocument * subDocument);
43
44
        WPXHeaderFooter(const WPXHeaderFooter &headerFooter);
44
45
        ~WPXHeaderFooter();
45
46
        const WPXHeaderFooterType getType() const { return m_type; }
46
47
        const WPXHeaderFooterOccurence getOccurence() const { return m_occurence; }
47
48
        const uint8_t getInternalType() const { return m_internalType; }
48
 
        const uint16_t getTextPID() const { return m_textPID; }
 
49
        const WPXSubDocument * getSubDocument() const { return m_subDocument; }
49
50
        WPXTableList getTableList() const { return m_tableList; }
50
51
 
51
52
private:
52
53
        WPXHeaderFooterType m_type;
53
54
        WPXHeaderFooterOccurence m_occurence;
54
55
        uint8_t m_internalType; // for suppression
55
 
        uint16_t m_textPID; // for the actual text
 
56
        const WPXSubDocument * m_subDocument; // for the actual text
56
57
        WPXTableList m_tableList;
57
58
};
58
59
 
75
76
        const std::vector<WPXHeaderFooter> & getHeaderFooterList() const { return m_headerFooterList; }
76
77
 
77
78
        void setHeaderFooter(const uint8_t headerFooterType, const uint8_t occurenceBits, 
78
 
                             const uint16_t textPID, WPXTableList tableList);
 
79
                             const WPXSubDocument * subDocument, WPXTableList tableList);
79
80
        void setHeadFooterSuppression(const uint8_t headerFooterType, const bool suppress) { m_isHeaderFooterSuppressed[headerFooterType] = suppress; }
80
81
        void setFormLength(const float formLength) { m_formLength = formLength; }
81
82
        void setFormWidth(const float formWidth) { m_formWidth = formWidth; }