pdf/plugin_impl/search_criteria_impl.h

Go to the documentation of this file.
00001 /*
00002  * File Name: search_criteria_impl.h
00003  */
00004 
00005 /*
00006  * This file is part of uds-plugin-pdf.
00007  *
00008  * uds-plugin-pdf is free software: you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation, either version 2 of the License, or
00011  * (at your option) any later version.
00012  *
00013  * uds-plugin-pdf is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License
00019  * along with this program. If not, see <http://www.gnu.org/licenses/>.
00020  */
00021 
00022 /**
00023  * Copyright (C) 2008 iRex Technologies B.V.
00024  * All rights reserved.
00025  */
00026 
00027 #ifndef PDF_PLUGIN_SEARCH_CRITERIA_H_
00028 #define PDF_PLUGIN_SEARCH_CRITERIA_H_
00029 
00030 #include "interfaces_utils.h"
00031 #include "plugin_inc.h"
00032 
00033 #include "pdf_search_criteria.h"
00034 
00035 namespace pdf
00036 {
00037 
00038 struct PDFSearchCriteria;
00039 class PluginSearchCriteria : public IPluginUnknown
00040                            , public IPluginSearchCriteria
00041 {
00042 public:
00043     PluginSearchCriteria(void);
00044     ~PluginSearchCriteria(void);
00045 
00046     PDFSearchCriteria& get_data() {return data;}
00047 
00048 private:
00049     /// IPluginUnknown
00050     static PluginStatus query_interface_impl(
00051         IPluginUnknown    *thiz,
00052         const UDSString   *id, 
00053         void              **ptr );
00054 
00055     static int release_impl(
00056         IPluginUnknown  *thiz );
00057 
00058     /// IPluginSearchCriteria
00059     static PluginStatus set_search_text_impl(
00060         IPluginUnknown    *thiz, 
00061         const UDSString   *text ); 
00062 
00063     static PluginStatus set_case_sensitive_impl(
00064         IPluginUnknown   *thiz, 
00065         const PluginBool is_sensitive );
00066 
00067     static PluginStatus set_match_whole_word_impl(
00068         IPluginUnknown   *thiz, 
00069         const PluginBool do_match_word );
00070 
00071     static PluginStatus set_forward_impl(
00072         IPluginUnknown    *thiz, 
00073         const PluginBool  do_search_forward );
00074 
00075 private:
00076     /// all constructured search criteria instances.
00077     static utils::ObjectTable<PluginSearchCriteria> g_instances_table;
00078 
00079 private:
00080     PDFSearchCriteria data;
00081 };
00082 
00083 };  // namespace pdf
00084 
00085 #endif
00086 
00087 
Generated by  doxygen 1.6.2-20100208