4#ifndef __LedLineItApplication_h__
5#define __LedLineItApplication_h__ 1
7#include "Stroika/Frameworks/StroikaPreComp.h"
9DISABLE_COMPILER_MSC_WARNING_START (5054)
11DISABLE_COMPILER_MSC_WARNING_END (5054)
13#if qStroika_Foundation_Common_Platform_Windows
14#include "Stroika/Foundation/Execution/Platform/Windows/COM.h"
18#include "Stroika/Frameworks/Led/Support.h"
19#include "Stroika/Frameworks/Led/TextStore.h"
21#include "LedLineItConfig.h"
23#if qIncludeBasicSpellcheckEngine
24#include "Stroika/Frameworks/Led/SpellCheckEngine_Basic.h"
28extern bool gSupportAutoIdent;
30class LedLineItApplication :
public CWinApp {
32 using inherited = CWinApp;
35 LedLineItApplication ();
36 ~LedLineItApplication ();
39 static LedLineItApplication& Get ();
42 static LedLineItApplication* sThe;
45 virtual BOOL InitInstance ()
override;
47#if qIncludeBasicSpellcheckEngine
49 shared_ptr<SpellCheckEngine_Basic_Simple> fSpellCheckEngine;
53 virtual void WinHelpInternal (DWORD_PTR dwData, UINT nCmd = HELP_CONTEXT)
override;
57 virtual BOOL PumpMessage ()
override;
59 nonvirtual
void HandleMFCException (CException* e)
noexcept;
60 nonvirtual
void HandleBadAllocException () noexcept;
61 nonvirtual
void HandleBadUserInputException () noexcept;
62 nonvirtual
void HandleUnknownException () noexcept;
65 nonvirtual
void AddDocTemplateForString (const
char* tmplStr,
bool connectToServer);
67 COleTemplateServer fOleTemplateServer;
70 nonvirtual BOOL ProcessShellCommand (CCommandLineInfo& rCmdInfo);
73 afx_msg
void OnAppAbout ();
74 afx_msg
void OnGotoLedLineItWebPageCommand ();
75 afx_msg
void OnGotoSophistsWebPageCommand ();
76 afx_msg
void OnCheckForUpdatesWebPageCommand ();
77 afx_msg
void OnToggleAutoIndentOptionCommand ();
78 afx_msg
void OnToggleAutoIndentOptionUpdateCommandUI (CCmdUI* pCmdUI);
79 afx_msg
void OnToggleTreatTabAsIndentCharOptionCommand ();
80 afx_msg
void OnToggleTreatTabAsIndentCharOptionUpdateCommandUI (CCmdUI* pCmdUI);
81 afx_msg
void OnToggleSmartCutNPasteOptionCommand ();
82 afx_msg
void OnToggleSmartCutNPasteOptionUpdateCommandUI (CCmdUI* pCmdUI);
83#if qSupportSyntaxColoring
84 afx_msg
void OnSyntaxColoringOptionCommand (UINT cmdNum);
85 afx_msg
void OnSyntaxColoringOptionUpdateCommandUI (CCmdUI* pCmdUI);
87 afx_msg
void OnChooseDefaultFontCommand ();
90 nonvirtual
void UpdateViewsForPrefsChange ();
92#if qStroika_Foundation_Common_Platform_Windows
94 Execution::Platform::Windows::COMInitializer fCOMInitializer_{COINIT_APARTMENTTHREADED};
97 Execution::Logger::Activator fLogMgrActivator_;
100 DECLARE_MESSAGE_MAP ()