basic.txt (c966c276) basic.txt (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

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

96Dim oDoc As Object
97Dim FileProperties(0) As New com.sun.star.beans.PropertyValue
98oSM = CreateObject("com.sun.star.ServiceManager")
99oDesk = oSM.createInstance("com.sun.star.frame.Desktop")
100oDoc = oDesk.loadComponentFromURL( url, "_blank", 0, FileProperties() )
101
102Dim oInitialization( 0 ) as Object
103oInitialization(0) = oDoc.getCurrentController.getFrame
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

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

96Dim oDoc As Object
97Dim FileProperties(0) As New com.sun.star.beans.PropertyValue
98oSM = CreateObject("com.sun.star.ServiceManager")
99oDesk = oSM.createInstance("com.sun.star.frame.Desktop")
100oDoc = oDesk.loadComponentFromURL( url, "_blank", 0, FileProperties() )
101
102Dim oInitialization( 0 ) as Object
103oInitialization(0) = oDoc.getCurrentController.getFrame
104oPPPOptimizerDialog = createUNOservice("com.sun.star.comp.PPPOptimizerImp")
104oPPPOptimizerDialog = createUNOservice("com.sun.star.comp.presentation.PresentationOptimizer")
105oPPPOptimizerDialog.initialize( oInitialization )
106oPPPOptimizerDialog.dispatch(oURL, oArg)
107odoc.dispose
108End Sub
109
105oPPPOptimizerDialog.initialize( oInitialization )
106oPPPOptimizerDialog.dispatch(oURL, oArg)
107odoc.dispose
108End Sub
109