activegs-ios/ActiveGS.exe/cgfiltyp.h

101 lines
2.5 KiB
C++

//- -----------------------------------------------------------------
//- (C) Copyright 2000 Blake V. Miller
//- All Rights Reserved.
//- -----------------------------------------------------------------
//- File : CGFILTYP.H
//- Author : Blake Miller
//- Version : June 16, 2000
//- Purpose : File Type Access
//- -----------------------------------------------------------------
#if _MSC_VER > 1000
#pragma once
#endif
#ifndef __CGFILTYP_H__
#define __CGFILTYP_H__
#ifdef __cplusplus
class CGCFileTypeAccess : public CObject
{
DECLARE_DYNAMIC(CGCFileTypeAccess)
public:
CGCFileTypeAccess();
virtual ~CGCFileTypeAccess();
virtual void ClearAllData(void);
//- ----------------------------------------
//- Effect Registry
virtual BOOL RegSetAllInfo (void);
virtual BOOL RegSetExtension (void);
virtual BOOL RegSetDocumentType (void);
virtual BOOL RegSetCLSID (void);
virtual BOOL RegSetShellInfo (void);
//- ----------------------------------------
//- Modify Member Variables
void SetExtension (LPCTSTR);
void GetExtension (CString&) const;
void SetContentType (LPCTSTR);
void GetContentType (CString&) const;
void SetShellOpenCommand (LPCTSTR);
void GetShellOpenCommand (CString&) const;
void SetShellNewCommand (LPCTSTR);
void GetShellNewCommand (CString&) const;
void SetShellNewFileName (LPCTSTR);
void GetShellNewFileName (CString&) const;
void SetDocumentClassName (LPCTSTR);
void GetDocumentClassName (CString&) const;
void SetDocumentDescription (LPCTSTR);
void GetDocumentDescription (CString&) const;
void SetDocumentCLSID (LPCTSTR);
void GetDocumentCLSID (CString&) const;
void SetDocumentCurrentVersion (LPCTSTR);
void GetDocumentCurrentVersion (CString&) const;
void SetDocumentDefaultIcon (LPCTSTR);
void GetDocumentDefaultIcon (CString&) const;
void SetDocumentShellOpenCommand (LPCTSTR);
void GetDocumentShellOpenCommand (CString&) const;
protected:
BOOL SetRegistryValue(HKEY, LPCTSTR, LPCTSTR, LPCTSTR);
CString m_csExtension;
CString m_csContentType;
CString m_csShellOpenCommand;
CString m_csShellNewCommand;
CString m_csShellNewFileName;
CString m_csDocumentClassName;
CString m_csDocumentDescription;
CString m_csDocumentCLSID;
CString m_csDocumentCurrentVersion;
CString m_csDocumentDefaultIcon;
CString m_csDocumentShellOpenCommand;
};
#endif // __cplusplus
#endif // __CGFILTYP_H__
//- -----------------------------------------------------------------
//- END CGFILTYP.H Header File
//- -----------------------------------------------------------------