- Code/Resource
- Windows Develop
- Linux-Unix program
- Internet-Socket-Network
- Web Server
- Browser Client
- Ftp Server
- Ftp Client
- Browser Plugins
- Proxy Server
- Email Server
- Email Client
- WEB Mail
- Firewall-Security
- Telnet Server
- Telnet Client
- ICQ-IM-Chat
- Search Engine
- Sniffer Package capture
- Remote Control
- xml-soap-webservice
- P2P
- WEB(ASP,PHP,...)
- TCP/IP Stack
- SNMP
- Grid Computing
- SilverLight
- DNS
- Cluster Service
- Network Security
- Communication-Mobile
- Game Program
- Editor
- Multimedia program
- Graph program
- Compiler program
- Compress-Decompress algrithms
- Crypt_Decrypt algrithms
- Mathimatics-Numerical algorithms
- MultiLanguage
- Disk/Storage
- Java Develop
- assembly language
- Applications
- Other systems
- Database system
- Embeded-SCM Develop
- FlashMX/Flex
- source in ebook
- Delphi VCL
- OS Develop
- MiddleWare
- MPI
- MacOS develop
- LabView
- ELanguage
- Software/Tools
- E-Books
- Artical/Document
HTMLFILT.HXX
Package: MSDN_VC98.zip [view]
Upload User: bangxh
Upload Date: 2007-01-31
Package Size: 42235k
Code Size: 4k
Category:
Windows Develop
Development Platform:
Visual C++
- //+---------------------------------------------------------------------------
- //
- // Copyright (C) 1992 - 1997 Microsoft Corporation.
- //
- // File: htmlfilt.hxx
- //
- // Contents: Html filter
- //
- // Classes: HtmlIFilter
- //
- //----------------------------------------------------------------------------
- #ifndef __HTMLFILT_HXX__
- #define __HTMLFILT_HXX__
- #include <htmliflt.hxx>
- #include <bag.hxx>
- class CHtmlElement;
- class CFullPropSpec;
- //+---------------------------------------------------------------------------
- //
- // Class: CHtmlIFilter
- //
- // Purpose: Html Filter
- //
- //----------------------------------------------------------------------------
- class CHtmlIFilter: public CHtmlIFilterBase
- {
- public:
- CHtmlIFilter();
- ~CHtmlIFilter();
- //
- // Functions inherited from IFilter and IPersistFile
- //
- SCODE STDMETHODCALLTYPE Init( ULONG grfFlags,
- ULONG cAttributes,
- FULLPROPSPEC const * aAttributes,
- ULONG * pFlags );
- SCODE STDMETHODCALLTYPE GetChunk( STAT_CHUNK * pStat );
- SCODE STDMETHODCALLTYPE GetText( ULONG * pcwcOutput,
- WCHAR * awcBuffer );
- SCODE STDMETHODCALLTYPE GetValue( VARIANT ** ppPropValue );
- SCODE STDMETHODCALLTYPE BindRegion( FILTERREGION origPos,
- REFIID riid,
- void ** ppunk );
- SCODE STDMETHODCALLTYPE GetClassID(CLSID * pClassID);
- SCODE STDMETHODCALLTYPE IsDirty();
- SCODE STDMETHODCALLTYPE Load(LPCWSTR pszFileName, DWORD dwMode);
- SCODE STDMETHODCALLTYPE Save(LPCWSTR pszFileName, BOOL fRemember);
- SCODE STDMETHODCALLTYPE SaveCompleted(LPCWSTR pszFileName);
- SCODE STDMETHODCALLTYPE GetCurFile(LPWSTR * ppszFileName);
- //
- // Html specific functions
- //
- void ChangeState( CHtmlElement *pHtmlElemNewState );
- CHtmlElement * QueryHtmlElement( HtmlTokenType eTokType );
- CHtmlElement * GetCurHtmlElement() { return _pHtmlElement; }
- BOOL IsStopToken( CToken& token );
- ULONG GetNextChunkId();
- BOOL FFilterContent() { return _fFilterContent; }
- LCID GetLocale() { return _locale; }
- void SetLocale( LCID locale ) { _locale = locale; }
- private:
- BOOL IsNonHtmlFile();
- CHtmlElement * _pHtmlElement; // Current processing element
- BOOL _fNonHtmlFile; // IE workaround: Set to true
- // if a non-html file
- // such as .gif file has been
- // asked to be filtered by html
- // filter
- BOOL _fFilterContent; // Filter contents ?
- BOOL _fFilterMetaTag; // Filter meta tag ?
- BOOL _fFilterScriptTag; // Filter script tag ?
- ULONG _cAttributes; // Count of attributes
- CFullPropSpec * _pAttributes; // Attributes to filter
- WCHAR * _pwszFileName; // File that has been loaded
- ULONG _ulChunkID; // Current chunk id
- LCID _locale; // Locale
- CHtmlElementBag _htmlElementBag; // Bag of various Html elements
- CSerialStream _serialStream; // Input Stream
- };
- #endif // __HTMLFILT_HXX__