summaryrefslogtreecommitdiff
path: root/setup_native/source/win32/customactions/reg4msdoc/userregistrar.hxx
diff options
context:
space:
mode:
authorTino Rachui <tra@openoffice.org>2004-05-26 16:06:21 +0000
committerTino Rachui <tra@openoffice.org>2004-05-26 16:06:21 +0000
commitc81c178f9c9a827749c97a979eff38576477a831 (patch)
tree9c20d0d97f718d85aab915c133793ee45b7bfa77 /setup_native/source/win32/customactions/reg4msdoc/userregistrar.hxx
parentd5941aca9f3681efc403e87fcf3678d200fa7cc8 (diff)
#i28276#
Diffstat (limited to 'setup_native/source/win32/customactions/reg4msdoc/userregistrar.hxx')
-rw-r--r--setup_native/source/win32/customactions/reg4msdoc/userregistrar.hxx45
1 files changed, 45 insertions, 0 deletions
diff --git a/setup_native/source/win32/customactions/reg4msdoc/userregistrar.hxx b/setup_native/source/win32/customactions/reg4msdoc/userregistrar.hxx
new file mode 100644
index 000000000..004ef82dc
--- /dev/null
+++ b/setup_native/source/win32/customactions/reg4msdoc/userregistrar.hxx
@@ -0,0 +1,45 @@
+// UserRegistrar.h: Schnittstelle für die Klasse UserRegistrar.
+//
+//////////////////////////////////////////////////////////////////////
+
+#ifndef _USERREGISTRAR_HXX_
+#define _USERREGISTRAR_HXX_
+
+#ifndef _REGISTRAR_HXX_
+#include "registrar.hxx"
+#endif
+
+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