mtollari 4db94043cb Patch level : 12.0 no-patch
Files correlati     : 
Commento            : Spostamento in libraries delle librerie esterne di Campo per una maggiore pulizia e organizzazione

git-svn-id: svn://10.65.10.50/branches/R_10_00@24150 c028cbd2-c16b-5b4b-a496-9718f37d4682
2017-10-26 09:11:15 +00:00

95 lines
2.3 KiB
C++

/////////////////////////////////////////////////////////////////////////////
// Name: helpview.h
// Purpose: HelpView application class
// Author: Vaclav Slavik, Julian Smart
// Modified by:
// Created: 2002-07-09
// RCS-ID: $Id: helpview.h 44610 2007-03-05 10:46:54Z JS $
// Copyright: (c) 2002 Vaclav Slavik, Julian Smart and others
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_HELPVIEW_H_
#define _WX_HELPVIEW_H_
#define hvVERSION 1.04
#if wxUSE_IPC
#include <wx/ipc.h>
class hvServer;
#endif
/*!
* The helpview application class.
*/
class hvApp : public wxApp
{
public:
hvApp();
/// Initialise the application.
virtual bool OnInit();
/// Clean up the application's data.
virtual int OnExit();
#ifdef __WXMAC__
/// Respond to Apple Event for opening a document
virtual void MacOpenFile(const wxString& filename);
#endif
/// Prompt the user for a book to open
bool OpenBook(wxHtmlHelpController* controller);
/// Returns the help controller.
wxHtmlHelpController* GetHelpController() { return m_helpController; }
#if wxUSE_IPC
/// Returns the list of connections.
wxList& GetConnections() { return m_connections; }
#endif
/// Respond to idle event
void OnIdle(wxIdleEvent& event);
private:
wxHtmlHelpController* m_helpController;
bool m_exitIfNoMainWindow;
#if wxUSE_IPC
wxList m_connections;
hvServer* m_server;
#endif
DECLARE_EVENT_TABLE()
};
#if wxUSE_IPC
class hvConnection : public wxConnection
{
public:
hvConnection();
virtual ~hvConnection();
bool OnExecute(const wxString& topic, wxChar*data, int size, wxIPCFormat format);
wxChar *OnRequest(const wxString& topic, const wxString& item, int *size, wxIPCFormat format);
bool OnPoke(const wxString& topic, const wxString& item, wxChar *data, int size, wxIPCFormat format);
bool OnStartAdvise(const wxString& topic, const wxString& item);
private:
};
class hvServer: public wxServer
{
public:
wxConnectionBase *OnAcceptConnection(const wxString& topic);
};
#endif
#endif
// _WX_HELPVIEW_H_