include/epubutils/epub_keywords.h

Go to the documentation of this file.
00001 
00002 // Name:        epub_kewords.h
00003 // Purpose:     Keyword provider for epub info
00004 // Author:      Julian Smart
00005 // Modified by:
00006 // Created:     2008-11-18
00007 // RCS-ID:      $Id$
00008 // Copyright:   (c) Julian Smart
00009 // Licence:     New BSD License
00011 
00012 #ifndef _EPUB_KEYWORDS_H_
00013 #define _EPUB_KEYWORDS_H_
00014 
00015 //#include "wx/dynarray.h"
00016 //#include "wx/variant.h"
00017 //#include "imageblock.h"
00018 //#include "stringtable.h"
00019 //#include "wbproperty.h"
00020 
00021 #include "epubutils/epub_utils.h"
00022 #include "coverdesigner/coverdesigner.h"
00023 
00028 class ebEpubKeywordProvider: public cdKeywordProvider
00029 {
00030 public:
00031     ebEpubKeywordProvider(ebBasicInfo* info = NULL) { Init(); m_info = info; }
00032     ebEpubKeywordProvider(const ebEpubKeywordProvider& provider) { Copy(provider); }
00033 
00034     void SetInfo(ebBasicInfo* info) { m_info = info; }
00035     void Init() { m_info = NULL; }
00036     void operator=(const ebEpubKeywordProvider& provider) { Copy(provider); }
00037     void Copy(const ebEpubKeywordProvider& provider)  { m_info = provider.m_info; }
00038 
00040     virtual bool PerformSubstitutions(wxString& value) const;
00041 
00043     virtual wxArrayString EnumerateKeywords() const ;
00044 
00046     virtual wxString GetKeywordValue(const wxString& keyword) const;
00047 
00048     ebBasicInfo* m_info;
00049 };
00050 
00051 #endif
00052     // _EPUB_KEYWORDS_H_

Generated on Wed May 6 19:20:18 2009 for AxTk by  doxygen 1.5.1