kpresenter
KPrFreehandObjectIface.cpp00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include "KPrFreehandObjectIface.h"
00022 #include "KPrFreehandObject.h"
00023 #include "KPrUtils.h"
00024 #include <kdebug.h>
00025
00026 #include <kapplication.h>
00027 #include <dcopclient.h>
00028
00029 KPrFreehandObjectIface::KPrFreehandObjectIface( KPrFreehandObject *_obj )
00030 : KPrObjectIface(_obj)
00031 {
00032 obj = _obj;
00033 }
00034
00035 void KPrFreehandObjectIface::setLineBegin( const QString & type)
00036 {
00037 obj->setLineBegin(lineEndBeginFromString( type ));
00038 }
00039
00040 void KPrFreehandObjectIface::setLineEnd( const QString & type)
00041 {
00042 obj->setLineEnd(lineEndBeginFromString( type ));
00043 }
00044
00045 QString KPrFreehandObjectIface::lineBegin()const
00046 {
00047 LineEnd type=obj->getLineBegin();
00048 return lineEndBeginName( type );
00049 }
00050
00051 QString KPrFreehandObjectIface::lineEnd() const
00052 {
00053 LineEnd type=obj->getLineEnd();
00054 return lineEndBeginName( type );
00055 }
00056
00057 void KPrFreehandObjectIface::horizontalFlip()
00058 {
00059
00060 obj->flip(true );
00061 }
00062
00063 void KPrFreehandObjectIface::verticalFlip()
00064 {
00065
00066 obj->flip( false );
00067 }
|