diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-04-24 07:42:07 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-04-24 07:44:52 +0200 |
commit | b3fcbe7d2b163dbc7c6e68f6db214d3df47fda57 (patch) | |
tree | 799bf15cde8d6eb32dd32cece1d46ff122431a7f /l10ntools/inc | |
parent | 1f1f8ac4db7aa40f299a104927499e72d39fd932 (diff) |
do not export usage of CLucene headers outside of l10ntools
that'd require CLUCENE_CFLAGS everywhere where it's used, and it's not necessary
Diffstat (limited to 'l10ntools/inc')
-rw-r--r-- | l10ntools/inc/l10ntools/HelpIndexer.hxx | 13 | ||||
-rw-r--r-- | l10ntools/inc/l10ntools/HelpSearch.hxx | 1 | ||||
-rw-r--r-- | l10ntools/inc/l10ntools/LuceneHelper.hxx | 53 |
3 files changed, 12 insertions, 55 deletions
diff --git a/l10ntools/inc/l10ntools/HelpIndexer.hxx b/l10ntools/inc/l10ntools/HelpIndexer.hxx index df492bb1a76e..f81bca3fe393 100644 --- a/l10ntools/inc/l10ntools/HelpIndexer.hxx +++ b/l10ntools/inc/l10ntools/HelpIndexer.hxx @@ -31,13 +31,24 @@ #define HELPINDEXER_HXX #include <l10ntools/dllapi.h> -#include <l10ntools/LuceneHelper.hxx> #include <rtl/ustring.hxx> #include <set> // I assume that TCHAR is defined as wchar_t throughout +namespace lucene +{ +namespace document +{ +class Document; +} +namespace util +{ +class Reader; +} +} + class L10N_DLLPUBLIC HelpIndexer { private: rtl::OUString d_lang; diff --git a/l10ntools/inc/l10ntools/HelpSearch.hxx b/l10ntools/inc/l10ntools/HelpSearch.hxx index 1a1b3c097c60..e4a846a926dd 100644 --- a/l10ntools/inc/l10ntools/HelpSearch.hxx +++ b/l10ntools/inc/l10ntools/HelpSearch.hxx @@ -31,7 +31,6 @@ #define HELPSEARCH_HXX #include <l10ntools/dllapi.h> -#include <l10ntools/LuceneHelper.hxx> #include <rtl/ustring.hxx> #include <vector> diff --git a/l10ntools/inc/l10ntools/LuceneHelper.hxx b/l10ntools/inc/l10ntools/LuceneHelper.hxx deleted file mode 100644 index c990647a1a9b..000000000000 --- a/l10ntools/inc/l10ntools/LuceneHelper.hxx +++ /dev/null @@ -1,53 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * Version: MPL 1.1 / GPLv3+ / LGPLv3+ - * - * The contents of this file are subject to the Mozilla Public License Version - * 1.1 (the "License"); you may not use this file except in compliance with - * the License or as specified alternatively below. You may obtain a copy of - * the License at http://www.mozilla.org/MPL/ - * - * Software distributed under the License is distributed on an "AS IS" basis, - * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License - * for the specific language governing rights and limitations under the - * License. - * - * Major Contributor(s): - * Copyright (C) 2012 Gert van Valkenhoef <g.h.m.van.valkenhoef@rug.nl> - * (initial developer) - * - * All Rights Reserved. - * - * For minor contributions see the git repository. - * - * Alternatively, the contents of this file may be used under the terms of - * either the GNU General Public License Version 3 or later (the "GPLv3+"), or - * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), - * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable - * instead of those above. - */ - -#ifndef LUCENEHELPER_HXX -#define LUCENEHELPER_HXX - -#if defined _MSC_VER -#pragma warning(push) -#pragma warning(disable : 4068 4263 4264 4266) -#endif - -#include <CLucene.h> -#include <CLucene/analysis/LanguageBasedAnalyzer.h> - -#if defined _MSC_VER -#pragma warning(pop) -#endif - -#include <rtl/ustring.hxx> -#include <vector> - -std::vector<TCHAR> OUStringToTCHARVec(rtl::OUString const &rStr); -rtl::OUString TCHARArrayToOUString(TCHAR const *str); - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |