~ubuntu-branches/ubuntu/precise/koffice/precise

« back to all changes in this revision

Viewing changes to kpresenter/KPresenterObjectIface.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2006-04-20 21:38:53 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060420213853-j5lxluqvymxt2zny
Tags: 1:1.5.0-0ubuntu2
UbuntuĀ uploadĀ 

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) 1998, 1999 Reginald Stadlbauer <reggie@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 KPRESENTER_OBJ_IFACE_H
22
 
#define KPRESENTER_OBJ_IFACE_H
23
 
 
24
 
#include <dcopobject.h>
25
 
#include <dcopref.h>
26
 
 
27
 
#include <qstring.h>
28
 
#include <qcolor.h>
29
 
 
30
 
class KPObject;
31
 
 
32
 
class KPresenterObjectIface : public DCOPObject
33
 
{
34
 
    K_DCOP
35
 
public:
36
 
    KPresenterObjectIface( KPObject *obj_ );
37
 
 
38
 
k_dcop:
39
 
    int getType() const;
40
 
 
41
 
    /// @since 1.4
42
 
    void move( double x, double y );
43
 
    /// @since 1.4
44
 
    void resize( double width, double height );
45
 
 
46
 
    bool isSelected() const;
47
 
    float angle() const;
48
 
    int shadowDistance() const;
49
 
    int shadowDirection() const;
50
 
    QColor shadowColor() const;
51
 
    int effect() const;
52
 
    int effect2() const;
53
 
    int appearStep() const;
54
 
    int subPresSteps() const;
55
 
    bool disappear() const;
56
 
    int disappearStep() const;
57
 
    int effect3() const;
58
 
 
59
 
    void setEffect(const QString & effect);
60
 
    void setEffect3(const QString & effect);
61
 
 
62
 
    void setSelected( bool _selected );
63
 
    void rotate( float _angle );
64
 
    void setShadowDistance( int _distance );
65
 
    void setSticky( bool b );
66
 
    bool isSticky() const;
67
 
 
68
 
    void shadowColor( const QColor & _color );
69
 
 
70
 
    void setAppearTimer( int _appearTimer );
71
 
    void setDisappearTimer( int _disappearTimer );
72
 
 
73
 
    void setAppearSoundEffect( bool b );
74
 
    void setDisappearSoundEffect( bool b );
75
 
    void setAppearSoundEffectFileName( const QString & _a_fileName );
76
 
    void setDisappearSoundEffectFileName( const QString &_d_fileName );
77
 
 
78
 
    void setObjectName( const QString &_objectName );
79
 
 
80
 
    void setAppearStep( int _appearStep );
81
 
 
82
 
    void setDisappear( bool b );
83
 
 
84
 
    int appearTimer() const;
85
 
    int disappearTimer() const;
86
 
    bool appearSoundEffect() const;
87
 
    bool disappearSoundEffect() const;
88
 
    QString appearSoundEffectFileName() const;
89
 
    QString disappearSoundEffectFileName() const;
90
 
    QString typeString() const;
91
 
 
92
 
    void setProtected( bool b );
93
 
    bool isProtected() const;
94
 
 
95
 
    void setKeepRatio( bool b );
96
 
    bool isKeepRatio() const;
97
 
 
98
 
private:
99
 
    KPObject *obj;
100
 
};
101
 
 
102
 
#endif