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
29 class CTortoiseGitBlameDoc
: public CDocument
31 protected: // create from serialization only
32 CTortoiseGitBlameDoc();
33 DECLARE_DYNCREATE(CTortoiseGitBlameDoc
)
34 bool m_bFirstStartup
= true;
38 BYTE_VECTOR m_BlameData
;
39 CString m_CurrentFileName
;
40 #ifdef USE_TEMPFILENAME
41 CString m_TempFileName
;
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
;
56 virtual ~CTortoiseGitBlameDoc();
58 void AssertValid() const override
;
59 void Dump(CDumpContext
& dc
) const override
;
61 CMainFrame
*GetMainFrame()
63 return reinterpret_cast<CMainFrame
*>(AfxGetApp()->GetMainWnd());
67 // Generated message map functions