optimizerdialog.cxx (597a4c59) optimizerdialog.cxx (8c5bb9c6)
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

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

627 *aIter = aNewSettings;
628 }
629 }
630 if ( bSuccessfullyExecuted )
631 {
632 Sequence< Any > aArgs( 1 );
633 aArgs[ 0 ] <<= mxFrame;
634
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

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

627 *aIter = aNewSettings;
628 }
629 }
630 if ( bSuccessfullyExecuted )
631 {
632 Sequence< Any > aArgs( 1 );
633 aArgs[ 0 ] <<= mxFrame;
634
635 Reference < XDispatch > xDispatch( mxContext->getServiceManager()->createInstanceWithArgumentsAndContext(
636 OUString::createFromAscii( "com.sun.star.comp.PPPOptimizer" ), aArgs, mxContext ), UNO_QUERY );
635 Reference < XDispatch > xDispatch(
636 mxContext->getServiceManager()->createInstanceWithArgumentsAndContext(
637 OUString( RTL_CONSTASCII_USTRINGPARAM(
638 "com.sun.star.presentation.PresentationOptimizer" ) ),
639 aArgs, mxContext ),
640 UNO_QUERY );
637
638 URL aURL;
641
642 URL aURL;
639 aURL.Protocol = OUString( RTL_CONSTASCII_USTRINGPARAM( "vnd.com.sun.star.comp.PPPOptimizer:" ) );
643 aURL.Protocol = OUString( RTL_CONSTASCII_USTRINGPARAM( "vnd.com.sun.star.presentation.PresentationOptimizer:" ) );
640 aURL.Path = OUString( RTL_CONSTASCII_USTRINGPARAM( "optimize" ) );
641
642 Sequence< PropertyValue > lArguments( 3 );
643 lArguments[ 0 ].Name = TKGet( TK_Settings );
644 lArguments[ 0 ].Value <<= GetConfigurationSequence();
645 lArguments[ 1 ].Name = TKGet( TK_StatusListener );
646 lArguments[ 1 ].Value <<= Reference< XStatusListener >( this );
647 lArguments[ 2 ].Name = TKGet( TK_ParentWindow );

--- 144 unchanged lines hidden ---
644 aURL.Path = OUString( RTL_CONSTASCII_USTRINGPARAM( "optimize" ) );
645
646 Sequence< PropertyValue > lArguments( 3 );
647 lArguments[ 0 ].Name = TKGet( TK_Settings );
648 lArguments[ 0 ].Value <<= GetConfigurationSequence();
649 lArguments[ 1 ].Name = TKGet( TK_StatusListener );
650 lArguments[ 1 ].Value <<= Reference< XStatusListener >( this );
651 lArguments[ 2 ].Name = TKGet( TK_ParentWindow );

--- 144 unchanged lines hidden ---