41 I_ASSIGN(m_pageObjectPersistenceCompPtr,
"BitmapPersistence",
"Component used for persistence of the single page of the bitmap document",
true,
"BitmapPersistence");
42 I_ASSIGN(m_operationModeAttrPtr,
"OperationMode",
"Operation mode. 0 - flat structure, all files will be placed into the target folder\n1 - Files will be placed into the document's own folder\n2 - Same as 1, but the folder wll be compressed",
true,
OM_FOLDER);
43 I_ASSIGN(m_defaultPageSuffixAttrPtr,
"DefaultPageFileExtension",
"Default extension used for the page files",
false,
"png");
44 I_ASSIGN(m_defaultDocumentSuffixAttrPtr,
"DefaultDocumentFileExtension",
"Default extension used for the document files",
true,
"mbd");
50 const QString* filePathPtr =
NULL,
52 bool beQuiet =
true)
const override;
55 const QString& filePath = QString(),
59 const QString& filePath = QString(),
77 QString GetInfoFilePath(
const QString documentFilePath)
const;
81 I_ATTR(
int, m_operationModeAttrPtr);
82 I_ATTR(QByteArray, m_defaultDocumentSuffixAttrPtr);
83 I_ATTR(QByteArray, m_defaultPageSuffixAttrPtr);
85 QString m_defaultSuffix;
86 QString m_defaultPageSuffix;
File based persistence of the multi-paged bitmap document.
virtual ifile::IFilePersistence::OperationState SaveToFile(const istd::IChangeable &data, const QString &filePath=QString(), ibase::IProgressManager *progressManagerPtr=NULL) const override
This function saves data data to file filePath.
virtual QString GetTypeDescription(const QString *extensionPtr=NULL) const override
Get description of object type associated with single extension.
virtual void OnComponentCreated() override
Called when component is created.
virtual bool IsOperationSupported(const istd::IChangeable *dataObjectPtr, const QString *filePathPtr=NULL, int flags=-1, bool beQuiet=true) const override
Returns true if object dataObject can be loaded/saved.
virtual ifile::IFilePersistence::OperationState LoadFromFile(istd::IChangeable &data, const QString &filePath=QString(), ibase::IProgressManager *progressManagerPtr=NULL) const override
This function loads data data from file filePath.
ilog::CLoggerComponentBase BaseClass
virtual bool GetFileExtensions(QStringList &result, const istd::IChangeable *dataObjectPtr=NULL, int flags=-1, bool doAppend=false) const override
Get file extensions supported by this loader.
virtual bool SerializeDocumentMetaInfo(const idoc::IMultiPageDocument &document, iser::IArchive &archive) const
virtual bool SerializePageMetaInfo(idoc::IMultiPageDocument &document, int pageIndex, iser::IArchive &archive) const
Simple interface for a structured document.