Fix typos
[TortoiseGit.git] / src / TortoiseGitBlame / TortoiseGitBlameDoc.h
blobf63411e16cf41879250ce79a179bd1556cc08a2c
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2008-2011, 2013, 2016-2017, 2023 - TortoiseGit
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (at your option) any later version.
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software Foundation,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 // TortoiseGitBlameDoc.h : interface of the CTortoiseGitBlameDoc class
24 #pragma once
25 #include "TGitPath.h"
27 class CMainFrame ;
29 class CTortoiseGitBlameDoc : public CDocument
31 protected: // create from serialization only
32 CTortoiseGitBlameDoc();
33 DECLARE_DYNCREATE(CTortoiseGitBlameDoc)
34 bool m_bFirstStartup = true;
36 // Attributes
37 public:
38 BYTE_VECTOR m_BlameData;
39 CString m_CurrentFileName;
40 #ifdef USE_TEMPFILENAME
41 CString m_TempFileName;
42 #endif
43 CString m_Rev;
44 int m_lLine = 1;
46 // Operations
47 CTGitPath m_GitPath;
49 // Overrides
50 BOOL OnNewDocument() override;
51 BOOL OnOpenDocument(LPCWSTR lpszPathName) override;
52 BOOL OnOpenDocument(LPCWSTR lpszPathName, CString Rev);
53 void SetPathName(LPCWSTR lpszPathName, BOOL bAddToMRU = TRUE) override;
55 // Implementation
56 virtual ~CTortoiseGitBlameDoc();
57 #ifdef _DEBUG
58 void AssertValid() const override;
59 void Dump(CDumpContext& dc) const override;
60 #endif
61 CMainFrame *GetMainFrame()
63 return reinterpret_cast<CMainFrame*>(AfxGetApp()->GetMainWnd());
66 protected:
67 // Generated message map functions
68 DECLARE_MESSAGE_MAP()