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

« back to all changes in this revision

Viewing changes to src/lib/WP42MultiByteFunctionGroup.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 WP42MultiByteFunctionGroup : public WP42Part
33
34
{
34
 
 public:
 
35
public:
35
36
        WP42MultiByteFunctionGroup(uint8_t group); // WP42MultiByteFunctionGroup should _never_ be constructed, only its inherited classes
36
37
        virtual ~WP42MultiByteFunctionGroup() {}
37
 
        
38
 
        static WP42MultiByteFunctionGroup * constructMultiByteFunctionGroup(WPXInputStream *input, WPXEncryption *encryption, uint8_t group);
39
 
 
40
 
 protected:
 
38
 
 
39
        static WP42MultiByteFunctionGroup *constructMultiByteFunctionGroup(WPXInputStream *input, WPXEncryption *encryption, uint8_t group);
 
40
 
 
41
protected:
41
42
        void _read(WPXInputStream *input, WPXEncryption *encryption);
42
 
        virtual void _readContents(WPXInputStream *input, WPXEncryption *encryption) = 0;
43
 
 
44
 
        uint8_t getGroup() const { return m_group; }
45
 
 
46
 
 private:
 
43
        virtual void _readContents(WPXInputStream *input, WPXEncryption *encryption) = 0;
 
44
 
 
45
        uint8_t getGroup() const
 
46
        {
 
47
                return m_group;
 
48
        }
 
49
 
 
50
private:
47
51
        uint8_t m_group;
48
52
};
49
53
 
50
54
#endif /* WP42MULTIBYTEFUNCTIONGROUP_H */
 
55
/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */