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

« back to all changes in this revision

Viewing changes to src/lib/WP6NumberingMethodGroup.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) 2002 William Lachance (wrlach@gmail.com)
3
4
 * Copyright (C) 2002 Marc Maurer (uwog@uwog.net)
30
31
#include "libwpd_internal.h"
31
32
 
32
33
 
33
 
WP6NumberingMethodGroup::WP6NumberingMethodGroup(WPXInputStream *input, 
34
 
                                     WPXEncryption *encryption) :
35
 
        WP6VariableLengthGroup()
 
34
WP6NumberingMethodGroup::WP6NumberingMethodGroup(WPXInputStream *input,
 
35
        WPXEncryption *encryption) :
 
36
        WP6VariableLengthGroup(),
 
37
        m_levelNumber(0x00),
 
38
        m_numberingMethod(0x00)
36
39
{
37
40
        _read(input, encryption);
38
41
}
57
60
        switch (getSubGroup())
58
61
        {
59
62
        case WP6_NUMBERING_METHOD_GROUP_SET_PAGE_NUMBERING_MODE:
60
 
                switch (m_numberingMethod) 
 
63
                switch (m_numberingMethod)
61
64
                {
62
65
                case WP6_NUMBERING_METHOD_GROUP_PAGE_NUMBERING_LOWERCASE:
63
66
                        listener->setPageNumberingType(LOWERCASE);
74
77
                case WP6_NUMBERING_METHOD_GROUP_PAGE_NUMBERING_ARABIC:
75
78
                default:
76
79
                        listener->setPageNumberingType(ARABIC);
77
 
                        break;                  
 
80
                        break;
78
81
                }
79
82
                break;
80
83
        }
81
84
}
 
85
/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */