Kaydet (Commit) d2033373 authored tarafından Caolán McNamara's avatar Caolán McNamara

survive disable-database-connectivity + docs with embedded database settings

Change-Id: I70c205cbff48844b645ace48bd6e001222f7855e
üst e20fe337
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include <config_features.h>
#include <sal/config.h> #include <sal/config.h>
#include <utility> #include <utility>
...@@ -506,9 +508,11 @@ void SwXDocumentSettings::_setSingleValue( const comphelper::PropertyInfo & rInf ...@@ -506,9 +508,11 @@ void SwXDocumentSettings::_setSingleValue( const comphelper::PropertyInfo & rInf
break; break;
case HANDLE_EMBEDDED_DATABASE_NAME: case HANDLE_EMBEDDED_DATABASE_NAME:
{ {
#if HAVE_FEATURE_DBCONNECTIVITY
OUString sEmbeddedName; OUString sEmbeddedName;
if (rValue >>= sEmbeddedName) if (rValue >>= sEmbeddedName)
mpDoc->GetDBManager()->setEmbeddedName(sEmbeddedName, *mpDocSh); mpDoc->GetDBManager()->setEmbeddedName(sEmbeddedName, *mpDocSh);
#endif
} }
break; break;
case HANDLE_SAVE_VERSION_ON_CLOSE: case HANDLE_SAVE_VERSION_ON_CLOSE:
...@@ -998,7 +1002,11 @@ void SwXDocumentSettings::_getSingleValue( const comphelper::PropertyInfo & rInf ...@@ -998,7 +1002,11 @@ void SwXDocumentSettings::_getSingleValue( const comphelper::PropertyInfo & rInf
break; break;
case HANDLE_EMBEDDED_DATABASE_NAME: case HANDLE_EMBEDDED_DATABASE_NAME:
{ {
#if HAVE_FEATURE_DBCONNECTIVITY
rValue <<= mpDoc->GetDBManager()->getEmbeddedName(); rValue <<= mpDoc->GetDBManager()->getEmbeddedName();
#else
rValue = uno::Any();
#endif
} }
break; break;
case HANDLE_SAVE_VERSION_ON_CLOSE: case HANDLE_SAVE_VERSION_ON_CLOSE:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment