summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-08-20 20:08:47 +0100
committerThorsten Behrens <tbehrens@suse.com>2013-08-21 10:54:55 +0000
commit712dccbfd2c9b28e151b6c9c9d6f825a4bc27ac3 (patch)
tree93c580f76697450219e7d8de84d9310fdad325df
parente4daa688c6bfeb4e1a16ee3c4ec4af3f3393200b (diff)
Resolves: rhbz#998046 store last size/position of the table/query/form
Change-Id: I3623d5e133b8d7b2e7920824b05c46ade7b10d7c (cherry picked from commit c3164e42dcdf879ed53e235db13f498eb730bae9) Reviewed-on: https://gerrit.libreoffice.org/5551 Reviewed-by: Thorsten Behrens <tbehrens@suse.com> Tested-by: Thorsten Behrens <tbehrens@suse.com>
-rw-r--r--dbaccess/source/core/dataaccess/documentdefinition.cxx1
-rw-r--r--dbaccess/source/ui/misc/databaseobjectview.cxx6
2 files changed, 6 insertions, 1 deletions
diff --git a/dbaccess/source/core/dataaccess/documentdefinition.cxx b/dbaccess/source/core/dataaccess/documentdefinition.cxx
index 6ea9709132e2..ce4b96945d89 100644
--- a/dbaccess/source/core/dataaccess/documentdefinition.cxx
+++ b/dbaccess/source/core/dataaccess/documentdefinition.cxx
@@ -1551,6 +1551,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.