1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2008-2011,2013 - 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
31 class CTortoiseGitBlameDoc
: public CDocument
33 protected: // create from serialization only
34 CTortoiseGitBlameDoc();
35 DECLARE_DYNCREATE(CTortoiseGitBlameDoc
)
40 BYTE_VECTOR m_BlameData
;
41 CString m_CurrentFileName
;
42 #ifdef USE_TEMPFILENAME
43 CString m_TempFileName
;
53 virtual BOOL
OnNewDocument();
54 virtual BOOL
OnOpenDocument(LPCTSTR lpszPathName
);
55 virtual BOOL
OnOpenDocument(LPCTSTR lpszPathName
,CString Rev
);
56 virtual void SetPathName(LPCTSTR lpszPathName
, BOOL bAddToMRU
= TRUE
);
59 virtual ~CTortoiseGitBlameDoc();
61 virtual void AssertValid() const;
62 virtual void Dump(CDumpContext
& dc
) const;
64 CMainFrame
*GetMainFrame()
66 return (CMainFrame
*)AfxGetApp()->GetMainWnd();
70 // Generated message map functions