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
|
|
|
|
|
|
|
|
|
2011-11-08 16:37:25 +00:00
|
|
|
/**
|
|
|
|
* Function KeyWordOk
|
|
|
|
* searches \a aKeyList for any words found in \a aDatabase.
|
2009-11-23 20:18:47 +00:00
|
|
|
*
|
2011-11-08 16:37:25 +00:00
|
|
|
* @return 0 if no keyword is found or 1 if keyword is found.
|
2009-01-19 19:08:42 +00:00
|
|
|
*/
|
2011-11-08 16:37:25 +00:00
|
|
|
int KeyWordOk( const wxString& aKeyList, const wxString& aDatabase );
|
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
|
2014-05-15 06:32:24 +00:00
|
|
|
* @param aParent = main frame
|
2009-04-07 15:54:40 +00:00
|
|
|
* @param aDocName = filename of file to open (Full filename or short filename)
|
2011-11-08 16:37:25 +00:00
|
|
|
* if \a aDocName begins with 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
|
|
|
*/
|
2014-05-15 06:32:24 +00:00
|
|
|
bool GetAssociatedDocument( wxWindow* aParent,
|
2009-11-23 20:18:47 +00:00
|
|
|
const wxString& aDocName,
|
|
|
|
const wxPathList* aPaths = NULL );
|
2009-01-19 19:08:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif /* __INCLUDE__EDA_DOC_H__ */
|