Fixed issue #1728: TortoiseGitMerge show fake difference in the same lines if line...
[TortoiseGit.git] / src / TortoiseGitBlame / TortoiseGitBlameDoc.h
blob331d61de142d689c5a1505da5afebaab6f805cae
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
24 #pragma once
26 #include "Git.h"
27 #include "TGitPath.h"
29 class CMainFrame ;
31 class CTortoiseGitBlameDoc : public CDocument
33 protected: // create from serialization only
34 CTortoiseGitBlameDoc();
35 DECLARE_DYNCREATE(CTortoiseGitBlameDoc)
36 bool m_bFirstStartup;
38 // Attributes
39 public:
40 BYTE_VECTOR m_BlameData;
41 CString m_CurrentFileName;
42 CString m_TempFileName;
43 CString m_Rev;
44 long m_lLine;
46 // Operations
47 BOOL m_IsGitFile;
48 CTGitPath m_GitPath;
50 // Overrides
51 virtual BOOL OnNewDocument();
52 virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
53 virtual BOOL OnOpenDocument(LPCTSTR lpszPathName,CString Rev);
54 virtual void SetPathName(LPCTSTR lpszPathName, BOOL bAddToMRU = TRUE);
56 // Implementation
57 virtual ~CTortoiseGitBlameDoc();
58 #ifdef _DEBUG
59 virtual void AssertValid() const;
60 virtual void Dump(CDumpContext& dc) const;
61 #endif
62 CMainFrame *GetMainFrame()
64 return (CMainFrame*)AfxGetApp()->GetMainWnd();
67 protected:
68 // Generated message map functions
69 DECLARE_MESSAGE_MAP()