Initial commit: Complete open-source Decal rebuild
All 5 phases of the open-source Decal rebuild: Phase 1: 14 decompiled .NET projects (Interop.*, Adapter, FileService, DecalUtil) Phase 2: 10 native DLLs rewritten as C# COM servers with matching GUIDs - DecalDat, DHS, SpellFilter, DecalInput, DecalNet, DecalFilters - Decal.Core, DecalControls, DecalRender, D3DService Phase 3: C++ shims for Inject.DLL (D3D9 hooking) and LauncherHook.DLL Phase 4: DenAgent WinForms tray application Phase 5: WiX installer and build script 25 C# projects building with 0 errors. Native C++ projects require VS 2022 + Windows SDK (x86). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
commit
d1442e3747
1382 changed files with 170725 additions and 0 deletions
83
Native/PlainText/ScriptView.h
Normal file
83
Native/PlainText/ScriptView.h
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
// ScriptView.h : Declaration of the CScriptView
|
||||
|
||||
//
|
||||
// DEVELOPER COMMENTS (elphkotm)
|
||||
// This is an import of the February Decal PlainText class, called
|
||||
// cScriptView, I intentionally use an upper case C bye the way.
|
||||
//
|
||||
|
||||
#ifndef __SCRIPTVIEW_H_
|
||||
#define __SCRIPTVIEW_H_
|
||||
|
||||
#include "resource.h" // main symbols
|
||||
#include "ScriptPlugin.h"
|
||||
#include <DecalImpl.h>
|
||||
#include "ScriptSiteImpl.h"
|
||||
#include "../Inject/SinkImpl.h"
|
||||
#include "PlainTextCP.h"
|
||||
|
||||
#define VIEW_ID 1
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CScriptView
|
||||
class ATL_NO_VTABLE CScriptView :
|
||||
public CComObjectRootEx<CComSingleThreadModel>,
|
||||
public CComCoClass<CScriptView, &CLSID_ScriptView>,
|
||||
public IActiveScriptSiteImpl,
|
||||
public IProvideClassInfo2Impl< &CLSID_ScriptView, &IID_IScriptView, &LIBID_PlainText >,
|
||||
public IViewEventsImpl<VIEW_ID, CScriptView>,
|
||||
public IDispatchImpl<IScriptView, &IID_IScriptView, &LIBID_PlainText>,
|
||||
public IConnectionPointContainerImpl<CScriptView>,
|
||||
public CProxyIScriptViewEvents< CScriptView >
|
||||
{
|
||||
public:
|
||||
CScriptView()
|
||||
{
|
||||
}
|
||||
|
||||
DECLARE_REGISTRY_RESOURCEID(IDR_SCRIPTVIEW)
|
||||
|
||||
DECLARE_PROTECT_FINAL_CONSTRUCT()
|
||||
|
||||
BEGIN_COM_MAP(CScriptView)
|
||||
COM_INTERFACE_ENTRY(IActiveScriptSite)
|
||||
COM_INTERFACE_ENTRY(IScriptView)
|
||||
COM_INTERFACE_ENTRY(IDispatch)
|
||||
COM_INTERFACE_ENTRY(IProvideClassInfo)
|
||||
COM_INTERFACE_ENTRY(IProvideClassInfo2)
|
||||
COM_INTERFACE_ENTRY_IMPL(IConnectionPointContainer)
|
||||
END_COM_MAP()
|
||||
|
||||
BEGIN_CONNECTION_POINT_MAP(CScriptView)
|
||||
CONNECTION_POINT_ENTRY(DIID_IScriptViewEvents)
|
||||
END_CONNECTION_POINT_MAP()
|
||||
|
||||
BEGIN_SINK_MAP(CScriptView)
|
||||
SINK_ENTRY_EX( VIEW_ID, DIID_IViewEvents, DISPID_ACTIVATE, onViewActivate )
|
||||
SINK_ENTRY_EX( VIEW_ID, DIID_IViewEvents, DISPID_DEACTIVATE, onViewDeactivate )
|
||||
END_SINK_MAP()
|
||||
|
||||
// IScriptView
|
||||
public:
|
||||
void loadView( cScriptPlugin *pPlugin, MSXML::IXMLDOMElementPtr &pView, LPDISPATCH *ppNewView );
|
||||
void destroy();
|
||||
|
||||
CComPtr< IView > m_pView;
|
||||
CComPtr< IPluginSite > m_pOldSite;
|
||||
|
||||
cScriptPlugin *m_pPlugin;
|
||||
_bstr_t m_strTemplate;
|
||||
|
||||
// Method Calls
|
||||
void __stdcall onViewActivate()
|
||||
{
|
||||
Fire_Activate();
|
||||
}
|
||||
|
||||
void __stdcall onViewDeactivate()
|
||||
{
|
||||
Fire_Deactivate();
|
||||
}
|
||||
};
|
||||
|
||||
#endif //__SCRIPTVIEW_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue