diff options
author | Thomas Lange <tl@openoffice.org> | 2001-06-18 10:28:27 +0000 |
---|---|---|
committer | Thomas Lange <tl@openoffice.org> | 2001-06-18 10:28:27 +0000 |
commit | d23703e04d7771e568a81013f9a14cbaa4e90d8b (patch) | |
tree | 8a419f50878e875876a27bc2b9924c386546f6a8 /linguistic | |
parent | 7e061a02f75ff6db90926017e3446f08da920715 (diff) |
#88366# dictionary constructor: isReadonly flagged determined after creation of dictionary
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/dicimp.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/linguistic/source/dicimp.cxx b/linguistic/source/dicimp.cxx index bd0ed42b0a28..d14e2d101740 100644 --- a/linguistic/source/dicimp.cxx +++ b/linguistic/source/dicimp.cxx @@ -2,9 +2,9 @@ * * $RCSfile: dicimp.cxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: jp $ $Date: 2001-04-05 17:28:36 $ + * last change: $Author: tl $ $Date: 2001-06-18 11:28:27 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -183,7 +183,7 @@ DictionaryNeo::DictionaryNeo(const OUString &rName, try { ::ucb::Content aContent( rMainURL , - Reference< ::com::sun::star::ucb::XCommandEnvironment >()); + Reference< ::com::sun::star::ucb::XCommandEnvironment >()); bExists = aContent.isDocument(); if( bExists ) { @@ -191,7 +191,7 @@ DictionaryNeo::DictionaryNeo(const OUString &rName, aAny >>= bIsReadonly; } } - catch( ::com::sun::star::uno::Exception ) + catch(Exception &) { } @@ -205,6 +205,7 @@ DictionaryNeo::DictionaryNeo(const OUString &rName, // (Note: empty dictionaries are not just empty files!) saveEntries( rMainURL ); bNeedEntries = FALSE; + bIsReadonly = isReadonly_Impl(); } } else @@ -991,12 +992,12 @@ BOOL DictionaryNeo::isReadonly_Impl() { try { - Reference< com::sun::star::ucb::XCommandEnvironment > xCmdEnv; + Reference< ::com::sun::star::ucb::XCommandEnvironment > xCmdEnv; ::ucb::Content aContent( getLocation(), xCmdEnv ); Any aAny( aContent.getPropertyValue( A2OU( "IsReadOnly" ) ) ); aAny >>= bRes; } - catch (::com::sun::star::ucb::ContentCreationException &) + catch (/*::com::sun::star::ucb::ContentCreation*/Exception &) { bRes = TRUE; } |