KFileMetaData

office2007extractor.h
1/*
2 SPDX-FileCopyrightText: 2013 Vishesh Handa <me@vhanda.in>
3
4 SPDX-License-Identifier: LGPL-2.1-or-later
5*/
6
7
8#ifndef OFFICE_2007_EXTRACTOR_H
9#define OFFICE_2007_EXTRACTOR_H
10
11#include "extractorplugin.h"
12
13#include <QIODevice>
14
16
17namespace KFileMetaData
18{
19
20class Office2007Extractor : public ExtractorPlugin
21{
23 Q_PLUGIN_METADATA(IID "org.kde.kf5.kfilemetadata.ExtractorPlugin"
24 FILE "office2007extractor.json")
26
27public:
28 explicit Office2007Extractor(QObject* parent = nullptr);
29
30 QStringList mimetypes() const override;
31 void extract(ExtractionResult* result) override;
32
33private:
34 void extractTextWithTag(QIODevice* device, const QString& tag, ExtractionResult* result);
35 void extractAllText(QIODevice* device, ExtractionResult* result);
36 void extractTextFromFiles(const KArchiveDirectory* archiveDir, ExtractionResult* result);
37};
38}
39
40#endif // OFFICE_2007_EXTRACTOR_H
The ExtractorPlugin is the base class for all file metadata extractors.
Q_INTERFACES(...)
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sun Feb 25 2024 18:44:24 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.