1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2010 - TortoiseSVN
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.
21 #include "FileDlgEventHandler.h"
23 CFileDlgEventHandler::CFileDlgEventHandler()
27 CFileDlgEventHandler::~CFileDlgEventHandler()
32 /////////////////////////////////////////////////////////////////////////////
33 // IFileDialogEvents methods
35 STDMETHODIMP
CFileDlgEventHandler::OnFileOk ( IFileDialog
* /*pfd*/ )
37 return S_OK
; // allow the dialog to close
40 STDMETHODIMP
CFileDlgEventHandler::OnFolderChanging ( IFileDialog
* /*pfd*/, IShellItem
* /*psiFolder*/ )
42 return S_OK
; // allow the change
45 STDMETHODIMP
CFileDlgEventHandler::OnFolderChange ( IFileDialog
* /*pfd*/ )
50 STDMETHODIMP
CFileDlgEventHandler::OnSelectionChange ( IFileDialog
* /*pfd*/ )
55 STDMETHODIMP
CFileDlgEventHandler::OnShareViolation ( IFileDialog
* /*pfd*/, IShellItem
* /*psi*/, FDE_SHAREVIOLATION_RESPONSE
* /*pResponse*/ )
60 STDMETHODIMP
CFileDlgEventHandler::OnTypeChange ( IFileDialog
* /*pfd*/ )
65 STDMETHODIMP
CFileDlgEventHandler::OnOverwrite ( IFileDialog
* /*pfd*/, IShellItem
* /*psi*/, FDE_OVERWRITE_RESPONSE
* /*pResponse*/ )
71 /////////////////////////////////////////////////////////////////////////////
72 // IFileDialogControlEvents methods
74 STDMETHODIMP
CFileDlgEventHandler::OnItemSelected ( IFileDialogCustomize
* /*pfdc*/, DWORD
/*dwIDCtl*/, DWORD
/*dwIDItem*/ )
79 STDMETHODIMP
CFileDlgEventHandler::OnButtonClicked ( IFileDialogCustomize
* /*pfdc*/, DWORD
/*dwIDCtl*/ )
84 STDMETHODIMP
CFileDlgEventHandler::OnCheckButtonToggled ( IFileDialogCustomize
* /*pfdc*/, DWORD
/*dwIDCtl*/, BOOL
/*bChecked*/ )
89 STDMETHODIMP
CFileDlgEventHandler::OnControlActivating ( IFileDialogCustomize
* /*pfdc*/, DWORD
/*dwIDCtl*/ )