kivio
kivioglobal.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KIVIOGLOBAL_H
00021 #define KIVIOGLOBAL_H
00022
00023 #include <KoUnit.h>
00024 #include <KoPageLayout.h>
00025 #include <KoSize.h>
00026
00027 class QDomElement;
00028 class QPixmap;
00029 class QString;
00030 class KoGenStyle;
00031 class KivioStencil;
00032
00033 namespace Kivio
00034 {
00035 enum {
00036 STYLE_PAGE = 20
00037 };
00038
00042 void savePageLayout(QDomElement& e, const KoPageLayout& layout);
00043 KoGenStyle savePageLayout(const KoPageLayout& layout);
00047 KoPageLayout loadPageLayout(const QDomElement& e);
00051 KoUnit::Unit convToKoUnit(int tkUnit);
00055 QString orientationString(KoOrientation o);
00059 KoOrientation orientationFromString(const QString& s);
00060 void setFormatOrientation(KoPageLayout& layout);
00061
00065 KoSize loadSize(const QDomElement& e, const QString& name, const KoSize& def);
00069 void saveSize(QDomElement& e, const QString& name, const KoSize& size);
00070
00074 QString pageSizeString(int pageSize);
00075
00079 QPixmap arrowHeadPixmap();
00080
00084 QPixmap connectorTargetPixmap();
00085
00089 QPixmap lockPixmap();
00090
00094 QString systemDefaultUnit();
00095
00099 QPixmap generatePixmapFromStencil(int width, int height, KivioStencil* stencil);
00100 }
00101
00102 #endif
|