2009-01-19 19:08:42 +00:00
|
|
|
/**
|
2009-11-23 20:18:47 +00:00
|
|
|
* This file is part of the common library.
|
2009-01-19 19:08:42 +00:00
|
|
|
* @file eda_doc.h
|
|
|
|
* @see common.h
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __INCLUDE__EDA_DOC_H__
|
|
|
|
#define __INCLUDE__EDA_DOC_H__ 1
|
|
|
|
|
|
|
|
|
2009-11-23 20:18:47 +00:00
|
|
|
/* Search the text Database for found all the key words in the KeyList.
|
|
|
|
*
|
|
|
|
* Returns:
|
|
|
|
* 0 if no keyword is found
|
|
|
|
* 1 if keyword found.
|
2009-01-19 19:08:42 +00:00
|
|
|
*/
|
2009-11-23 20:18:47 +00:00
|
|
|
int KeyWordOk( const wxString& KeyList,
|
|
|
|
const wxString& Database );
|
2009-04-07 15:54:40 +00:00
|
|
|
|
2010-11-12 16:59:16 +00:00
|
|
|
/**
|
|
|
|
* Function GetAssociatedDocument
|
2009-04-07 15:54:40 +00:00
|
|
|
* open a document (file) with the suitable browser
|
|
|
|
* @param aFrame = main frame
|
|
|
|
* @param aDocName = filename of file to open (Full filename or short filename)
|
2009-11-23 20:18:47 +00:00
|
|
|
* if DocName is starting by http: or ftp: or www. the default internet
|
|
|
|
* browser is launched
|
2009-04-07 15:54:40 +00:00
|
|
|
* @param aPaths = a wxPathList to explore.
|
|
|
|
* if NULL or aDocName is a full filename, aPath is not used.
|
2009-11-23 20:18:47 +00:00
|
|
|
*/
|
|
|
|
bool GetAssociatedDocument( wxFrame* aFrame,
|
|
|
|
const wxString& aDocName,
|
|
|
|
const wxPathList* aPaths = NULL );
|
2009-01-19 19:08:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif /* __INCLUDE__EDA_DOC_H__ */
|