kpresenter

KPrUtils.h
1/* This file is part of the KDE project
2 Copyright (C) 1998, 1999 Reginald Stadlbauer <reggie@kde.org>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20#ifndef _kpresenter_utils_h__
21#define _kpresenter_utils_h__
22
23#include "global.h"
24#include "KoPointArray.h"
25#include <tqcursor.h>
26class TQPoint;
27class TQColor;
28class TQPainter;
29class KoZoomHandler;
30class KoSize;
31class KoPoint;
32class TQDomElement;
33class KPrObject;
34
35void drawFigure( LineEnd figure, TQPainter* painter, const KoPoint &coord, const TQColor & color,
36 int _w, float angle, KoZoomHandler*_zoomHandler );
37void drawFigureWithOffset( LineEnd figure, TQPainter* painter, const TQPoint &coord, const TQColor & color,
38 int _w, float angle, KoZoomHandler*_zoomHandler );
39void drawFigureWithOffset( LineEnd figure, TQPainter* painter, const KoPoint &coord, const TQColor &color,
40 int w, float angle, KoZoomHandler*_zoomHandler, bool begin);
41KoSize getBoundingSize( LineEnd figure, int _w, const KoZoomHandler*_zoomHandler );
42KoSize getOffset( LineEnd figure, int _w, float angle );
43TQString lineEndBeginName( LineEnd type );
44LineEnd lineEndBeginFromString( const TQString & name );
45TQString lineEndBeginSvg( LineEnd element );
46TQString saveOasisTimer( int second );
47int loadOasisTimer( const TQString & timer );
48
49class KPrUtils
50{
51public:
52 static TQCursor penCursor(); // pen tool cursors
53 static TQCursor rotateCursor(); // rotate tool cursor
54};
55
56int readOasisSettingsInt( const TQDomElement & element );
57double readOasisSettingsDouble( const TQDomElement & element );
58bool readOasisSettingsBool( const TQDomElement & element );
59TQString readOasisSettingsString( const TQDomElement & element );
60
61#endif