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

« back to all changes in this revision

Viewing changes to src/lib/WP5DefinitionGroup.cpp

  • 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) 2005 Fridrich Strba (fridrich.strba@bluewin.ch)
3
 
 *  
 
4
 *
4
5
 * This library is free software; you can redistribute it and/or
5
6
 * modify it under the terms of the GNU Lesser General Public
6
7
 * License as published by the Free Software Foundation; either
18
19
 * For further information visit http://libwpd.sourceforge.net
19
20
 */
20
21
 
21
 
/* "This product is not manufactured, approved, or supported by 
 
22
/* "This product is not manufactured, approved, or supported by
22
23
 * Corel Corporation or Corel Corporation Limited."
23
24
 */
24
25
 
85
86
}
86
87
 
87
88
 
88
 
WP5DefinitionGroup::WP5DefinitionGroup(WPXInputStream *input, WPXEncryption *encryption) :      
 
89
WP5DefinitionGroup::WP5DefinitionGroup(WPXInputStream *input, WPXEncryption *encryption) :
89
90
        WP5VariableLengthGroup(),
90
91
        m_subGroupData(0)
91
92
{
102
103
{
103
104
        switch(getSubGroup())
104
105
        {
105
 
                case WP5_TOP_DEFINITION_GROUP_DEFINE_TABLES:
106
 
                        m_subGroupData = new WP5DefinitionGroup_DefineTablesSubGroup(input, encryption, getSize());
107
 
                        break;
108
 
                default:
109
 
                        break;
110
 
        }       
 
106
        case WP5_TOP_DEFINITION_GROUP_DEFINE_TABLES:
 
107
                m_subGroupData = new WP5DefinitionGroup_DefineTablesSubGroup(input, encryption, getSize());
 
108
                break;
 
109
        default:
 
110
                break;
 
111
        }
111
112
}
112
113
 
113
114
void WP5DefinitionGroup::parse(WP5Listener *listener)
116
117
 
117
118
        switch(getSubGroup())
118
119
        {
119
 
                case WP5_TOP_DEFINITION_GROUP_DEFINE_TABLES:
120
 
                        m_subGroupData->parse(listener);
121
 
                        break;          
122
 
                default:
123
 
                        break;          
 
120
        case WP5_TOP_DEFINITION_GROUP_DEFINE_TABLES:
 
121
                m_subGroupData->parse(listener);
 
122
                break;
 
123
        default:
 
124
                break;
124
125
        }
125
126
}
 
127
/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */