1
/* This file is part of Strigi Desktop Search
3
* Copyright (C) 2006 Jos van den Oever <jos@vandenoever.info>
4
* Copyright (C) 2007 Arend van Beelen jr. <arend@auton.nl>
5
* 2009 Evgeny Egorochkin <phreedom.stdin@gmail.com>
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Library General Public
8
* License as published by the Free Software Foundation; either
9
* version 2 of the License, or (at your option) any later version.
11
* This library is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Library General Public License for more details.
16
* You should have received a copy of the GNU Library General Public License
17
* along with this library; see the file COPYING.LIB. If not, write to
18
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19
* Boston, MA 02110-1301, USA.
22
#include "odfcontenthelperanalyzer.h"
23
#include <strigi/analysisresult.h>
28
#include <strigi/analysisresult.h>
29
#include <strigi/fieldtypes.h>
30
#include "../rdfnamespaces.h"
32
using namespace Strigi;
35
void OdfContentHelperAnalyzer::startAnalysis(AnalysisResult &r) {
39
void OdfContentHelperAnalyzer::endAnalysis(bool /*complete*/) {
43
void OdfContentHelperAnalyzer::startElement(const char *localname, const char *prefix,
44
const char *uri, int nb_namespaces, const char **namespaces,
45
int nb_attributes, int nb_defaulted, const char **attributes) {
48
void OdfContentHelperAnalyzer::endElement(const char *localname, const char *prefix,
52
void OdfContentHelperAnalyzer::characters(const char *data, uint32_t length) {
55
result->addText(data,length);