Changeset View
Changeset View
Standalone View
Standalone View
document/kpDocument.h
Show First 20 Lines • Show All 105 Lines • ▼ Show 20 Line(s) | 103 | static bool savePixmapToDevice (const QImage &pixmap, | |||
---|---|---|---|---|---|
106 | const kpDocumentMetaInfo &metaInfo, | 106 | const kpDocumentMetaInfo &metaInfo, | ||
107 | bool lossyPrompt, | 107 | bool lossyPrompt, | ||
108 | QWidget *parent, | 108 | QWidget *parent, | ||
109 | bool *userCancelled = nullptr); | 109 | bool *userCancelled = nullptr); | ||
110 | static bool savePixmapToFile (const QImage &pixmap, | 110 | static bool savePixmapToFile (const QImage &pixmap, | ||
111 | const QUrl &url, | 111 | const QUrl &url, | ||
112 | const kpDocumentSaveOptions &saveOptions, | 112 | const kpDocumentSaveOptions &saveOptions, | ||
113 | const kpDocumentMetaInfo &metaInfo, | 113 | const kpDocumentMetaInfo &metaInfo, | ||
114 | bool overwritePrompt, | | |||
115 | bool lossyPrompt, | 114 | bool lossyPrompt, | ||
116 | QWidget *parent); | 115 | QWidget *parent); | ||
117 | bool save (bool overwritePrompt = false, bool lossyPrompt = false); | 116 | bool save (bool lossyPrompt = false); | ||
118 | bool saveAs (const QUrl &url, | 117 | bool saveAs (const QUrl &url, | ||
119 | const kpDocumentSaveOptions &saveOptions, | 118 | const kpDocumentSaveOptions &saveOptions, | ||
120 | bool overwritePrompt = true, | | |||
121 | bool lossyPrompt = true); | 119 | bool lossyPrompt = true); | ||
122 | 120 | | |||
123 | 121 | | |||
124 | // Returns whether save() or saveAs() have ever been called and returned true | 122 | // Returns whether save() or saveAs() have ever been called and returned true | ||
125 | bool savedAtLeastOnceBefore () const; | 123 | bool savedAtLeastOnceBefore () const; | ||
126 | 124 | | |||
127 | QUrl url () const; | 125 | QUrl url () const; | ||
128 | void setURL (const QUrl &url, bool isFromExistingURL); | 126 | void setURL (const QUrl &url, bool isFromExistingURL); | ||
▲ Show 20 Lines • Show All 234 Lines • Show Last 20 Lines |