/*

	Copyright (C) 1998 Simon Hausmann
                       <tronical@gmx.net>

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

*/
//
// $Id: kohtml.idl,v 1.9 1999/02/08 21:46:46 shausman Exp $
//

#ifndef __kohtml_idl__
#define __kohtml_idl__

#include <openparts.idl>
#include <koffice.idl>
#include <openparts_ui.idl>

module KoHTML
{
	interface KoHTMLView : KOffice::View
	{
		slot void editCopy();
		slot void editHTMLCode();
		slot void editSettings();
		slot void editKeys();
		
		slot void viewToolBar();
		slot void viewStatusBar();
	
		slot void newView();
		slot void insertObject();
		
		slot void slotStatusMsg(in string text);
		slot void statusCallback(in long ID);
		
		slot void slotURLEntered();
		
		slot void addBookmark();
		slot void editBookmarks();
		slot void slotBookmarkSelected(in long ID);
		
		slot void slotBack();
		slot void slotForward();
		slot void slotHome();
		slot void slotReload();
		slot void slotStop();
		slot void slotOpenURLDlg();
		
		slot void slotDocumentStarted();
		slot void slotDocumentDone();
	};

	interface KoHTMLDocument : KOffice::Document, KOffice::Print
	{
		string htmlURL();
		
                void openURL(in string url, in boolean reload);
		
		signal void documentStarted();
		signal void documentDone();
		
		boolean documentLoading();
		
		void stopLoading();
		
		enum SaveLoadMode { URLOnly, Complete };
		
		SaveLoadMode saveLoadMode();
		void setSaveLoadMode( in SaveLoadMode mode );
		
        };
		
	interface DocumentFactory : KOffice::DocumentFactory
	{
	};
	
	struct EventOpenURL
	{
	        string url;
		boolean reload;
        };
	const string eventOpenURL = "UserEvent/KoHTML/OpenURL";
	
};

#endif

