summaryrefslogtreecommitdiff
path: root/include/helpcompiler
diff options
context:
space:
mode:
Diffstat (limited to 'include/helpcompiler')
-rw-r--r--include/helpcompiler/HelpIndexer.hxx60
-rw-r--r--include/helpcompiler/HelpSearch.hxx24
2 files changed, 42 insertions, 42 deletions
diff --git a/include/helpcompiler/HelpIndexer.hxx b/include/helpcompiler/HelpIndexer.hxx
index 65f77878ed12..869fe535ab7f 100644
--- a/include/helpcompiler/HelpIndexer.hxx
+++ b/include/helpcompiler/HelpIndexer.hxx
@@ -30,7 +30,7 @@ class Reader;
}
class L10N_DLLPUBLIC HelpIndexer {
- private:
+ private:
OUString d_lang;
OUString d_module;
OUString d_captionDir;
@@ -39,48 +39,48 @@ class L10N_DLLPUBLIC HelpIndexer {
OUString d_error;
std::set<OUString> d_files;
- public:
+ public:
- /**
- * @param lang Help files language.
- * @param module The module of the helpfiles.
- * @param srcDir The help directory to index
- * @param outDir The directory to write the "module".idxl directory to
- */
+ /**
+ * @param lang Help files language.
+ * @param module The module of the helpfiles.
+ * @param srcDir The help directory to index
+ * @param outDir The directory to write the "module".idxl directory to
+ */
HelpIndexer(OUString const &lang, OUString const &module,
OUString const &srcDir, OUString const &outDir);
- /**
- * Run the indexer.
- * @return true if index successfully generated.
- */
- bool indexDocuments();
+ /**
+ * Run the indexer.
+ * @return true if index successfully generated.
+ */
+ bool indexDocuments();
- /**
- * Get the error string (empty if no error occurred).
- */
+ /**
+ * Get the error string (empty if no error occurred).
+ */
OUString const & getErrorMessage() { return d_error;}
- private:
+ private:
- /**
- * Scan the caption & contents directories for help files.
- */
- bool scanForFiles();
+ /**
+ * Scan the caption & contents directories for help files.
+ */
+ bool scanForFiles();
- /**
- * Scan for files in the given directory.
- */
+ /**
+ * Scan for files in the given directory.
+ */
bool scanForFiles(OUString const &path);
- /**
- * Fill the Document with information on the given help file.
- */
+ /**
+ * Fill the Document with information on the given help file.
+ */
void helpDocument(OUString const & fileName, lucene::document::Document *doc);
- /**
- * Create a reader for the given file, and create an "empty" reader in case the file doesn't exist.
- */
+ /**
+ * Create a reader for the given file, and create an "empty" reader in case the file doesn't exist.
+ */
static lucene::util::Reader *helpFileReader(OUString const & path);
};
diff --git a/include/helpcompiler/HelpSearch.hxx b/include/helpcompiler/HelpSearch.hxx
index 639bbb2f585a..074373c43c0e 100644
--- a/include/helpcompiler/HelpSearch.hxx
+++ b/include/helpcompiler/HelpSearch.hxx
@@ -16,23 +16,23 @@
#include <vector>
class L10N_DLLPUBLIC HelpSearch{
- private:
+ private:
OString d_indexDir;
- public:
+ public:
- /**
- * @param indexDir The directory where the index files are stored.
- */
+ /**
+ * @param indexDir The directory where the index files are stored.
+ */
HelpSearch(OUString const &indexDir);
- /**
- * Query the index for a certain query string.
- * @param queryStr The query.
- * @param captionOnly Set to true to search in the caption, not the content.
- * @param rDocuments Vector to write the paths of the found documents.
- * @param rScores Vector to write the scores to.
- */
+ /**
+ * Query the index for a certain query string.
+ * @param queryStr The query.
+ * @param captionOnly Set to true to search in the caption, not the content.
+ * @param rDocuments Vector to write the paths of the found documents.
+ * @param rScores Vector to write the scores to.
+ */
void query(OUString const &queryStr, bool captionOnly,
std::vector<OUString> &rDocuments, std::vector<float> &rScores);
};