kivio

KIvioViewIface.h
1/* This file is part of the KDE project
2 Copyright (C) 2001 Laurent Montel <lmontel@mandrakesoft.com>
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 KIVIO_VIEW_IFACE_H
21#define KIVIO_VIEW_IFACE_H
22
23#include <KoViewIface.h>
24
25#include <tqstring.h>
26#include <tqcolor.h>
27class KivioView;
28
29class KIvioViewIface : public KoViewIface
30{
31 K_DCOP
32public:
33 KIvioViewIface( KivioView *view_ );
34
35k_dcop:
36 virtual void paperLayoutDlg();
37 virtual void insertPage();
38 virtual void removePage();
39 virtual void renamePage();
40 virtual void hidePage();
41 virtual void showPage();
42 virtual void optionsDialog();
43
44 virtual bool isSnapGuides()const;
45 virtual bool isShowGuides()const;
46 virtual bool isShowRulers()const;
47 virtual bool isShowPageMargins()const;
48
49
50 virtual int leftBorder() const;
51 virtual int rightBorder() const;
52 virtual int topBorder() const;
53 virtual int bottomBorder() const;
54
55 virtual void togglePageMargins(bool);
56 virtual void toggleShowRulers(bool);
57 virtual void toggleShowGrid(bool);
58 virtual void toggleSnapGrid(bool);
59 virtual void toggleShowGuides(bool);
60
61 virtual void toggleViewManager(bool);
62
63 virtual void alignStencilsDlg();
64
65 virtual void groupStencils();
66 virtual void ungroupStencils();
67
68 virtual void selectAllStencils();
69 virtual void unselectAllStencils();
70
71 virtual double lineWidth()const;
72 TQColor foreGroundColor()const;
73 TQColor backGroundColor()const;
74private:
75 KivioView *view;
76
77};
78
79#endif