summaryrefslogtreecommitdiff
path: root/plugins/IEView/ieview_services.cpp
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-07-20 09:19:04 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-07-20 09:19:04 +0000
commitda9f6e8a856fc87172fb0d5997c607b4a930c102 (patch)
treea3f086c9e36a19b717a1cb1026a2eb751cfca078 /plugins/IEView/ieview_services.cpp
parentaa4076ff72097fd65a6c8a2369749afee6adf034 (diff)
IEView, IgnoreState: changed folder structure
git-svn-id: http://svn.miranda-ng.org/main/trunk@1070 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/IEView/ieview_services.cpp')
-rw-r--r--plugins/IEView/ieview_services.cpp117
1 files changed, 0 insertions, 117 deletions
diff --git a/plugins/IEView/ieview_services.cpp b/plugins/IEView/ieview_services.cpp
deleted file mode 100644
index a9745e4184..0000000000
--- a/plugins/IEView/ieview_services.cpp
+++ /dev/null
@@ -1,117 +0,0 @@
-/*
-
-IEView Plugin for Miranda IM
-Copyright (C) 2005-2010 Piotr Piastucki
-
-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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-*/
-#include "ieview_services.h"
-//#include "SRMMHTMLBuilder.h"
-#include "ScriverHTMLBuilder.h"
-#include "TabSRMMHTMLBuilder.h"
-#include "TemplateHTMLBuilder.h"
-#include "MUCCHTMLBuilder.h"
-#include "ChatHTMLBuilder.h"
-#include "HistoryHTMLBuilder.h"
-#include "IEView.h"
-#include "m_ieview.h"
-#include "Options.h"
-#include "ieview_common.h"
-
-INT_PTR HandleIEWindow(WPARAM wParam, LPARAM lParam) {
- IEVIEWWINDOW *window = (IEVIEWWINDOW *) lParam;
- IEView::init();
- Options::init();
- if (window->iType == IEW_CREATE) {
- HTMLBuilder *builder = NULL;
- switch (window->dwMode) {
- case IEWM_MUCC:
- builder = new MUCCHTMLBuilder();
- break;
- case IEWM_CHAT:
- builder = new ChatHTMLBuilder();
- break;
- case IEWM_TABSRMM:
- builder = new TabSRMMHTMLBuilder();
- break;
- case IEWM_SCRIVER:
-// builder = new HistoryHTMLBuilder();
- builder = new ScriverHTMLBuilder();
- break;
- case IEWM_HISTORY:
- builder = new HistoryHTMLBuilder();
- break;
- case IEWM_BROWSER:
- builder = NULL;
- break;
- default:
- builder = new ScriverHTMLBuilder();
- break;
- }
- IEView * view = new IEView(window->parent, builder, window->x, window->y, window->cx, window->cy);
- window->hwnd = view->getHWND();
- } else if (window->iType == IEW_SETPOS) {
- IEView * view = IEView::get(window->hwnd);
- if (view!=NULL) {
- view->setWindowPos(window->x, window->y, window->cx,window->cy);
- }
- } else if (window->iType == IEW_SCROLLBOTTOM) {
- IEView * view = IEView::get(window->hwnd);
- if (view!=NULL) {
- view->scrollToBottom();
- }
- } else if (window->iType == IEW_DESTROY) {
- IEView * view = IEView::get(window->hwnd);
- if (view!=NULL) {
- delete view;
- }
- }
- return 0;
-}
-
-INT_PTR HandleIEEvent(WPARAM wParam, LPARAM lParam) {
- IEVIEWEVENT *event = (IEVIEWEVENT *) lParam;
- IEView::init();
- Options::init();
- IEView * view = IEView::get(event->hwnd);
- if (view != NULL) {
- if (event->iType == IEE_LOG_DB_EVENTS) {
- view->appendEventOld(event);
- } else if (event->iType == IEE_CLEAR_LOG) {
- view->clear(event);
- } else if (event->iType == IEE_GET_SELECTION) {
- return (int)view->getSelection(event);
- } else if (event->iType == IEE_SAVE_DOCUMENT) {
- view->saveDocument();
- } else if (event->iType == IEE_LOG_MEM_EVENTS) {
- view->appendEvent(event);
- }
- }
- return 0;
-}
-
-INT_PTR HandleIENavigate(WPARAM wParam, LPARAM lParam) {
- IEVIEWNAVIGATE *navigate = (IEVIEWNAVIGATE *) lParam;
- IEView::init();
- Options::init();
- IEView * view = IEView::get(navigate->hwnd);
- if (view != NULL) {
- if (navigate->iType == IEN_NAVIGATE) {
- view->navigate(navigate);
- }
- }
- return 0;
-}