diff options
-rw-r--r-- | dbaccess/source/core/dataaccess/documentdefinition.cxx | 1 | ||||
-rw-r--r-- | dbaccess/source/ui/misc/databaseobjectview.cxx | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/dbaccess/source/core/dataaccess/documentdefinition.cxx b/dbaccess/source/core/dataaccess/documentdefinition.cxx index 1e9b62c87ef2..55b7c4ec5b10 100644 --- a/dbaccess/source/core/dataaccess/documentdefinition.cxx +++ b/dbaccess/source/core/dataaccess/documentdefinition.cxx @@ -1548,6 +1548,7 @@ Sequence< PropertyValue > ODocumentDefinition::fillLoadArgs( const Reference< XC // create the OutplaceFrameProperties, and put them into the descriptor of the embedded object ::comphelper::NamedValueCollection OutplaceFrameProperties; OutplaceFrameProperties.put( "TopWindow", (sal_Bool)sal_True ); + OutplaceFrameProperties.put( "SupportPersistentWindowState", (sal_Bool)sal_True ); Reference< XFrame > xParentFrame; if ( m_pImpl->m_pDataSource ) diff --git a/dbaccess/source/ui/misc/databaseobjectview.cxx b/dbaccess/source/ui/misc/databaseobjectview.cxx index 7c90c3332f10..d0ac14e38569 100644 --- a/dbaccess/source/ui/misc/databaseobjectview.cxx +++ b/dbaccess/source/ui/misc/databaseobjectview.cxx @@ -120,7 +120,7 @@ namespace dbaui if ( !m_xFrameLoader.is() ) { Reference< XSingleServiceFactory > xFact = TaskCreator::create(m_xORB); - Sequence< Any > lArgs(2); + Sequence< Any > lArgs(3); NamedValue aProp; sal_Int32 nArg = 0; @@ -132,6 +132,10 @@ namespace dbaui aProp.Value <<= sal_True; lArgs[nArg++] <<= aProp; + aProp.Name = OUString("SupportPersistentWindowState"); + aProp.Value <<= sal_True; + lArgs[nArg++] <<= aProp; + m_xFrameLoader.set(xFact->createInstanceWithArguments(lArgs), UNO_QUERY_THROW); // everything we load can be considered a "top level document", so set the respective bit at the window. |