24 #ifndef KLFLIBLEGACYENGINE_H 25 #define KLFLIBLEGACYENGINE_H 30 #include <QDataStream> 51 unsigned long bgcol = qRgba(255,255,255,0),
55 : name(nm), fg_color(fgcol), bg_color(bgcol), mathmode(mmode), preamble(pre),
67 LibResource_History = 0,
68 LibResource_Archive = 1,
70 LibResourceUSERMIN = 100,
71 LibResourceUSERMAX = 99999
163 virtual uint compareUrlTo(
const QUrl& other, uint interestFlags = 0xfffffff)
const;
166 virtual bool canModifyProp(
int propid)
const;
167 virtual bool canRegisterProperty(
const QString& propName)
const;
175 virtual bool canCreateSubResource()
const;
176 virtual bool canRenameSubResource(
const QString& subResource)
const;
177 virtual bool canDeleteSubResource(
const QString& subResource)
const;
181 virtual bool createSubResource(
const QString& subResource,
const QString& subResourceTitle);
182 virtual bool renameSubResource(
const QString& subResource,
const QString& subResourceName);
183 virtual bool deleteSubResource(
const QString& subResource);
186 virtual void setAutoSaveInterval(
int intervalms);
193 virtual bool saveTo(
const QUrl& newPath);
196 virtual bool saveResourceProperty(
int propId,
const QVariant& value);
199 void updateResourceProperty(
int propId);
231 virtual uint schemeFunctions(
const QString& scheme)
const;
233 virtual QString correspondingWidgetType(
const QString& scheme)
const;
QList< KLFLibraryResource > KLFLibraryResourceList
KLF_EXPORT bool operator==(const KLFLegacyData::KLFStyle &a, const KLFLegacyData::KLFStyle &b)
KLFLegacyData::KLFStyle style
KLFStyle(QString nm=QString(), unsigned long fgcol=qRgba(0, 0, 0, 255), unsigned long bgcol=qRgba(255, 255, 255, 0), const QString &mmode=QString(), const QString &pre=QString(), int dotsperinch=-1)
virtual ~KLFLibLegacyEngineFactory()
The Legacy Library support for the KLFLib framework.
KLF_EXPORT bool operator<(const KLFLegacyData::KLFLibraryResource a, const KLFLegacyData::KLFLibraryResource b)
KLF_EXPORT QDataStream & operator>>(QDataStream &stream, KLFLegacyData::KLFStyle &style)
KLF_EXPORT bool resources_equal_for_import(const KLFLegacyData::KLFLibraryResource a, const KLFLegacyData::KLFLibraryResource b)
Provides a simple API for reading library resources.
QMap< KLFLibraryResource, KLFLibraryList > KLFLibrary
Interface for guessing file schemes.
An entry (single formula) in the library.
KLF_EXPORT QDataStream & operator<<(QDataStream &stream, const KLFLegacyData::KLFStyle &style)
An abstract resource engine.
QList< KLFLibraryItem > KLFLibraryList
KLFLibLegacyLocalFileSchemeGuesser(QObject *parent)