Resolves: rhbz#998046 store last size/position of the base windows

f41
Caolán McNamara 12 years ago
parent a44ff7060f
commit e6808e599a

@ -0,0 +1,51 @@
From c3164e42dcdf879ed53e235db13f498eb730bae9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
Date: Tue, 20 Aug 2013 20:08:47 +0100
Subject: [PATCH] Resolves: rhbz#998046 store last size/position of the
table/query/form
Change-Id: I3623d5e133b8d7b2e7920824b05c46ade7b10d7c
---
dbaccess/source/core/dataaccess/documentdefinition.cxx | 1 +
dbaccess/source/ui/misc/databaseobjectview.cxx | 6 +++++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/dbaccess/source/core/dataaccess/documentdefinition.cxx b/dbaccess/source/core/dataaccess/documentdefinition.cxx
index 1e9b62c..55b7c4e 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 7c90c33..d0ac14e 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.
--
1.8.3.1

@ -259,6 +259,7 @@ Patch18: 0001-Resolves-fdo-67743-user-autocorr-file-not-written.patch
Patch19: 0001-only-use-the-SSPI-support-with-internal-neon.patch Patch19: 0001-only-use-the-SSPI-support-with-internal-neon.patch
Patch20: 0001-Always-try-to-mount-in-gio-Content-getGFileInfo.patch Patch20: 0001-Always-try-to-mount-in-gio-Content-getGFileInfo.patch
Patch21: 0001-Resolves-rhbz-998136-different-index-to-gWidgetData-.patch Patch21: 0001-Resolves-rhbz-998136-different-index-to-gWidgetData-.patch
Patch22: 0001-Resolves-rhbz-998046-store-last-size-position-of-the.patch
%define instdir %{_libdir} %define instdir %{_libdir}
%define baseinstdir %{instdir}/libreoffice %define baseinstdir %{instdir}/libreoffice
@ -1012,6 +1013,7 @@ mv -f redhat.soc extras/source/palettes/standard.soc
%patch19 -p1 -b .only-use-the-SSPI-support-with-internal-neon.patch %patch19 -p1 -b .only-use-the-SSPI-support-with-internal-neon.patch
%patch20 -p1 -b .Always-try-to-mount-in-gio-Content-getGFileInfo.patch %patch20 -p1 -b .Always-try-to-mount-in-gio-Content-getGFileInfo.patch
%patch21 -p1 -b .rhbz-998136-different-index-to-gWidgetData-.patch %patch21 -p1 -b .rhbz-998136-different-index-to-gWidgetData-.patch
%patch22 -p1 -b .rhbz-998046-store-last-size-position-of-the.patch
# TODO: check this # TODO: check this
# these are horribly incomplete--empty translations and copied english # these are horribly incomplete--empty translations and copied english
@ -2106,6 +2108,7 @@ update-desktop-database %{_datadir}/applications &> /dev/null || :
* Tue Aug 20 2013 Stephan Bergmann <sbergman@redhat.com> - 1:4.1.1.1-3-UNBUILT * Tue Aug 20 2013 Stephan Bergmann <sbergman@redhat.com> - 1:4.1.1.1-3-UNBUILT
- Related: rhbz#895690 Always try to do a mount when opening a file via GIO - Related: rhbz#895690 Always try to do a mount when opening a file via GIO
- Resolves: rhbz#998136 wrong index to gWidgetData - Resolves: rhbz#998136 wrong index to gWidgetData
- Resolves: rhbz#998046 store last size/position of the base windows
* Mon Aug 19 2013 Marek Kasik <mkasik@redhat.com> - 1:4.1.1.1-2 * Mon Aug 19 2013 Marek Kasik <mkasik@redhat.com> - 1:4.1.1.1-2
- Rebuild (poppler-0.24.0) - Rebuild (poppler-0.24.0)

Loading…
Cancel
Save