⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cedtview.h

📁 Crimson编辑器的英文版,完成从韩文版变成英文版的移植,并且附带可执行文件和注册表文件,无需原先的安装包,是改写编辑器的最理想选择.
💻 H
📖 第 1 页 / 共 3 页
字号:


protected: // *** cedtViewSearch.cpp ***
	BOOL ActionForwardFindString(LPCTSTR lpszFindString, UINT nOptions, CRegExp & clsRegExp);
	BOOL ActionReverseFindString(LPCTSTR lpszFindString, UINT nOptions, CRegExp & clsRegExp);

	INT  ActionReplaceAllInSelection(LPCTSTR lpszFindString, LPCTSTR lpszReplaceString, UINT nOptions, CRegExp & clsRegExp);
	INT  ActionReplaceAllInFile(LPCTSTR lpszFindString, LPCTSTR lpszReplaceString, UINT nOptions, CRegExp & clsRegExp);
	INT  ActionReplaceThisOccurrence(LPCTSTR lpszReplaceString, UINT nOptions, CRegExp & clsRegExp);

	BOOL ActionGoToLine(INT nIdxY);
	BOOL ActionToggleBookmark();
	BOOL ActionNextBookmark();
	BOOL ActionPrevBookmark();

	BOOL ActionPrevEditingPosition();
	BOOL ActionPairsBeginPosition();
	BOOL ActionPairsEndPosition();

protected:
	BOOL OnePassFindString(INT & nIdxX, INT & nIdxY, LPCTSTR lpszFindString, UINT nOptions, CRegExp & clsRegExp);
	BOOL ForwardFindString(INT & nIdxX, INT & nIdxY, LPCTSTR lpszFindString, UINT nOptions, CRegExp & clsRegExp);
	BOOL ReverseFindString(INT & nIdxX, INT & nIdxY, LPCTSTR lpszFindString, UINT nOptions, CRegExp & clsRegExp);

	INT  ReplaceAllInSelection(INT & nBegX, INT & nBegY, INT & nEndX, INT & nEndY, LPCTSTR lpszFindString, LPCTSTR lpszReplaceString, UINT nOptions, CRegExp & clsRegExp);
	INT  ReplaceAllInFile(LPCTSTR lpszFindString, LPCTSTR lpszReplaceString, UINT nOptions, CRegExp & clsRegExp);
	INT  ReplaceThisOccurrence(INT & nBegX, INT & nBegY, INT & nEndX, INT & nEndY, LPCTSTR lpszReplaceString, UINT nOptions, CRegExp & clsRegExp);

	void ToggleBookmark(INT nIdxY);
	BOOL FindNextBookmark(INT & nIdxY);
	BOOL FindPrevBookmark(INT & nIdxY);

	BOOL IsThisIndentOnChar(INT nIdxX, INT nIdxY);
	BOOL IsThisIndentOffChar(INT nIdxX, INT nIdxY);

	BOOL IsThisOneOfPairs(INT nIdxX, INT nIdxY, BOOL & bBeginning);
	BOOL FindAnotherOneOfPairs(INT & nIdxX, INT & nIdxY);

	BOOL ForwardFindEndingPair(INT & nIdxX, INT & nIdxY);
	BOOL ReverseFindBeginningPair(INT & nIdxX, INT & nIdxY);

	BOOL IsStringInSelection(INT nIdxX, INT nIdxY, INT nLength, INT nBegX, INT nBegY, INT nEndX, INT nEndY);


public: // *** cedtViewCommand.cpp ***
	static BOOL IsCommandRunningInCaptureOutputMode() { return (m_hChildStdinWrDup || m_hChildStdoutRdDup); }
	static BOOL RefreshUserCommandFilePathForMenu();

	static CString GetCommandName(INT nCommand);
	static CString GetCommandHotKeyText(INT nCommand);

	static INT  IsCommandAssigned(INT nCommand) { return m_clsUserCommand[nCommand].IsAssigned(); }
	static void DeleteCommand(INT nCommand) { m_clsUserCommand[nCommand].DeleteContents(); }

	static BOOL SetChildInputString(LPCTSTR lpszInputString);
	static BOOL KillChildProcess();

protected:
	BOOL TranslateMessageForUserCommand(MSG * pMsg);
	BOOL ExecuteCommand(INT nCommand);

	BOOL AskUserInputArguments(CString & szUserInput);
	BOOL AskUserSelectFilePath(LPCTSTR lpszPathName, CString & szSelectPath);
	BOOL AskUserSelectDirectory(LPCTSTR lpszPathName, CString & szSelectDirectory);

	BOOL SetDefaultShellVariables(CMapStringToString & clsVariables, LPCTSTR lpszPathName, LPCTSTR lpszLineNum, LPCTSTR lpszCurrWord,
		 LPCTSTR lpszUserInput, LPCTSTR lpszSelPath1, LPCTSTR lpszSelPath2, LPCTSTR lpszSelDir1, LPCTSTR lpszSelDir2);
	BOOL ReplaceShellVariables(CString & szArgument, CMapStringToString & clsVariables);
	BOOL ExpandShellVariable(CString & szVariable, LPCTSTR lpszExpand);

	BOOL ExecuteWinHelp(LPCTSTR lpszCommand, LPCTSTR lpszArgument);
	BOOL ExecuteHtmlHelp(LPCTSTR lpszCommand, LPCTSTR lpszArgument);
	BOOL ExecuteExecutable(LPCTSTR lpszCommand, LPCTSTR lpszArgument, LPCTSTR lpszDirectory, BOOL bCloseOnExit, BOOL bCaptureOutput);
	void OnTimerCaptureOutput();


public: // *** cedtViewMacro.cpp ***
	static BOOL RefreshMacroBufferFilePathForMenu();

	static CString GetMacroName(INT nMacro);
	static CString GetMacroHotKeyText(INT nMacro);

	static INT  GetMacroBufferCount(INT nMacro) { return m_clsMacroBuffer[nMacro].GetBufferCount(); }
	static void EmptyMacroBuffer(INT nMacro) { m_clsMacroBuffer[nMacro].DeleteContents(); }

protected:
	BOOL TranslateMessageForMacroBuffer(MSG * pMsg);
	void ActionReplayMacro(INT nMacro, INT nTimes);

	void BeginMacroRecording(INT nMacroRecordingNumber, LPCTSTR lpszMacroName);
	void EndMacroRecording();
	void CancelMacroRecording();
	BOOL IsMacroRecording() { return m_bMacroRecording; }

	void MacroRecordMove(UINT nChar, UINT nFlags);

	void MacroRecordChar(UINT nChar);
	void MacroRecordString(LPCTSTR lpszString);
	void MacroRecordFile(LPCTSTR lpszPathName);

	void MacroRecordFind(LPCTSTR lpszFindString, UINT nOptions);
	void MacroRecordReplace(LPCTSTR lpszFindString, LPCTSTR lpszReplaceString, UINT nOptions);
	void MacroRecordGoTo(UINT nLineNumber);

	void MacroRecordCommand(UINT nCommand);


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCedtView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual void OnInitialUpdate();
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	virtual DROPEFFECT OnDragEnter(COleDataObject* pDataObject, DWORD dwKeyState, CPoint point);
	virtual void OnDragLeave();
	virtual DROPEFFECT OnDragOver(COleDataObject* pDataObject, DWORD dwKeyState, CPoint point);
	virtual BOOL OnDrop(COleDataObject* pDataObject, DROPEFFECT dropEffect, CPoint point);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CCedtView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CCedtView)
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
	afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnSetFocus(CWnd* pOldWnd);
	afx_msg void OnKillFocus(CWnd* pNewWnd);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnEditReturn();
	afx_msg void OnEditBack();
	afx_msg void OnEditEscape();
	afx_msg void OnEditDelete();
	afx_msg void OnEditSelectAll();
	afx_msg void OnEditSelectLine();
	afx_msg void OnEditSelectWord();
	afx_msg void OnViewWordWrap();
	afx_msg void OnUpdateViewWordWrap(CCmdUI* pCmdUI);
	afx_msg void OnEditInsertDate();
	afx_msg void OnEditInsertTime();
	afx_msg void OnEditInsertFile();
	afx_msg void OnEditCut();
	afx_msg void OnEditCopy();
	afx_msg void OnEditPaste();
	afx_msg void OnEditCutAppend();
	afx_msg void OnEditCopyAppend();
	afx_msg void OnUpdateEditCopy(CCmdUI* pCmdUI);
	afx_msg void OnUpdateEditCut(CCmdUI* pCmdUI);
	afx_msg void OnUpdateEditPaste(CCmdUI* pCmdUI);
	afx_msg void OnEditTab();
	afx_msg void OnEditDetab();
	afx_msg void OnEditJoinLines();
	afx_msg void OnEditSplitLine();
	afx_msg void OnEditDeleteLine();
	afx_msg void OnEditDuplicateLine();
	afx_msg void OnEditUndo();
	afx_msg void OnUpdateEditUndo(CCmdUI* pCmdUI);
	afx_msg void OnEditRedo();
	afx_msg void OnUpdateEditRedo(CCmdUI* pCmdUI);
	afx_msg void OnSearchFind();
	afx_msg void OnSearchReplace();
	afx_msg void OnSearchGoTo();
	afx_msg void OnSearchAskReplace();
	afx_msg void OnSearchToggleBookmark();
	afx_msg void OnSearchNextBookmark();
	afx_msg void OnSearchPrevBookmark();
	afx_msg void OnMacroBeginRecording();
	afx_msg void OnMacroEndRecording();
	afx_msg void OnUpdateMacroBeginRecording(CCmdUI* pCmdUI);
	afx_msg void OnUpdateMacroEndRecording(CCmdUI* pCmdUI);
	afx_msg void OnMacroReplay();
	afx_msg void OnMacroReplay1();
	afx_msg void OnMacroReplay2();
	afx_msg void OnMacroReplay3();
	afx_msg void OnMacroReplay4();
	afx_msg void OnMacroReplay5();
	afx_msg void OnMacroReplay6();
	afx_msg void OnMacroReplay7();
	afx_msg void OnMacroReplay8();
	afx_msg void OnMacroReplay9();
	afx_msg void OnMacroReplay0();
	afx_msg void OnUpdateMacroReplay(CCmdUI* pCmdUI);
	afx_msg void OnUpdateMacroReplay1(CCmdUI* pCmdUI);
	afx_msg void OnUpdateMacroReplay2(CCmdUI* pCmdUI);
	afx_msg void OnUpdateMacroReplay3(CCmdUI* pCmdUI);
	afx_msg void OnUpdateMacroReplay4(CCmdUI* pCmdUI);
	afx_msg void OnUpdateMacroReplay5(CCmdUI* pCmdUI);
	afx_msg void OnUpdateMacroReplay6(CCmdUI* pCmdUI);
	afx_msg void OnUpdateMacroReplay7(CCmdUI* pCmdUI);
	afx_msg void OnUpdateMacroReplay8(CCmdUI* pCmdUI);
	afx_msg void OnUpdateMacroReplay9(CCmdUI* pCmdUI);
	afx_msg void OnUpdateMacroReplay0(CCmdUI* pCmdUI);
	afx_msg void OnViewSpellCheck();
	afx_msg void OnUpdateViewSpellCheck(CCmdUI* pCmdUI);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnCommandExecute0();
	afx_msg void OnCommandExecute1();
	afx_msg void OnCommandExecute2();
	afx_msg void OnCommandExecute3();
	afx_msg void OnCommandExecute4();
	afx_msg void OnCommandExecute5();
	afx_msg void OnCommandExecute6();
	afx_msg void OnCommandExecute7();
	afx_msg void OnCommandExecute8();
	afx_msg void OnCommandExecute9();
	afx_msg void OnUpdateCommandExecute0(CCmdUI* pCmdUI);
	afx_msg void OnUpdateCommandExecute1(CCmdUI* pCmdUI);
	afx_msg void OnUpdateCommandExecute2(CCmdUI* pCmdUI);
	afx_msg void OnUpdateCommandExecute3(CCmdUI* pCmdUI);
	afx_msg void OnUpdateCommandExecute4(CCmdUI* pCmdUI);
	afx_msg void OnUpdateCommandExecute5(CCmdUI* pCmdUI);
	afx_msg void OnUpdateCommandExecute6(CCmdUI* pCmdUI);
	afx_msg void OnUpdateCommandExecute7(CCmdUI* pCmdUI);
	afx_msg void OnUpdateCommandExecute8(CCmdUI* pCmdUI);
	afx_msg void OnUpdateCommandExecute9(CCmdUI* pCmdUI);
	afx_msg void OnEditUpperCase();
	afx_msg void OnEditLowerCase();
	afx_msg void OnEditCapitalize();
	afx_msg void OnEditInvertCase();
	afx_msg void OnSearchPrevEdit();
	afx_msg void OnSearchPairsBegin();
	afx_msg void OnSearchPairsEnd();
	afx_msg void OnEditMakeComment();
	afx_msg void OnEditReleaseComment();
	afx_msg void OnMoveCaretLeft();
	afx_msg void OnMoveCaretRight();
	afx_msg void OnMoveCaretUp();
	afx_msg void OnMoveCaretDown();
	afx_msg void OnToolMsDosShell();
	afx_msg void OnToolViewInBrowser();
	afx_msg void OnEditIncreaseIndent();
	afx_msg void OnEditDecreaseIndent();
	afx_msg void OnEditSelectBlock();
	afx_msg void OnEditConvertTabsToSpaces();
	afx_msg void OnEditRemoveTrailingSpaces();
	afx_msg void OnEditDeleteWord();
	afx_msg void OnEditDeleteToEndOfLine();
	afx_msg void OnEditDeletePrevWord();
	afx_msg void OnCommandSendInput();
	afx_msg void OnCommandKillProcess();
	afx_msg void OnToolEvaluateLine();
	afx_msg void OnSearchNextWord();
	afx_msg void OnSearchPrevWord();
	afx_msg void OnSearchReplaceAllInSelection();
	afx_msg void OnSearchReplaceAllInFile();
	afx_msg void OnSearchReplaceAllInOpenFiles();
	afx_msg void OnSearchReplaceThisOccurrence();
	afx_msg void OnEditConvertSpacesToTabs();
	afx_msg void OnEditLeadingSpacesToTabs();
	afx_msg void OnEditCopyFilePath();
	afx_msg void OnMoveCaretHome();
	afx_msg void OnMoveCaretEnd();
	afx_msg void OnMoveCaretPrior();
	afx_msg void OnMoveCaretNext();
	afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnEditDeleteToBeginOfLine();
	afx_msg void OnSearchReplaceAllInFileOutputWindow();
	afx_msg void OnSearchNextOccurrence();
	afx_msg void OnSearchPrevOccurrence();
	afx_msg void OnSearchFindNext();
	afx_msg void OnSearchFindPrev();
	afx_msg void OnUpdateSearchFindNext(CCmdUI* pCmdUI);
	afx_msg void OnUpdateSearchFindPrev(CCmdUI* pCmdUI);
	afx_msg void OnScrollScreenTop();
	afx_msg void OnScrollScreenBottom();
	afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
	afx_msg void OnScrollScreenCenter();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnUpdateCommandSendInput(CCmdUI* pCmdUI);
	afx_msg void OnUpdateCommandKillProcess(CCmdUI* pCmdUI);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};


/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CEDTVIEW_H__FFCA2B8E_F9C5_11D4_A6F1_0050CE184C9B__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -