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

« back to all changes in this revision

Viewing changes to kpresenter/KPrQuadricBezierCurveObjectIface.cpp

  • 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) 2002 Laurent MONTEL <lmontel@mandrakesoft.com>
 
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., 51 Franklin Street, Fifth Floor,
 
18
 * Boston, MA 02110-1301, USA.
 
19
*/
 
20
 
 
21
#include "KPrQuadricBezierCurveObjectIface.h"
 
22
#include "KPrBezierCurveObject.h"
 
23
#include "KPrUtils.h"
 
24
#include "KPrObject.h"
 
25
#include <kdebug.h>
 
26
 
 
27
#include <kapplication.h>
 
28
#include <dcopclient.h>
 
29
 
 
30
KPrQuadricBezierCurveObjectIface::KPrQuadricBezierCurveObjectIface( KPrQuadricBezierCurveObject *_obj )
 
31
    : KPrObjectIface(_obj)
 
32
{
 
33
    obj = _obj;
 
34
}
 
35
 
 
36
void KPrQuadricBezierCurveObjectIface::setLineBegin( const QString & type)
 
37
{
 
38
    obj->setLineBegin(lineEndBeginFromString( type ));
 
39
}
 
40
 
 
41
void KPrQuadricBezierCurveObjectIface::setLineEnd( const QString & type)
 
42
{
 
43
    obj->setLineEnd(lineEndBeginFromString( type ));
 
44
}
 
45
 
 
46
QString KPrQuadricBezierCurveObjectIface::lineBegin()const
 
47
{
 
48
    LineEnd type=obj->getLineBegin();
 
49
    return lineEndBeginName( type );
 
50
}
 
51
 
 
52
QString KPrQuadricBezierCurveObjectIface::lineEnd() const
 
53
{
 
54
    LineEnd type=obj->getLineEnd();
 
55
    return lineEndBeginName( type );
 
56
}
 
57
 
 
58
void KPrQuadricBezierCurveObjectIface::horizontalFlip()
 
59
{
 
60
    obj->flip( true );
 
61
}
 
62
 
 
63
void KPrQuadricBezierCurveObjectIface::verticalFlip()
 
64
{
 
65
    obj->flip( false );
 
66
}