summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-04-29 15:46:50 +0000
committerOliver Bolte <obo@openoffice.org>2004-04-29 15:46:50 +0000
commit7014fb60efcb80d5dc43f830177d63dc0fd72897 (patch)
tree1d2e52aa337bcd4e6c7b327aca288bad9c65da28 /svtools
parent9961ff4496b6e91d3722e96886173a22a34327d5 (diff)
INTEGRATION: CWS os12 (1.1.254); FILE MERGED
2003/07/09 12:39:11 os 1.1.254.1: #103299# readonly configuration support for dialogs
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/config/extendedsecurityoptions.cxx25
1 files changed, 22 insertions, 3 deletions
diff --git a/svtools/source/config/extendedsecurityoptions.cxx b/svtools/source/config/extendedsecurityoptions.cxx
index 0af7c126f005..8bb816b7b4c3 100644
--- a/svtools/source/config/extendedsecurityoptions.cxx
+++ b/svtools/source/config/extendedsecurityoptions.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: extendedsecurityoptions.cxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: pb $ $Date: 2002-08-13 12:43:49 $
+ * last change: $Author: obo $ $Date: 2004-04-29 16:46:50 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -222,6 +222,7 @@ class SvtExtendedSecurityOptions_Impl : public ConfigItem
SvtExtendedSecurityOptions::OpenHyperlinkMode GetOpenHyperlinkMode();
void SetOpenHyperlinkMode( SvtExtendedSecurityOptions::OpenHyperlinkMode aMode );
+ sal_Bool IsOpenHyperlinkModeReadOnly() const;
//-------------------------------------------------------------------------------------------------------------
// private methods
@@ -267,6 +268,7 @@ class SvtExtendedSecurityOptions_Impl : public ConfigItem
OUString m_aExtensionPropName;
SvtExtendedSecurityOptions::OpenHyperlinkMode m_eOpenHyperlinkMode;
+ sal_Bool m_bROOpenHyperlinkMode;
ExtensionHashMap m_aExtensionHashMap;
};
@@ -281,7 +283,8 @@ SvtExtendedSecurityOptions_Impl::SvtExtendedSecurityOptions_Impl()
// Init baseclasses first
: ConfigItem ( ROOTNODE_SECURITY ),
m_aSecureExtensionsSetName( SECURE_EXTENSIONS_SET ),
- m_aExtensionPropName( EXTENSION_PROPNAME )
+ m_aExtensionPropName( EXTENSION_PROPNAME ),
+ m_bROOpenHyperlinkMode(sal_False)
// Init member then.
{
// Fill the extension hash map with all secure extension strings
@@ -289,6 +292,7 @@ SvtExtendedSecurityOptions_Impl::SvtExtendedSecurityOptions_Impl()
Sequence< OUString > seqNames = GetPropertyNames();
Sequence< Any > seqValues = GetProperties( seqNames );
+ Sequence< sal_Bool > seqRO = GetReadOnlyStates ( seqNames );
sal_Int32 nPropertyCount = seqValues.getLength();
for( sal_Int32 nProperty=0; nProperty<nPropertyCount; ++nProperty )
@@ -307,6 +311,7 @@ SvtExtendedSecurityOptions_Impl::SvtExtendedSecurityOptions_Impl()
m_eOpenHyperlinkMode = (SvtExtendedSecurityOptions::OpenHyperlinkMode)nMode;
else
DBG_ERROR("Wrong type for Open mode!");
+ m_bROOpenHyperlinkMode = seqRO[nProperty];
}
break;
}
@@ -404,6 +409,13 @@ SvtExtendedSecurityOptions::OpenHyperlinkMode SvtExtendedSecurityOptions_Impl::G
{
return m_eOpenHyperlinkMode;
}
+/* -----------------09.07.2003 11:26-----------------
+
+ --------------------------------------------------*/
+sal_Bool SvtExtendedSecurityOptions_Impl::IsOpenHyperlinkModeReadOnly() const
+{
+ return m_bROOpenHyperlinkMode;
+}
//*****************************************************************************************************************
// public method
@@ -536,6 +548,13 @@ SvtExtendedSecurityOptions::OpenHyperlinkMode SvtExtendedSecurityOptions::GetOpe
MutexGuard aGuard( GetInitMutex() );
return m_pDataContainer->GetOpenHyperlinkMode();
}
+/* -----------------09.07.2003 11:26-----------------
+
+ --------------------------------------------------*/
+sal_Bool SvtExtendedSecurityOptions::IsOpenHyperlinkModeReadOnly() const
+{
+ return m_pDataContainer->IsOpenHyperlinkModeReadOnly();
+}
//*****************************************************************************************************************
// public method