summaryrefslogtreecommitdiff
path: root/setup_native/source/win32/customactions/reg4msdoc/userregistrar.hxx
blob: 653a4790edda220c5f45073c54a420574f915a91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
// UserRegistrar.h: Schnittstelle fr die Klasse UserRegistrar.
//
//////////////////////////////////////////////////////////////////////

#ifndef _USERREGISTRAR_HXX_
#define _USERREGISTRAR_HXX_

#include "registrar.hxx"

class UserRegistrar : public Registrar  
{
public:
    
    //###################################
    // Creation
    //###################################

    UserRegistrar(const RegistrationContextInformation& RegContext);

    //###################################
    // Command 
    //###################################
        
    virtual void UnregisterAsHtmlEditorForInternetExplorer() const;
    
    virtual void RegisterAsDefaultShellHtmlEditor() const;
    virtual void UnregisterAsDefaultShellHtmlEditor() const;
    
protected:
    virtual void UnregisterForMsOfficeApplication(
        const std::wstring& FileExtension) const;
        
    virtual RegistryKey GetRootKeyForDefHtmlEditorForIERegistration() const;
    
private:
    
    /** Delete the privately created file associations 
          for htm files if the keys are empty  
    */
    void DeleteHtmFileAssociationKeys() const;
};

#endif 

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */