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

« back to all changes in this revision

Viewing changes to src/lib/WP6DisplayNumberReferenceGroup.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
 
2
3
/* libwpd
3
4
 * Copyright (C) 2002 William Lachance (wrlach@gmail.com)
4
5
 * Copyright (C) 2002 Marc Maurer (uwog@uwog.net)
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
 
44
45
void WP6DisplayNumberReferenceGroup::parse(WP6Listener *listener)
45
46
{
46
47
        WPD_DEBUG_MSG(("WordPerfect: handling a DisplayNumberReference group\n"));
47
 
        
 
48
 
48
49
        if (!(getSubGroup() % 2) || getSubGroup() == 0)
49
50
                listener->displayNumberReferenceGroupOn(getSubGroup(), m_levelNumberToDisplay);
50
51
        else
51
52
                listener->displayNumberReferenceGroupOff(getSubGroup());
52
53
}
 
54
/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */