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

« back to all changes in this revision

Viewing changes to src/lib/WP1FixedLengthGroup.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) 2003 William Lachance (wrlach@gmail.com)
3
4
 * Copyright (C) 2003 Marc Maurer (uwog@uwog.net)
4
5
 * Copyright (c) 2006 Fridrich Strba (fridrich.strba@bluewin.ch)
5
 
 *  
 
6
 *
6
7
 * This library is free software; you can redistribute it and/or
7
8
 * modify it under the terms of the GNU Lesser General Public
8
9
 * License as published by the Free Software Foundation; either
20
21
 * For further information visit http://libwpd.sourceforge.net
21
22
 */
22
23
 
23
 
/* "This product is not manufactured, approved, or supported by 
 
24
/* "This product is not manufactured, approved, or supported by
24
25
 * Corel Corporation or Corel Corporation Limited."
25
26
 */
26
27
 
31
32
 
32
33
class WP1FixedLengthGroup : public WP1Part
33
34
{
34
 
 public:
 
35
public:
35
36
        WP1FixedLengthGroup(uint8_t group); // WP1FixedLengthGroup should _never_ be constructed, only its inherited classes
36
37
        virtual ~WP1FixedLengthGroup() {}
37
 
        
38
 
        static WP1FixedLengthGroup * constructFixedLengthGroup(WPXInputStream *input, WPXEncryption *encryption, uint8_t group);
 
38
 
 
39
        static WP1FixedLengthGroup *constructFixedLengthGroup(WPXInputStream *input, WPXEncryption *encryption, uint8_t group);
39
40
 
40
41
        static bool isGroupConsistent(WPXInputStream *input, WPXEncryption *encryption, const uint8_t groupID);
41
42
 
42
 
 protected:
 
43
protected:
43
44
        void _read(WPXInputStream *input, WPXEncryption *encryption);
44
 
        virtual void _readContents(WPXInputStream * /* input */, WPXEncryption * /* encryption */) {};
45
 
 
46
 
        uint8_t getGroup() const { return m_group; }
47
 
 
48
 
 private:
 
45
        virtual void _readContents(WPXInputStream * /* input */, WPXEncryption * /* encryption */) {};
 
46
 
 
47
        uint8_t getGroup() const
 
48
        {
 
49
                return m_group;
 
50
        }
 
51
 
 
52
private:
49
53
        uint8_t m_group;
50
54
};
51
55
 
52
56
#endif /* WP1FIXEDLENGTHGROUP_H */
 
57
/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */