summaryrefslogtreecommitdiff
path: root/setup_native/source/win32/customactions/reg4msdoc/registry.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'setup_native/source/win32/customactions/reg4msdoc/registry.hxx')
-rw-r--r--setup_native/source/win32/customactions/reg4msdoc/registry.hxx64
1 files changed, 32 insertions, 32 deletions
diff --git a/setup_native/source/win32/customactions/reg4msdoc/registry.hxx b/setup_native/source/win32/customactions/reg4msdoc/registry.hxx
index fe0014b6a191..4d251b8eea5f 100644
--- a/setup_native/source/win32/customactions/reg4msdoc/registry.hxx
+++ b/setup_native/source/win32/customactions/reg4msdoc/registry.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,18 +53,18 @@ class RegistryKeyImpl;
// typedefs
//---------------------------------------
-typedef std::auto_ptr<RegistryKeyImpl> RegistryKey;
-typedef std::vector<std::wstring> StringList;
-typedef std::auto_ptr<StringList> StringListPtr;
+typedef std::auto_ptr<RegistryKeyImpl> RegistryKey;
+typedef std::vector<std::wstring> StringList;
+typedef std::auto_ptr<StringList> StringListPtr;
//---------------------------------------
-//
+//
//---------------------------------------
class RegistryKeyImpl
{
-public:
-
+public:
+
//############################################
// Destruction
//############################################
@@ -83,10 +83,10 @@ public:
std::wstring GetName() const;
/** The number of sub values of the key at hand
-
+
@precond IsOpen = true
- @throws
+ @throws
*/
virtual size_t GetSubValueCount() const = 0;
@@ -97,7 +97,7 @@ public:
@throws
*/
virtual size_t GetSubKeyCount() const = 0;
-
+
bool IsOpen() const;
/** Do we have write access on the key at hand
@@ -136,9 +136,9 @@ public:
@precond IsOpen = true
*/
virtual RegistryValue GetValue(const std::wstring& Name, const RegistryValue& Default) const = 0;
-
+
/** Convenience function to determine if the
- Registry key at hand has the specified
+ Registry key at hand has the specified
value
@precond IsOpen = true
@@ -148,7 +148,7 @@ public:
bool HasValue(const std::wstring& Name) const;
/** Convenience function to determine if the
- Registry key at hand has the specified
+ Registry key at hand has the specified
sub-key
@precond IsOpen = true
@@ -163,9 +163,9 @@ public:
//############################################
- /** Open the registry key, has no effect if
+ /** Open the registry key, has no effect if
the key is already open
-
+
@precond IsOpen = false
@throws RegistryWriteAccessDenyException
@@ -177,12 +177,12 @@ public:
using it without re-opening may cause
RegistryIOExceptions to be thrown
- This is a template method that calls
- ImplClose which has to be overwritten
+ This is a template method that calls
+ ImplClose which has to be overwritten
by sub-classes
*/
void Close();
-
+
/** Open the specified sub-key of the registry key
at hand
@@ -233,7 +233,7 @@ public:
IsWriteable = true
HasValue(Name) = true
- @throws RegistryIOException
+ @throws RegistryIOException
RegistryWriteAccessDeniedException
RegistryValueNotFoundException
*/
@@ -250,8 +250,8 @@ public:
virtual void SetValue(const RegistryValue& Value) = 0;
- /** Copies the specified value from RegistryKey to
- the registry key at hand, if a value with this
+ /** Copies the specified value from RegistryKey to
+ the registry key at hand, if a value with this
name already exist under the registry key at hand
it will be overwritten
@@ -265,8 +265,8 @@ public:
*/
virtual void CopyValue(const RegistryKey& RegistryKey, const std::wstring& Name);
- /** Copies the specified value from RegistryKey to
- the registry key at hand under a new name,
+ /** Copies the specified value from RegistryKey to
+ the registry key at hand under a new name,
if a value with this name already exist there
it will be overwritten
@@ -281,8 +281,8 @@ public:
virtual void CopyValue(const RegistryKey& RegistryKey, const std::wstring& Name, const std::wstring& NewName);
//############################################
- // Creation
- // only possible through WindowsRegistry class
+ // Creation
+ // only possible through WindowsRegistry class
//############################################
@@ -296,7 +296,7 @@ protected:
RegistryKeyImpl(HKEY RootKey, const std::wstring& KeyName);
/** Create instance of the specified Registry key.
- RootKey should only one of the predefined
+ RootKey should only one of the predefined
keys HKEY_CLASSES_ROOT, HKEY_CURRENT_USER,
HKEY_LOCAL_MACHINE, HKEY_USERS
@@ -305,7 +305,7 @@ protected:
RegistryKeyNotFoundException
*/
RegistryKeyImpl(HKEY RootKey);
-
+
/** Create an instances of the specified Registry key,
the key is assumed to be already opened.
*/
@@ -318,11 +318,11 @@ protected:
*/
bool IsRootKey() const;
-protected:
- HKEY m_hRootKey;
- HKEY m_hSubKey;
- std::wstring m_KeyName;
- bool m_IsWriteable;
+protected:
+ HKEY m_hRootKey;
+ HKEY m_hSubKey;
+ std::wstring m_KeyName;
+ bool m_IsWriteable;
// prevent copy and assignment
private: