1UNO(3)                User Contributed Perl Documentation               UNO(3)
2
3
4

NAME

6       OpenOffice::UNO - interface to OpenOffice's UNO runtime
7

SYNOPSIS

9         # Launch OpenOffice.org as a server
10         $ ooffice \
11             "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager"
12
13         use OpenOffice::UNO;
14
15         # connect to the OpenOffice.org server
16         $uno = OpenOffice::UNO->new;
17         $cxt = $uno->createInitialComponentContext;
18         $sm  = $cxt->getServiceManager;
19         $resolver = $sm->createInstanceWithContext
20                         ("com.sun.star.bridge.UnoUrlResolver", $cxt);
21         $rsm = $resolver->resolve
22             ("uno:socket,host=localhost,port=8100;urp;StarOffice.ServiceManager");
23
24         # get an instance of the Desktop service
25         $rc = $rsm->getPropertyValue("DefaultContext");
26         $desktop = $rsm->createInstanceWithContext("com.sun.star.frame.Desktop", $rc);
27
28         # create a name/value pair to be used in opening the document
29         $pv = $uno->createIdlStruct("com.sun.star.beans.PropertyValue");
30         $pv->Name("Hidden");
31         $pv->Value(OpenOffice::UNO::Boolean->new(0));
32
33         # open a document
34         $sdoc = $desktop->loadComponentFromURL("file:///home/jrandom/test1.sxw",
35                                                "_blank", 0, [$pv]);
36
37         # close the document
38         $sdoc->dispose();
39

DESCRIPTION

41       This is a straight bridge to the OpenOffice.org API, so the definitve
42       reference is in the OpenOffice.org SDK.
43
44       The homepage for OpenOffice::UNO is http://perluno.sourceforge.net/
45

AUTHOR

47       Author: Bustamam Harun <bustamam@gmail.com>.
48
49       Maintainer: Mattia Barbon <mbarbon@cpan.org>
50

LICENSE

52        *  The Contents of this file are made available subject to the terms of
53        *  either of the following licenses
54        *
55        *         - GNU Lesser General Public License Version 2.1
56        *         - Sun Industry Standards Source License Version 1.1
57        *
58        *  Sun Microsystems Inc., October, 2000
59        *
60        *  GNU Lesser General Public License Version 2.1
61        *  =============================================
62        *  Copyright 2000 by Sun Microsystems, Inc.
63        *  901 San Antonio Road, Palo Alto, CA 94303, USA
64        *
65        *  This library is free software; you can redistribute it and/or
66        *  modify it under the terms of the GNU Lesser General Public
67        *  License version 2.1, as published by the Free Software Foundation.
68        *
69        *  This library is distributed in the hope that it will be useful,
70        *  but WITHOUT ANY WARRANTY; without even the implied warranty of
71        *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
72        *  Lesser General Public License for more details.
73        *
74        *  You should have received a copy of the GNU Lesser General Public
75        *  License along with this library; if not, write to the Free Software
76        *  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
77        *  MA  02111-1307  USA
78        *
79        *
80        *  Sun Industry Standards Source License Version 1.1
81        *  =================================================
82        *  The contents of this file are subject to the Sun Industry Standards
83        *  Source License Version 1.1 (the "License"); You may not use this file
84        *  except in compliance with the License. You may obtain a copy of the
85        *  License at http://www.openoffice.org/license.html.
86        *
87        *  Software provided under this License is provided on an "AS IS" basis,
88        *  WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
89        *  WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
90        *  MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
91        *  See the License for the specific provisions governing your rights and
92        *  obligations concerning the Software.
93        *
94        *  The Initial Developer of the Original Code is: Ralph Thomas
95        *
96        *   Copyright: 2000 by Sun Microsystems, Inc.
97        *
98        *   All Rights Reserved.
99        *
100        *   Contributor(s): Bustamam Harun, Mattia Barbon
101
102
103
104perl v5.30.0                      2019-07-26                            UNO(3)
Impressum