AppDetailPageHelper.cxx (b63233d8) AppDetailPageHelper.cxx (4e7d57d8)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 1247 unchanged lines hidden (view full) ---

1256 {
1257 try
1258 {
1259 m_xFrame = Reference < XFrame > ( getBorderWin().getView()->getORB()->createInstance( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.frame.Frame")) ), UNO_QUERY );
1260 m_xFrame->initialize( m_xWindow );
1261
1262 // work-around for #150518#: no layout manager (and thus no toolbars) in the preview
1263 // Must be called after initialize ... but before any other call to this frame.
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 1247 unchanged lines hidden (view full) ---

1256 {
1257 try
1258 {
1259 m_xFrame = Reference < XFrame > ( getBorderWin().getView()->getORB()->createInstance( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.frame.Frame")) ), UNO_QUERY );
1260 m_xFrame->initialize( m_xWindow );
1261
1262 // work-around for #150518#: no layout manager (and thus no toolbars) in the preview
1263 // Must be called after initialize ... but before any other call to this frame.
1264 // Otherwhise frame throws "life time exceptions" as e.g. NON_INITIALIZED
1264 // Otherwise frame throws "life time exceptions" as e.g. NON_INITIALIZED
1265 Reference< XPropertySet > xFrameProps( m_xFrame, UNO_QUERY_THROW );
1266 xFrameProps->setPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "LayoutManager" ) ), makeAny(Reference< XLayoutManager >()) );
1267
1268 Reference<XFramesSupplier> xSup(getBorderWin().getView()->getAppController().getXController()->getFrame(),UNO_QUERY);
1269 if ( xSup.is() )
1270 {
1271 Reference<XFrames> xFrames = xSup->getFrames();
1272 xFrames->append(m_xFrame);

--- 248 unchanged lines hidden ---
1265 Reference< XPropertySet > xFrameProps( m_xFrame, UNO_QUERY_THROW );
1266 xFrameProps->setPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "LayoutManager" ) ), makeAny(Reference< XLayoutManager >()) );
1267
1268 Reference<XFramesSupplier> xSup(getBorderWin().getView()->getAppController().getXController()->getFrame(),UNO_QUERY);
1269 if ( xSup.is() )
1270 {
1271 Reference<XFrames> xFrames = xSup->getFrames();
1272 xFrames->append(m_xFrame);

--- 248 unchanged lines hidden ---