~ubuntu-branches/ubuntu/breezy/koffice/breezy-security

« back to all changes in this revision

Viewing changes to kpresenter/presstep.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2005-10-11 14:49:50 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051011144950-lwpngbifzp8nk0ds
Tags: 1:1.4.1-0ubuntu7
* SECURITY UPDATE: fix heap based buffer overflow in the RTF importer of KWord
* Opening specially crafted RTF files in KWord can cause
  execution of abitrary code.
* Add kubuntu_01_rtfimport_heap_overflow.diff
* References:
  CAN-2005-2971
  CESA-2005-005
  http://www.koffice.org/security/advisory-20051011-1.txt

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// -*- Mode: c++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; -*-
 
2
/* This file is part of the KDE project
 
3
   Copyright (C) 2004 Thorsten Zachmann <zachmann@kde.org>
 
4
 
 
5
   This library is free software; you can redistribute it and/or
 
6
   modify it under the terms of the GNU Library General Public
 
7
   License as published by the Free Software Foundation; either
 
8
   version 2 of the License, or (at your option) any later version.
 
9
 
 
10
   This library is distributed in the hope that it will be useful,
 
11
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
13
   Library General Public License for more details.
 
14
 
 
15
   You should have received a copy of the GNU Library General Public License
 
16
   along with this library; see the file COPYING.LIB.  If not, write to
 
17
   the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
18
   Boston, MA 02111-1307, USA.
 
19
*/
 
20
 
 
21
#ifndef PRESSTEP_H
 
22
#define PRESSTEP_H
 
23
 
 
24
/**
 
25
 * Class for keeping a presentation step
 
26
 * m_pageNumber the current page number 0 based
 
27
 * m_step       the current effect step 0 based
 
28
 * m_subStep    the current sub step 0 based for text animation
 
29
 * m_animate    true if the current step should be animated
 
30
 * m_animateSub true if the current sub step should be animated
 
31
 */
 
32
class PresStep
 
33
{
 
34
public:
 
35
    PresStep()
 
36
      : m_pageNumber( 0 ), m_step( 0 ), m_subStep( 0 ),
 
37
    m_animate( false ), m_animateSub( false )
 
38
    {};
 
39
    PresStep( unsigned int pageNumber, unsigned int step, unsigned int subStep,
 
40
        bool animate = false, bool animateSub = false )
 
41
      : m_pageNumber( pageNumber ), m_step( step ), m_subStep( subStep ),
 
42
    m_animate( animate ), m_animateSub( animateSub )
 
43
    {};
 
44
 
 
45
    int m_pageNumber;
 
46
    int m_step;
 
47
    int m_subStep;
 
48
    bool m_animate;
 
49
    bool m_animateSub;
 
50
};
 
51
 
 
52
#endif /* PRESSTEP_H */