~ubuntu-branches/ubuntu/saucy/libwpd/saucy

« back to all changes in this revision

Viewing changes to src/lib/WP6FontDescriptorPacket.h

  • Committer: Package Import Robot
  • Author(s): Rene Engelhard
  • Date: 2011-11-29 23:31:13 UTC
  • mfrom: (1.2.5)
  • Revision ID: package-import@ubuntu.com-20111129233113-xdtwca9h0y6wdxst
Tags: 0.9.4-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
1
2
/* libwpd
2
3
 * Copyright (C) 2002 William Lachance (wrlach@gmail.com)
3
4
 * Copyright (C) 2002 Marc Maurer (uwog@uwog.net)
4
 
 *  
 
5
 *
5
6
 * This library is free software; you can redistribute it and/or
6
7
 * modify it under the terms of the GNU Library General Public
7
8
 * License as published by the Free Software Foundation; either
19
20
 * For further information visit http://libwpd.sourceforge.net
20
21
 */
21
22
 
22
 
/* "This product is not manufactured, approved, or supported by 
 
23
/* "This product is not manufactured, approved, or supported by
23
24
 * Corel Corporation or Corel Corporation Limited."
24
25
 */
25
26
 
34
35
        WP6FontDescriptorPacket(WPXInputStream *input, WPXEncryption *encryption, int id, uint32_t dataOffset, uint32_t dataSize);
35
36
        ~WP6FontDescriptorPacket();
36
37
        void _readContents(WPXInputStream *input, WPXEncryption *encryption);
37
 
        const WPXString &getFontName() const { return m_fontName; }
 
38
        const WPXString &getFontName() const
 
39
        {
 
40
                return m_fontName;
 
41
        }
38
42
 
39
43
private:
40
44
        void _readFontName(WPXInputStream *input, WPXEncryption *encryption);
41
45
 
42
 
        WP6FontDescriptorPacket(const WP6FontDescriptorPacket&);
43
 
        WP6FontDescriptorPacket& operator=(const WP6FontDescriptorPacket&);
 
46
        WP6FontDescriptorPacket(const WP6FontDescriptorPacket &);
 
47
        WP6FontDescriptorPacket &operator=(const WP6FontDescriptorPacket &);
44
48
        uint16_t m_characterWidth;
45
49
        uint16_t m_ascenderHeight;
46
50
        uint16_t m_xHeight;
48
52
        uint16_t m_italicsAdjust;
49
53
        uint8_t m_primaryFamilyId; // family id's are supposed to be one unified element, but I split them up to ease parsing
50
54
        uint8_t m_primaryFamilyMemberId;
51
 
        
 
55
 
52
56
        uint8_t m_scriptingSystem;
53
57
        uint8_t m_primaryCharacterSet;
54
58
        uint8_t m_width;
55
 
        uint8_t m_weight; 
 
59
        uint8_t m_weight;
56
60
        uint8_t m_attributes;
57
61
        uint8_t m_generalCharacteristics;
58
62
        uint8_t m_classification;
62
66
 
63
67
        uint16_t m_fontNameLength;
64
68
 
65
 
        WPXString m_fontName; 
 
69
        WPXString m_fontName;
66
70
};
67
71
#endif
 
72
/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */