summaryrefslogtreecommitdiff
path: root/sw/source/ui/utlui/unotools.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2005-10-24 14:33:48 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2005-10-24 14:33:48 +0000
commit1cc15aae3d39a251ec44784103a9e8a698748e03 (patch)
tree3eb6915fb9e9b888c367a8e8073b8979097e9b4c /sw/source/ui/utlui/unotools.cxx
parentd39b4467c12ceddef6aca7db2a75e46d8cb071b2 (diff)
INTEGRATION: CWS os57 (1.19.350); FILE MERGED
2005/09/13 16:28:02 os 1.19.350.3: RESYNC: (1.20-1.21); FILE MERGED 2005/06/16 10:20:50 os 1.19.350.2: RESYNC: (1.19-1.20); FILE MERGED 2005/04/20 11:17:06 os 1.19.350.1: #i47813# setting the window size before loading the document prevents illegal preview size
Diffstat (limited to 'sw/source/ui/utlui/unotools.cxx')
-rw-r--r--sw/source/ui/utlui/unotools.cxx15
1 files changed, 8 insertions, 7 deletions
diff --git a/sw/source/ui/utlui/unotools.cxx b/sw/source/ui/utlui/unotools.cxx
index 6ec874314337..e62d2f81d3a8 100644
--- a/sw/source/ui/utlui/unotools.cxx
+++ b/sw/source/ui/utlui/unotools.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: unotools.cxx,v $
*
- * $Revision: 1.21 $
+ * $Revision: 1.22 $
*
- * last change: $Author: rt $ $Date: 2005-09-09 11:32:24 $
+ * last change: $Author: hr $ $Date: 2005-10-24 15:33:48 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -219,6 +219,12 @@ void SwOneExampleFrame::CreateControl()
if(xToolkit.is())
{
_xControl->createPeer( xToolkit, xParent );
+
+ uno::Reference< awt::XWindow > xWin( _xControl, uno::UNO_QUERY );
+ xWin->setVisible( sal_False );
+ Size aWinSize(rWindow.GetOutputSizePixel());
+ xWin->setPosSize( 0, 0, aWinSize.Width(), aWinSize.Height(), awt::PosSize::SIZE );
+
uno::Reference< beans::XPropertySet > xPrSet(xInst, uno::UNO_QUERY);
uno::Any aURL;
//
@@ -245,11 +251,6 @@ void SwOneExampleFrame::CreateControl()
xPrSet->setPropertyValue(C2U("ComponentURL"), aURL);
- uno::Reference< awt::XWindow > xWin( _xControl, uno::UNO_QUERY );
- xWin->setVisible( sal_False );
- Size aWinSize(rWindow.GetOutputSizePixel());
- xWin->setPosSize( 0, 0, aWinSize.Width(), aWinSize.Height(), awt::PosSize::SIZE );
-
aLoadedTimer.Start();
bServiceAvailable = sal_True;
}