1*2c7984eaSAndrew Rist /************************************************************** 2*2c7984eaSAndrew Rist * 3*2c7984eaSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*2c7984eaSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*2c7984eaSAndrew Rist * distributed with this work for additional information 6*2c7984eaSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*2c7984eaSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*2c7984eaSAndrew Rist * "License"); you may not use this file except in compliance 9*2c7984eaSAndrew Rist * with the License. You may obtain a copy of the License at 10*2c7984eaSAndrew Rist * 11*2c7984eaSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*2c7984eaSAndrew Rist * 13*2c7984eaSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*2c7984eaSAndrew Rist * software distributed under the License is distributed on an 15*2c7984eaSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*2c7984eaSAndrew Rist * KIND, either express or implied. See the License for the 17*2c7984eaSAndrew Rist * specific language governing permissions and limitations 18*2c7984eaSAndrew Rist * under the License. 19*2c7984eaSAndrew Rist * 20*2c7984eaSAndrew Rist *************************************************************/ 21*2c7984eaSAndrew Rist 22cdf0e10cSrcweir // UserRegistrar.h: Schnittstelle f�r die Klasse UserRegistrar. 23cdf0e10cSrcweir // 24cdf0e10cSrcweir ////////////////////////////////////////////////////////////////////// 25cdf0e10cSrcweir 26cdf0e10cSrcweir #ifndef _USERREGISTRAR_HXX_ 27cdf0e10cSrcweir #define _USERREGISTRAR_HXX_ 28cdf0e10cSrcweir 29cdf0e10cSrcweir #include "registrar.hxx" 30cdf0e10cSrcweir 31cdf0e10cSrcweir class UserRegistrar : public Registrar 32cdf0e10cSrcweir { 33cdf0e10cSrcweir public: 34cdf0e10cSrcweir 35cdf0e10cSrcweir //################################### 36cdf0e10cSrcweir // Creation 37cdf0e10cSrcweir //################################### 38cdf0e10cSrcweir 39cdf0e10cSrcweir UserRegistrar(const RegistrationContextInformation& RegContext); 40cdf0e10cSrcweir 41cdf0e10cSrcweir //################################### 42cdf0e10cSrcweir // Command 43cdf0e10cSrcweir //################################### 44cdf0e10cSrcweir 45cdf0e10cSrcweir virtual void UnregisterAsHtmlEditorForInternetExplorer() const; 46cdf0e10cSrcweir 47cdf0e10cSrcweir virtual void RegisterAsDefaultShellHtmlEditor() const; 48cdf0e10cSrcweir virtual void UnregisterAsDefaultShellHtmlEditor() const; 49cdf0e10cSrcweir 50cdf0e10cSrcweir protected: 51cdf0e10cSrcweir virtual void UnregisterForMsOfficeApplication( 52cdf0e10cSrcweir const std::wstring& FileExtension) const; 53cdf0e10cSrcweir 54cdf0e10cSrcweir virtual RegistryKey GetRootKeyForDefHtmlEditorForIERegistration() const; 55cdf0e10cSrcweir 56cdf0e10cSrcweir private: 57cdf0e10cSrcweir 58cdf0e10cSrcweir /** Delete the privately created file associations 59cdf0e10cSrcweir for htm files if the keys are empty 60cdf0e10cSrcweir */ 61cdf0e10cSrcweir void DeleteHtmFileAssociationKeys() const; 62cdf0e10cSrcweir }; 63cdf0e10cSrcweir 64cdf0e10cSrcweir #endif 65