00001
00002
00003
00004
00005 #if !defined(AFX_VMSFLASHHELPER_H__946677FB_A944_4239_BB78_C359FB68A392__INCLUDED_)
00006 #define AFX_VMSFLASHHELPER_H__946677FB_A944_4239_BB78_C359FB68A392__INCLUDED_
00007
00008 #if _MSC_VER > 1000
00009 #pragma once
00010 #endif
00011
00012 #include <comdef.h>
00013 #include <vector>
00014 typedef std::vector <IDispatchPtr> FLASHLIST, *LPFLASHLIST;
00015 #include <fsString.h>
00016
00017 class vmsFlashHelper
00018 {
00019 public:
00020 static void GetFlashInfo (IDispatchPtr spFlash, IHTMLDocument2Ptr spDoc, fsString* pstrMovieURL, fsString* pstrMovieHTML);
00021
00022
00023 static BOOL is_FlashElement (IHTMLElementPtr spEl, IDispatchPtr& spFlashDisp, IDispatchPtr &spFlashObject);
00024 static void GetFlashMoviesObjList (IHTMLDocument2Ptr spDoc, LPFLASHLIST pv, BOOL bIncludingFrames = TRUE);
00025 static void GetFlashMoviesList (IHTMLDocument2Ptr spDoc, std::vector <fsString>* pslURLs, std::vector <fsString>* pslHTMLs = NULL);
00026 static void SaveFlashMovies(IHTMLDocument2Ptr spDoc, LPCSTR pszFolder, BOOL bIncludingFrames = TRUE);
00027 static void DisableFlashMovies (IHTMLDocument2Ptr spDoc, BOOL bIncludingFrames = TRUE);
00028 vmsFlashHelper();
00029 virtual ~vmsFlashHelper();
00030
00031 protected:
00032 static void GetFlashMoviesObjList_noframes(IHTMLDocument2Ptr spDoc, LPFLASHLIST pv);
00033 static void SaveFlashMovies_noframes(IHTMLDocument2Ptr spDoc, LPCSTR pszFolder);
00034 };
00035
00036 #endif