filters
ooutils.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef OOUTILS_H
00023 #define OOUTILS_H
00024
00025 #include <qstring.h>
00026 #include <KoFilterChain.h>
00027 class QColor;
00028 class QDomElement;
00029 class KoStyleStack;
00030 class QDomDocument;
00031 class KZip;
00032
00033 class ooNS {
00034 public:
00035 static const char* const office;
00036 static const char* const style;
00037 static const char* const text;
00038 static const char* const table;
00039 static const char* const draw;
00040 static const char* const presentation;
00041 static const char* const fo;
00042 static const char* const xlink;
00043 static const char* const number;
00044 static const char* const svg;
00045 static const char* const dc;
00046 static const char* const meta;
00047 static const char* const config;
00048 };
00049
00050 namespace OoUtils
00051 {
00052 QString expandWhitespace(const QDomElement& tag);
00053
00054 bool parseBorder(const QString & tag, double * width, int * style, QColor * color);
00055
00057
00058
00059 void importIndents( QDomElement& parentElement, const KoStyleStack& styleStack );
00060
00061
00062 void importLineSpacing( QDomElement& parentElement, const KoStyleStack& styleStack );
00063
00064
00065 void importTopBottomMargin( QDomElement& parentElement, const KoStyleStack& styleStack );
00066
00067
00068 void importTabulators( QDomElement& parentElement, const KoStyleStack& styleStack );
00069
00070
00071 void importBorders( QDomElement& parentElement, const KoStyleStack& styleStack );
00072
00074
00075
00076 void importUnderline( const QString& text_underline, QString& underline, QString& styleline );
00077
00078
00079
00080 void importTextPosition( const QString& text_position, QString& value, QString& relativetextsize );
00081
00082 void createDocumentInfo(QDomDocument &_meta, QDomDocument & docinfo);
00083 KoFilter::ConversionStatus loadAndParse(const QString& filename, QDomDocument& doc, KZip * m_zip);
00084 KoFilter::ConversionStatus loadAndParse(const QString& filename, QDomDocument& doc, KoStore *m_store );
00085
00087 KoFilter::ConversionStatus loadThumbnail( QImage& thumbnail, KZip * m_zip );
00088
00089
00090 KoFilter::ConversionStatus loadAndParse(QIODevice* io, QDomDocument& doc, const QString & fileName);
00091 }
00092
00093 #endif
|