re-base on ALv2 code. Includes:
Patches contributed by Pedro Giffuni: Avoid some uses of non portable #!/bin/bash in shell scripts. http://svn.apache.org/viewvc?view=revision&revision=1235297 Reduce the dependencies on non standard GNU copy. http://svn.apache.org/viewvc?view=revision&revision=1238684 Correct /usr/bin/env path. http://svn.apache.org/viewvc?view=revision&revision=1235619 Complex Toolbar Controls Extension from the SDK Patches contributed by Ariel Constenla-Haile http://svn.apache.org/viewvc?view=revision&revision=1190390 i118615 - make epm more verbose http://svn.apache.org/viewvc?view=revision&revision=1204288 Patches contributed by Mathias Bauer (and others) gnumake4 work variously http://svn.apache.org/viewvc?view=revision&revision=1394707 http://svn.apache.org/viewvc?view=revision&revision=1394326 Patches contributed by Juergen Schmidt: jsc341: i117327: take care if no dependency node in current description exists, create one http://svn.apache.org/viewvc?view=revision&revision=1172101 jsc341: i117327: add extra extension dependency check http://svn.apache.org/viewvc?view=revision&revision=1172098 make initial branding changes http://svn.apache.org/viewvc?view=revision&revision=1231878 Patches contributed by Ingo Schmidt native373: #i117733# no linux jre installation on 64 bit systems http://svn.apache.org/viewvc?view=revision&revision=1167536 native373: ##164464# improve debian support http://svn.apache.org/viewvc?view=revision&revision=1167537 Patch contribtued by Armin Le-Grand: Changed various aspects concerning usages of old vendor names http://svn.apache.org/viewvc?view=revision&revision=1293313 fix for neon webdav, remove coinmp bits, improve odk script, cleanup & remove OS/2 conditionals, system ucpp fixes, remove OS/2 conditionals, restore our license filenames.
This commit is contained in:
parent
08894f7c7d
commit
2b4fd2c89a
412 changed files with 7194 additions and 6635 deletions
|
@ -44,9 +44,6 @@
|
|||
#include <sfx2/app.hxx>
|
||||
#include <rtl/ustrbuf.hxx>
|
||||
#include <vcl/bitmap.hxx>
|
||||
#ifdef FIXME_REMOVE_WHEN_RE_BASE_COMPLETE
|
||||
# include <vcl/rendergraphicrasterizer.hxx>
|
||||
#endif
|
||||
#include <officecfg/Office/Common.hxx>
|
||||
|
||||
using namespace ::com::sun::star::uno;
|
||||
|
|
|
@ -1,30 +1,21 @@
|
|||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
/*************************************************************************
|
||||
/*
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* OpenOffice.org - a multi-platform office productivity suite
|
||||
*
|
||||
* This file is part of OpenOffice.org.
|
||||
*
|
||||
* OpenOffice.org is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License version 3
|
||||
* only, as published by the Free Software Foundation.
|
||||
*
|
||||
* OpenOffice.org is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License version 3 for more details
|
||||
* (a copy is included in the LICENSE file that accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* version 3 along with OpenOffice.org. If not, see
|
||||
* <http://www.openoffice.org/license.html>
|
||||
* for a copy of the LGPLv3 License.
|
||||
*
|
||||
************************************************************************/
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
#ifndef INCLUDED_DESKTOP_SOURCE_DEPLOYMENT_INC_DP_DESCRIPTIONINFOSET_HXX
|
||||
#define INCLUDED_DESKTOP_SOURCE_DEPLOYMENT_INC_DP_DESCRIPTIONINFOSET_HXX
|
||||
|
@ -277,6 +268,20 @@ private:
|
|||
SAL_DLLPRIVATE ::rtl::OUString
|
||||
getNodeValueFromExpression(::rtl::OUString const & expression) const;
|
||||
|
||||
/** Check the extensions blacklist if additional extension meta data (e.g. dependencies)
|
||||
are defined for this extension and have to be taken into account.
|
||||
*/
|
||||
SAL_DLLPRIVATE void
|
||||
checkBlacklist() const;
|
||||
|
||||
/** Helper method to compare the versions with the current version
|
||||
*/
|
||||
SAL_DLLPRIVATE bool
|
||||
checkBlacklistVersion(::rtl::OUString currentversion,
|
||||
::com::sun::star::uno::Sequence< ::rtl::OUString > const & versions) const;
|
||||
|
||||
::com::sun::star::uno::Reference<
|
||||
::com::sun::star::uno::XComponentContext > m_context;
|
||||
::com::sun::star::uno::Reference<
|
||||
::com::sun::star::xml::dom::XNode > m_element;
|
||||
::com::sun::star::uno::Reference<
|
||||
|
|
|
@ -1,31 +1,21 @@
|
|||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
/*************************************************************************
|
||||
/*
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* OpenOffice.org - a multi-platform office productivity suite
|
||||
*
|
||||
* This file is part of OpenOffice.org.
|
||||
*
|
||||
* OpenOffice.org is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License version 3
|
||||
* only, as published by the Free Software Foundation.
|
||||
*
|
||||
* OpenOffice.org is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License version 3 for more details
|
||||
* (a copy is included in the LICENSE file that accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* version 3 along with OpenOffice.org. If not, see
|
||||
* <http://www.openoffice.org/license.html>
|
||||
* for a copy of the LGPLv3 License.
|
||||
*
|
||||
************************************************************************/
|
||||
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
#include "dp_descriptioninfoset.hxx"
|
||||
|
||||
|
@ -33,10 +23,15 @@
|
|||
#include "sal/config.h"
|
||||
|
||||
#include "comphelper/sequence.hxx"
|
||||
#include "comphelper/seqstream.hxx"
|
||||
#include "comphelper/makesequence.hxx"
|
||||
#include "comphelper/processfactory.hxx"
|
||||
#include "boost/optional.hpp"
|
||||
#include "com/sun/star/container/XNameAccess.hpp"
|
||||
#include "com/sun/star/beans/Optional.hpp"
|
||||
#include "com/sun/star/beans/PropertyValue.hpp"
|
||||
#include "com/sun/star/beans/XPropertySet.hpp"
|
||||
#include "com/sun/star/io/SequenceInputStream.hpp"
|
||||
#include "com/sun/star/lang/XMultiComponentFactory.hpp"
|
||||
#include "com/sun/star/lang/Locale.hpp"
|
||||
#include "com/sun/star/uno/Reference.hxx"
|
||||
|
@ -361,6 +356,7 @@ DescriptionInfoset getDescriptionInfoset(OUString const & sExtensionFolderURL)
|
|||
DescriptionInfoset::DescriptionInfoset(
|
||||
css::uno::Reference< css::uno::XComponentContext > const & context,
|
||||
css::uno::Reference< css::xml::dom::XNode > const & element):
|
||||
m_context(context),
|
||||
m_element(element)
|
||||
{
|
||||
css::uno::Reference< css::lang::XMultiComponentFactory > manager(
|
||||
|
@ -403,6 +399,117 @@ DescriptionInfoset::~DescriptionInfoset() {}
|
|||
return n.is() ? getNodeValue(n) : ::rtl::OUString();
|
||||
}
|
||||
|
||||
void DescriptionInfoset::checkBlacklist() const
|
||||
{
|
||||
if (m_element.is()) {
|
||||
boost::optional< OUString > id(getIdentifier());
|
||||
if (!id)
|
||||
return; // nothing to check
|
||||
OUString currentversion(getVersion());
|
||||
if (currentversion.getLength() == 0)
|
||||
return; // nothing to check
|
||||
|
||||
css::uno::Reference< css::lang::XMultiComponentFactory > manager(
|
||||
m_context->getServiceManager(), css::uno::UNO_QUERY_THROW);
|
||||
css::uno::Reference< css::lang::XMultiServiceFactory> provider(
|
||||
manager->createInstanceWithContext(
|
||||
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.configuration.ConfigurationProvider")), m_context),
|
||||
css::uno::UNO_QUERY_THROW);
|
||||
|
||||
css::uno::Sequence< css::uno::Any > args = css::uno::Sequence< css::uno::Any >(1);
|
||||
css::beans::PropertyValue prop;
|
||||
prop.Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("nodepath"));
|
||||
prop.Value <<= ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/org.openoffice.Office.ExtensionDependencies/Extensions"));
|
||||
args[0] <<= prop;
|
||||
|
||||
css::uno::Reference< css::container::XNameAccess > blacklist(
|
||||
provider->createInstanceWithArguments(
|
||||
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.configuration.ConfigurationAccess")), args),
|
||||
css::uno::UNO_QUERY_THROW);
|
||||
|
||||
// check first if a blacklist entry is available
|
||||
if (blacklist.is() && blacklist->hasByName(*id)) {
|
||||
css::uno::Reference< css::beans::XPropertySet > extProps(
|
||||
blacklist->getByName(*id), css::uno::UNO_QUERY_THROW);
|
||||
|
||||
css::uno::Any anyValue = extProps->getPropertyValue(
|
||||
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Versions")));
|
||||
|
||||
css::uno::Sequence< ::rtl::OUString > blversions;
|
||||
anyValue >>= blversions;
|
||||
|
||||
// check if the current version requires further dependency checks from the blacklist
|
||||
if (checkBlacklistVersion(currentversion, blversions)) {
|
||||
anyValue = extProps->getPropertyValue(
|
||||
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Dependencies")));
|
||||
::rtl::OUString udeps;
|
||||
anyValue >>= udeps;
|
||||
|
||||
if (udeps.getLength() == 0)
|
||||
return; // nothing todo
|
||||
|
||||
::rtl::OString xmlDependencies = ::rtl::OUStringToOString(udeps, RTL_TEXTENCODING_UNICODE);
|
||||
|
||||
css::uno::Reference< css::xml::dom::XDocumentBuilder> docbuilder(
|
||||
manager->createInstanceWithContext(
|
||||
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.xml.dom.DocumentBuilder")), m_context),
|
||||
css::uno::UNO_QUERY_THROW);
|
||||
|
||||
css::uno::Sequence< sal_Int8 > byteSeq((const sal_Int8*)xmlDependencies.getStr(), xmlDependencies.getLength());
|
||||
|
||||
css::uno::Reference< css::io::XInputStream> inputstream( css::io::SequenceInputStream::createStreamFromSequence(m_context, byteSeq),
|
||||
css::uno::UNO_QUERY_THROW);
|
||||
|
||||
css::uno::Reference< css::xml::dom::XDocument > xDocument(docbuilder->parse(inputstream));
|
||||
css::uno::Reference< css::xml::dom::XElement > xElement(xDocument->getDocumentElement());
|
||||
css::uno::Reference< css::xml::dom::XNodeList > xDeps(xElement->getChildNodes());
|
||||
sal_Int32 nLen = xDeps->getLength();
|
||||
|
||||
// get the parent xml document of current description info for the import
|
||||
css::uno::Reference< css::xml::dom::XDocument > xCurrentDescInfo(m_element->getOwnerDocument());
|
||||
|
||||
// get dependency node of current description info to merge the new dependencies from the blacklist
|
||||
css::uno::Reference< css::xml::dom::XNode > xCurrentDeps(
|
||||
m_xpath->selectSingleNode(m_element, ::rtl::OUString(
|
||||
RTL_CONSTASCII_USTRINGPARAM("desc:dependencies"))));
|
||||
|
||||
// if no dependency node exists, create a new one in the current description info
|
||||
if (!xCurrentDeps.is()) {
|
||||
css::uno::Reference< css::xml::dom::XNode > xNewDepNode(
|
||||
xCurrentDescInfo->createElementNS(
|
||||
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("http://openoffice.org/extensions/description/2006")),
|
||||
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("dependencies"))), css::uno::UNO_QUERY_THROW);
|
||||
m_element->appendChild(xNewDepNode);
|
||||
xCurrentDeps = m_xpath->selectSingleNode(m_element, ::rtl::OUString(
|
||||
RTL_CONSTASCII_USTRINGPARAM("desc:dependencies")));
|
||||
}
|
||||
|
||||
for (sal_Int32 i=0; i<nLen; i++) {
|
||||
css::uno::Reference< css::xml::dom::XNode > xNode(xDeps->item(i));
|
||||
css::uno::Reference< css::xml::dom::XElement > xDep(xNode, css::uno::UNO_QUERY);
|
||||
if (xDep.is()) {
|
||||
// found valid blacklist dependency, import the node first and append it to the existing dependency node
|
||||
css::uno::Reference< css::xml::dom::XNode > importedNode = xCurrentDescInfo->importNode(xNode, true);
|
||||
xCurrentDeps->appendChild(importedNode);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool DescriptionInfoset::checkBlacklistVersion(
|
||||
::rtl::OUString currentversion,
|
||||
::com::sun::star::uno::Sequence< ::rtl::OUString > const & versions) const
|
||||
{
|
||||
sal_Int32 nLen = versions.getLength();
|
||||
for (sal_Int32 i=0; i<nLen; i++) {
|
||||
if (currentversion.equals(versions[i]))
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
::rtl::OUString DescriptionInfoset::getVersion() const
|
||||
{
|
||||
|
@ -452,6 +559,9 @@ css::uno::Reference< css::xml::dom::XNodeList >
|
|||
DescriptionInfoset::getDependencies() const {
|
||||
if (m_element.is()) {
|
||||
try {
|
||||
// check the extension blacklist first and expand the dependencies if applicable
|
||||
checkBlacklist();
|
||||
|
||||
return m_xpath->selectNodeList(m_element, ::rtl::OUString(
|
||||
RTL_CONSTASCII_USTRINGPARAM("desc:dependencies/*")));
|
||||
} catch (const css::xml::xpath::XPathException &) {
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
//
|
||||
// This file is part of the LibreOffice project.
|
||||
//
|
||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
//
|
||||
// This file incorporates work covered by the following license notice:
|
||||
//
|
||||
// Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
// contributor license agreements. See the NOTICE file distributed
|
||||
// with this work for additional information regarding copyright
|
||||
// ownership. The ASF licenses this file to you under the Apache
|
||||
// License, Version 2.0 (the "License"); you may not use this file
|
||||
// except in compliance with the License. You may obtain a copy of
|
||||
// the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
//
|
||||
// This script asks for variables, which are necessary for building the
|
||||
// examples of the Office Development Kit. The script duplicates the template
|
||||
// script and inserts the variables into the copied script.
|
||||
|
|
|
@ -743,12 +743,12 @@ sub testVersion
|
|||
|
||||
for ($i=0; $i <= $length; $i++ )
|
||||
{
|
||||
if ( @testVersion->[$i] > @mustBeVersion->[$i] )
|
||||
if ( $testVersion[$i] > $mustBeVersion[$i] )
|
||||
{
|
||||
return 1; # 1 indicates a correct version
|
||||
}
|
||||
|
||||
if ( @testVersion->[$i] < @mustBeVersion->[$i] )
|
||||
if ( $testVersion[$i] < $mustBeVersion[$i] )
|
||||
{
|
||||
if ( $#checkOnly == 1 ) {
|
||||
print " The command '$toolName' has the version $tmpTestVersion.\n";
|
||||
|
|
|
@ -1,5 +1,21 @@
|
|||
/* Autodoc css file for IDL documentation */
|
||||
|
||||
/*
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
/*See bottom of file for explanations.*/
|
||||
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 2.4 KiB |
|
@ -1,3 +1,21 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>LibreOffice %PRODUCT_RELEASE% SDK - Installation Guide</title>
|
||||
|
@ -12,64 +30,64 @@
|
|||
<div id="TopHeader">
|
||||
<a id="Logo" href="http://www.libreoffice.org/" title="Go to the Home of LibreOffice and the LibreOffice Community page"></a>
|
||||
<p id="HeaderTagLine">
|
||||
Software Development Kit %PRODUCT_RELEASE%
|
||||
Software Development Kit %PRODUCT_RELEASE%
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear">
|
||||
</div>
|
||||
</div>
|
||||
<div id="Layout">
|
||||
<div class="typography">
|
||||
<h1>
|
||||
Installation Guide
|
||||
</h1>
|
||||
<table class="table1" cellpadding=0>
|
||||
<tr>
|
||||
<tr>
|
||||
<td colspan="3"><img class="nothing10" src="images/nada.gif"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td class="content1"><img class="nothing8" src="images/nada.gif"></td>
|
||||
<td>
|
||||
<td>
|
||||
<table class="table2">
|
||||
<tr>
|
||||
<tr>
|
||||
<td colspan="3"><img class="nothing1" src="images/nada.gif"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<td>
|
||||
<table class="table3">
|
||||
<tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<p>The LibreOffice %PRODUCT_RELEASE% SDK comes with a set of development tools, base
|
||||
libraries, header files and helper class files that can be used to
|
||||
libraries, header files and helper class files that can be used to
|
||||
develop Java/C++ components, to embed the LibreOffice %PRODUCT_RELEASE% application in
|
||||
your own programs, or to use the API (scripting or remote control the
|
||||
office). For a complete working environment, we have some additional
|
||||
your own programs, or to use the API (scripting or remote control the
|
||||
office). For a complete working environment, we have some additional
|
||||
requirements:</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td><b>LibreOffice %PRODUCT_RELEASE% installation</td>
|
||||
<td class="content80">The SDK works on top of an existing office
|
||||
<td class="content80">The SDK works on top of an existing office
|
||||
installation and uses the same libraries as the office installation.</td>
|
||||
</tr>
|
||||
</tr>
|
||||
<tr valign="middle">
|
||||
</tr>
|
||||
<tr valign="middle">
|
||||
<td colspan="2"><img class="line" src="images/sdk_line-1.gif"></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<tr valign="top">
|
||||
<td><b>JDK (1.5 or higher)<b></td>
|
||||
<td class="content80">
|
||||
<p>A JDK is necessary for developing Java components or applications. An appropriate Java SDK can be found on <a target="_blank" href="http://java.sun.com/products" title="link to the Java SDK download page (online)">http://java.sun.com/products</a>.</p>
|
||||
<p>Recommendation is to use Java 6 excepting for Mac OS because initially Mac OS supported a 64bit version of Java 6 only.</p>
|
||||
<p><b>Note</b>: The Java compiler is <b><u>optional</u></b>!</p></td>
|
||||
</tr>
|
||||
<tr valign="middle">
|
||||
<tr valign="middle">
|
||||
<td colspan="2"><img class="line" src="images/sdk_line-1.gif"></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<tr valign="top">
|
||||
<td><b>C++ compiler<b></td>
|
||||
<td class="content80">A C++ compiler is necessary for developing C++
|
||||
components or applications. UNO depends on a compiler dependent language
|
||||
binding, so that we use the appropriate compiler where a language binding
|
||||
<td class="content80">A C++ compiler is necessary for developing C++
|
||||
components or applications. UNO depends on a compiler dependent language
|
||||
binding, so that we use the appropriate compiler where a language binding
|
||||
exists:
|
||||
<table class="table4">
|
||||
<tr>
|
||||
|
@ -87,65 +105,65 @@
|
|||
</table>
|
||||
<p><b>Note</b>: The C++ compiler is <b><u>optional</u></b>! If you use the Express edition you have to ensure that the <a href="http://www.microsoft.com/downloads/details.aspx?familyid=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&displaylang=en">Microsoft Visual Studio 2008 Redistributable Package</a> is also installed. You can download this package from Microsoft directly.</a></p></td>
|
||||
</tr>
|
||||
<tr valign="middle">
|
||||
<tr valign="middle">
|
||||
<td colspan="2"><img class="line" src="images/sdk_line-1.gif"></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<tr valign="top">
|
||||
<td><b>Microsoft .NET Framework SDK version 1.0 or higher<b></td>
|
||||
<td class="content80">The SDK is required for building CLI applications.
|
||||
<td class="content80">The SDK is required for building CLI applications.
|
||||
That is, programs written in languages, such as C# or VB.NET.<br>
|
||||
<p><b>Note</b>: The .NET Framework is <b><u>optional</u></b>!</p></td>
|
||||
</tr>
|
||||
<tr valign="middle">
|
||||
<tr valign="middle">
|
||||
<td colspan="2"><img class="line" src="images/sdk_line-1.gif"></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<tr valign="top">
|
||||
<td><b>GNU make (3.79.1 or higher)<b></td>
|
||||
<td class="content80">
|
||||
<p>GNU make is used to build the examples of the SDK. GNU make is available from <a target="_blank" href="http://www.gnu.org" title="link to www.gnu.org (online)">http://www.gnu.org</a>. It can be ftped via <a target="_blank" href="ftp://ftp.gnu.org/gnu/make" title="link to gnumake on www.gnu.org (online)">ftp://ftp.gnu.org/gnu/make</a></p>
|
||||
<p><b>Note</b>: Windows user can find an executable of gnu make under <a target="_blank" href="http://www.mingw.org/wiki/Getting_Started" title="link to the MinGW Getting Started wiki (online)">http://www.mingw.org/wiki/Getting_Started</a> (see the mingw32-make link under "Manual Installation"). Do not use the Cygwin make, because it does not
|
||||
work well. On Solaris gnu make can be found often under <b><i>/usr/sfw/bin/gmake</i></b>, but keep in mind that you have to use <b>'gmake'</b> then. Or you can find gnu make also under <a target="_blank" href="http://www.sunfreeware.com/" title="link to www.sunfreeware.com (online)">http://www.sunfreeware.com/</a>.</td>
|
||||
</tr>
|
||||
<tr valign="middle">
|
||||
<tr valign="middle">
|
||||
<td colspan="2"><img class="line" src="images/sdk_line-1.gif"></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<tr valign="top">
|
||||
<td><b>zip tool (2.3 or higher)<b></td>
|
||||
<td class="content80">The zip tool is used to create UNO packages. zip is
|
||||
<td class="content80">The zip tool is used to create UNO packages. zip is
|
||||
a new requirement to make the SDK independent of a Java SDK.<br>
|
||||
If you do not have these already, you can download them from <a target="_blank" href="http://www.info-zip.org" title="link to www.ubfi-zip.org (online)">http://www.info-zip.org</a>. Note: The cygwin zip.exe does not work for the build under
|
||||
If you do not have these already, you can download them from <a target="_blank" href="http://www.info-zip.org" title="link to www.ubfi-zip.org (online)">http://www.info-zip.org</a>. Note: The cygwin zip.exe does not work for the build under
|
||||
the 4NT shell. You have to use the native w32 version.</td>
|
||||
</tr>
|
||||
<tr valign="middle">
|
||||
<tr valign="middle">
|
||||
<td colspan="2"><img class="line" src="images/sdk_line-1.gif"></td>
|
||||
</tr>
|
||||
<tr valign="middle">
|
||||
<tr valign="middle">
|
||||
<td colspan="2">
|
||||
<p>The SDK provides an implicit configuration mechanism, which
|
||||
configures the SDK build environment to your personal needs the first
|
||||
time you use the SDK environment. This configuration step creates one or
|
||||
configures the SDK build environment to your personal needs the first
|
||||
time you use the SDK environment. This configuration step creates one or
|
||||
two new setsdkenv_XXX scripts in the user's home directory:</P>
|
||||
<ul>
|
||||
<li><b>$HOME/$OO_SDK_NAME/setsdkenv_unix.sh</b> and <b>$HOME/$OO_SDK_NAME/setsdkenv_unix.csh</b> -> for Unix
|
||||
<li><b>C:\Documents and Settings\<username>\Application Data\%OO_SDK_NAME%\setsdkenv_windows.bat</b></a> -> for Windows2000/XP or later
|
||||
</ul>
|
||||
<p>The automatically started configure script (Unix and Windows2000/XP)
|
||||
<p>The automatically started configure script (Unix and Windows2000/XP)
|
||||
requests relevant information and directories (SDK, LibreOffice, GNU make,
|
||||
Java, C++), in order to prepare a working SDK environment. After completing the
|
||||
configure script once, the newly created script is always used to set the
|
||||
necessary environment variables for using the SDK and the required
|
||||
Java, C++), in order to prepare a working SDK environment. After completing the
|
||||
configure script once, the newly created script is always used to set the
|
||||
necessary environment variables for using the SDK and the required
|
||||
tools.</P>
|
||||
<p>On UNIX operating systems, the configure script uses Perl. LINUX systems should have
|
||||
installed a working Perl version, and on Solaris you can find a working
|
||||
Perl version under <a target="_blank" href="http://www.sunfreeware.com/" title="link to www.sunfreeware.com (online)">http://www.sunfreeware.com/</a> if
|
||||
necessary. On Windows, the configure script uses Windows Script and
|
||||
a JScipt. If you have problems with Windows Script, you can download a
|
||||
<p>On UNIX operating systems, the configure script uses Perl. LINUX systems should have
|
||||
installed a working Perl version, and on Solaris you can find a working
|
||||
Perl version under <a target="_blank" href="http://www.sunfreeware.com/" title="link to www.sunfreeware.com (online)">http://www.sunfreeware.com/</a> if
|
||||
necessary. On Windows, the configure script uses Windows Script and
|
||||
a JScipt. If you have problems with Windows Script, you can download a
|
||||
newer version of <a href ="http://www.microsoft.com/downloads/details.aspx?FamilyId=C717D943-7E4B-4622-86EB-95A22B832CAA&displaylang=en" link"link to the download page for the Windows Script">Windows Script</a>.
|
||||
</p>
|
||||
<p>On other versions of Windows, use the batch
|
||||
file template <b><OO_SDK_HOME>\setsdkenv_windows.template</b>,
|
||||
<p>On other versions of Windows, use the batch
|
||||
file template <b><OO_SDK_HOME>\setsdkenv_windows.template</b>,
|
||||
rename it to *.bat, and adapt it to your local environment.</p>
|
||||
<p>If you use the template batch file, edit and set
|
||||
<p>If you use the template batch file, edit and set
|
||||
the following variables:</p>
|
||||
<table class="table4">
|
||||
<tr valign="top">
|
||||
|
@ -158,11 +176,11 @@
|
|||
</tr>
|
||||
<tr><a name="oosdkname"/>
|
||||
<td class="cell20"><b>OO_SDK_NAME</b></td>
|
||||
<td class="cell80">The configuration uses the
|
||||
directory name of the SDK, but you can use another name as well.
|
||||
It is important that the name does not contain spaces, because of a limitation
|
||||
of gnu make which cannot handle spaces correctly. This name is, for
|
||||
example, used to create an output directory in the users home directory
|
||||
<td class="cell80">The configuration uses the
|
||||
directory name of the SDK, but you can use another name as well.
|
||||
It is important that the name does not contain spaces, because of a limitation
|
||||
of gnu make which cannot handle spaces correctly. This name is, for
|
||||
example, used to create an output directory in the users home directory
|
||||
for any generated output when you use the SDK build environment.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -174,28 +192,28 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td class="cell20"><b>OO_SDK_HOME</b></td>
|
||||
<td class="cell80">Path to the SDK root directory, e.g.
|
||||
<td class="cell80">Path to the SDK root directory, e.g.
|
||||
"/opt/libreoffice/sdk"</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="cell20"><b>OO_SDK_JAVA_HOME</b></td>
|
||||
<td class="cell80">Path to a JDK root directory. The JDK is
|
||||
<b>optional</b> and only necessary if you like to run the Java examples
|
||||
or if you like to use the SDK environment to develop your own Java
|
||||
<td class="cell80">Path to a JDK root directory. The JDK is
|
||||
<b>optional</b> and only necessary if you like to run the Java examples
|
||||
or if you like to use the SDK environment to develop your own Java
|
||||
solution.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="cell20"><b>OO_SDK_CPP_HOME</b></td>
|
||||
<td class="cell80">Path to the C++ compiler (on Windows, the directory
|
||||
where the "<i>vcvar32.bat</i>" file can be found). The C++
|
||||
compiler is <b>optional</b> and only necessary for building the C++
|
||||
<td class="cell80">Path to the C++ compiler (on Windows, the directory
|
||||
where the "<i>vcvar32.bat</i>" file can be found). The C++
|
||||
compiler is <b>optional</b> and only necessary for building the C++
|
||||
examples.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="cell20"><b>OO_SDK_CLI_HOME</b></td>
|
||||
<td class="cell80">Path to the C# compiler and VB.NET compiler (on
|
||||
Windows, this directory can be found under the system directory (e.g.
|
||||
c:\WINXP\Microsoft.NET\Framework\v1.0.3705). The compilers are
|
||||
<td class="cell80">Path to the C# compiler and VB.NET compiler (on
|
||||
Windows, this directory can be found under the system directory (e.g.
|
||||
c:\WINXP\Microsoft.NET\Framework\v1.0.3705). The compilers are
|
||||
<b>optional</b> and only necessary for building the CLI examples.<br>
|
||||
<b>Note: Windows only!</b></td>
|
||||
</tr>
|
||||
|
@ -209,37 +227,37 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td class="cell20"><b>OO_SDK_OUTPUT_DIR</b></td>
|
||||
<td class="cell80">Path to an existing directory where the example output
|
||||
is generated. The output directory is <b>optional</b>, by default
|
||||
the output is generated in the SDK directory itself. If an output
|
||||
directory is specified, the output is generated in a SDK dependent
|
||||
<td class="cell80">Path to an existing directory where the example output
|
||||
is generated. The output directory is <b>optional</b>, by default
|
||||
the output is generated in the SDK directory itself. If an output
|
||||
directory is specified, the output is generated in a SDK dependent
|
||||
subdirectory in this directory (e.g. <OO_SDK_OUTPUT_DIR>
|
||||
/LibreOffice %PRODUCT_RELEASE%/LINUXExample.out)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="cell20"><b>SDK_AUTO_DEPLOYMENT</b></td>
|
||||
<td class="cell80">If this variable is set, the component examples are automatically deployed into the Office installation referenced by
|
||||
<td class="cell80">If this variable is set, the component examples are automatically deployed into the Office installation referenced by
|
||||
OFFICE_HOME. See also chapter <a href="http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/Extensions/unopkg" title="link to the "Extension Manager - unopkg" chapter in the Developer's Guide">"Extension Manager - unopkg"</a> from the Developer's Guide.
|
||||
This variable is only relevant when OFFICE_HOME is set.</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>You must run the <b>setsdkenv_XXX</b> script every time you want to
|
||||
<p>You must run the <b>setsdkenv_XXX</b> script every time you want to
|
||||
use the configured SDK environment. The settings are local for the current
|
||||
shell on Windows or the new started shell on UNIX. On UNIX you
|
||||
can now source one of the prepared environment
|
||||
script files ("setsdkenv_unix.sh" or
|
||||
"setsdkenv_unix.csh" dependending on the shell you use) to prepare
|
||||
shell on Windows or the new started shell on UNIX. On UNIX you
|
||||
can now source one of the prepared environment
|
||||
script files ("setsdkenv_unix.sh" or
|
||||
"setsdkenv_unix.csh" dependending on the shell you use) to prepare
|
||||
your current shell instead of starting a new shell.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="middle">
|
||||
<tr valign="middle">
|
||||
<td colspan="2"><img class="line" src="images/sdk_line-1.gif"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<p class="head2">Manual Setting</p>
|
||||
<p>If you do not want to use the script to set your working
|
||||
environment, you must set the appropriate environment variables
|
||||
<p>If you do not want to use the script to set your working
|
||||
environment, you must set the appropriate environment variables
|
||||
yourself. The script sets the following environment variables:</p>
|
||||
<p class="head3">Common Environment Variables</p>
|
||||
<table class="table4">
|
||||
|
@ -277,7 +295,7 @@
|
|||
$OO_SDK_URE_JAVA_DIR/unoloader.jar;
|
||||
[$OO_SDK_URE_JAVA_DIR/unoil.jar;]
|
||||
$CLASSPATH</i><br>
|
||||
<p>The classpath will be set or extended to the necessary jar files of
|
||||
<p>The classpath will be set or extended to the necessary jar files of
|
||||
the specified office installation. (<i>unoil.jar</i> is only included
|
||||
when OFFICE_HOME is set.)</p>
|
||||
</td>
|
||||
|
@ -285,7 +303,7 @@
|
|||
<tr valign="top">
|
||||
<td class="cell20">OFFICE_PROGRAM_PATH</td>
|
||||
<td class="cell80">=<i>$OFFICE_HOME/program</i><br>
|
||||
<p>This variable is used to find, for example, the office type library and
|
||||
<p>This variable is used to find, for example, the office type library and
|
||||
the UNO package deployment tool. This variable is only relevant when
|
||||
OFFICE_HOME is set.</p>
|
||||
</td>
|
||||
|
@ -293,8 +311,8 @@
|
|||
<tr valign="top">
|
||||
<td class="cell20">UNO_PATH</td>
|
||||
<td class="cell80">=<i>$OFFICE_PROGRAM_PATH</i><br>
|
||||
<p>This variable is used to ensure that the new C++ UNO bootstrap
|
||||
mechanism uses the configured office installation of the SDK. Normally
|
||||
<p>This variable is used to ensure that the new C++ UNO bootstrap
|
||||
mechanism uses the configured office installation of the SDK. Normally
|
||||
the bootstrap mechanism finds the default office installation for the
|
||||
user on the system. This variable is optional but is set from the scripts
|
||||
to ensure a homogeneous environment. Especially useful during development
|
||||
|
@ -310,7 +328,7 @@
|
|||
<td class="cell20">LD_LIBRARY_PATH</td>
|
||||
<td class="cell80">=<i>$OO_SDK_URE_LIB_DIR: $OO_SDK_HOME/(solsparc|solintel)/lib: $LD_LIBRARY_PATH</i><br>
|
||||
<p>The LD_LIBRARY_PATH will be set or will be extended by the office/URE
|
||||
library path, the platform dependent lib directory for several additional
|
||||
library path, the platform dependent lib directory for several additional
|
||||
libraries.</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -318,8 +336,8 @@
|
|||
<td class="cell20">PATH</td>
|
||||
<td class="cell80">=<i>$OO_SDK_HOME/(solsparc|solintel)/bin:$OO_SDK_MAKE_HOME: $OO_SDK_ZIP_HOME: [$OO_SDK_CPP_HOME:] [$OO_SDK_JAVA_HOME/bin:] $OO_SDK_URE_BIN_DIR: $PATH</i></b><br>
|
||||
<p>The PATH variable will be extended by the paths for the SDK development
|
||||
tools, the compiler, the JDK, GNU make, the zip tool and the
|
||||
OO_SDK_URE_BIN_DIR, where the compiler or the JDK are
|
||||
tools, the compiler, the JDK, GNU make, the zip tool and the
|
||||
OO_SDK_URE_BIN_DIR, where the compiler or the JDK are
|
||||
optional.</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -336,7 +354,7 @@
|
|||
<td class="cell20">LD_LIBRARY_PATH</td>
|
||||
<td class="cell80">=<i>$OO_SDK_URE_LIB_DIR: $SDK_HOME/linux/lib: $LD_LIBRARY_PATH</i><br>
|
||||
<p>The LD_LIBRARY_PATH will be set or will be extended by the office/URE
|
||||
library path, the platform dependent lib directory for some additional
|
||||
library path, the platform dependent lib directory for some additional
|
||||
libraries.</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -344,8 +362,8 @@
|
|||
<td class="cell20">PATH</td>
|
||||
<td class="cell80">=<i>$OO_SDK_HOME/linux/bin:$OO_SDK_MAKE_HOME: $OO_SDK_ZIP_HOME: [$OO_SDK_CPP_HOME:] [$OO_SDK_JAVA_HOME/bin:] $OO_SDK_URE_BIN_DIR: $PATH</i><br>
|
||||
<p>The PATH variable will be extended by the paths for the SDK development
|
||||
tools, the compiler, the JDK, GNU make, the zip tool and the
|
||||
OO_SDK_URE_BIN_DIR, where the compiler and the JDK are
|
||||
tools, the compiler, the JDK, GNU make, the zip tool and the
|
||||
OO_SDK_URE_BIN_DIR, where the compiler and the JDK are
|
||||
optional.</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -362,40 +380,42 @@
|
|||
<td class="cell20">PATH</td>
|
||||
<td class="cell80">=<i>%OO_SDK_HOME%\windows\bin; %OO_SDK_MAKE_HOME%; %OO_SDK_ZIP_HOME%; [%OO_SDK_CLI_HOME%;] [%OO_SDK_CPP_HOME%;] [%OO_SDK_JAVA_HOME%\bin;] %OO_SDK_URE_BIN_DIR%; %PATH%</i><br>
|
||||
<p>The PATH variable will be extended by the paths for the SDK development
|
||||
tools, the compiler, the JDK, GNU make, the zip tool and the
|
||||
tools, the compiler, the JDK, GNU make, the zip tool and the
|
||||
OO_SDK_URE_BIN_DIR.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td class="cell20">LIB</td>
|
||||
<td class="cell80">=<i>%OO_SDK_HOME%\windows\lib; %LIB%</i><br>
|
||||
<p>The LIB variable will be extended by the path to the import libraries
|
||||
<p>The LIB variable will be extended by the path to the import libraries
|
||||
that are necessary for Windows.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td colspan="2" class="cell80">In addition to setting these environment
|
||||
variables, the script calls the "<i>vcvar32.bat</i>" batch file
|
||||
which is provided by the Microsoft Developer Studio to set the necessary
|
||||
<td colspan="2" class="cell80">In addition to setting these environment
|
||||
variables, the script calls the "<i>vcvar32.bat</i>" batch file
|
||||
which is provided by the Microsoft Developer Studio to set the necessary
|
||||
environment variables for the compiler.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div id="Footer">
|
||||
<div id="FooterText">
|
||||
<p>
|
||||
Copyright © 2000, 2010 LibreOffice contributors and/or their affiliates. All rights reserved.
|
||||
<br>
|
||||
LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.
|
||||
LibreOffice was created by The Document Foundation,
|
||||
based on Apache OpenOffice, which is Copyright 2011
|
||||
The Apache Software Foundation.
|
||||
<br>
|
||||
The Document Foundation acknowledges all community members, please find more info <a href="http://www.libreoffice.org/about-us/credits/" target="_blank">at our website</a>.
|
||||
</p>
|
||||
|
@ -406,10 +426,10 @@
|
|||
<a href="http://www.documentfoundation.org/privacy" target="_blank">Privacy Policy</a> | <a href="http://www.documentfoundation.org/imprint" target="_blank">Impressum (Legal Info)</a>
|
||||
| Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (<a href="http://www.libreoffice.org/download/license/" target="_blank">LGPLv3</a>). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our <a href="http://wiki.documentfoundation.org/TradeMark_Policy" target="_blank">trademark policy</a>.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
|
@ -1,22 +1,40 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>LibreOffice 3.4 SDK - Not supported page</title>
|
||||
<title>LibreOffice 3.4 SDK - Not supported page</title>
|
||||
<link rel="stylesheet" type="text/css" href="sdk_styles.css">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<meta name="author" content="Jürgen Schmidt">
|
||||
<meta name="created" content="2004-12-14">
|
||||
</head>
|
||||
</head>
|
||||
<body>
|
||||
<div id="BgContainer">
|
||||
<div id="Container">
|
||||
<div id="TopHeader">
|
||||
<a id="Logo" href="http://www.libreoffice.org/" title="Go to the Home of LibreOffice and the LibreOffice Community page"></a>
|
||||
<p id="HeaderTagLine">
|
||||
Software Development Kit 3.4
|
||||
Software Development Kit 3.4
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear">
|
||||
</div>
|
||||
</div>
|
||||
<div id="Layout">
|
||||
<div class="typography">
|
||||
<h1>
|
||||
|
@ -31,36 +49,38 @@
|
|||
<p align="center">
|
||||
<a href="../index.html" title="link to the SDK start page"><img class="navigate" src="images/nav_home.png"></a>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<img class="nothing8" src="images/nada.gif">
|
||||
</td>
|
||||
</tr>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p class="note">
|
||||
This page is currently not supported!
|
||||
This page is currently not supported!
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<img class="nothing30" src="images/nada.gif">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div id="Footer">
|
||||
<div id="FooterText">
|
||||
<p>
|
||||
Copyright © 2000, 2010 LibreOffice contributors and/or their affiliates. All rights reserved.
|
||||
<br>
|
||||
LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.
|
||||
LibreOffice was created by The Document Foundation,
|
||||
based on Apache OpenOffice, which is Copyright 2011
|
||||
The Apache Software Foundation.
|
||||
<br>
|
||||
The Document Foundation acknowledges all community members, please find more info <a href="http://www.libreoffice.org/about-us/credits/" target="_blank">at our website</a>.
|
||||
</p>
|
||||
|
@ -71,10 +91,10 @@
|
|||
<a href="http://www.documentfoundation.org/privacy" target="_blank">Privacy Policy</a> | <a href="http://www.documentfoundation.org/imprint" target="_blank">Impressum (Legal Info)</a>
|
||||
| Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (<a href="http://www.libreoffice.org/download/license/" target="_blank">LGPLv3</a>). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our <a href="http://wiki.documentfoundation.org/TradeMark_Policy" target="_blank">trademark policy</a>.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
/* Core Styles */
|
||||
/*
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
|
@ -961,6 +978,5 @@ hr {
|
|||
.content87 { width: 87%; }
|
||||
|
||||
.centertext {align:center; text-align:center; font-size: 12;}
|
||||
.oraclelogo {vertical-align:middle;}
|
||||
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,3 +1,20 @@
|
|||
#
|
||||
# This file is part of the LibreOffice project.
|
||||
#
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
#
|
||||
# This file incorporates work covered by the following license notice:
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed
|
||||
# with this work for additional information regarding copyright
|
||||
# ownership. The ASF licenses this file to you under the Apache
|
||||
# License, Version 2.0 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
#
|
||||
# Builds the SpreadSheet examples of the Developers Guide.
|
||||
|
||||
# This Makefile is supposed to be run by a GNU Make built for native
|
||||
|
|
|
@ -1,34 +1,25 @@
|
|||
'*************************************************************************
|
||||
'
|
||||
' DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
'
|
||||
' Copyright 2000, 2010 Oracle and/or its affiliates.
|
||||
' This file is part of the LibreOffice project.
|
||||
'
|
||||
' OpenOffice.org - a multi-platform office productivity suite
|
||||
' This Source Code Form is subject to the terms of the Mozilla Public
|
||||
' License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
' file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
'
|
||||
' This file is part of OpenOffice.org.
|
||||
' This file incorporates work covered by the following license notice:
|
||||
'
|
||||
' OpenOffice.org is free software: you can redistribute it and/or modify
|
||||
' it under the terms of the GNU Lesser General Public License version 3
|
||||
' only, as published by the Free Software Foundation.
|
||||
' Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
' contributor license agreements. See the NOTICE file distributed
|
||||
' with this work for additional information regarding copyright
|
||||
' ownership. The ASF licenses this file to you under the Apache
|
||||
' License, Version 2.0 (the "License"); you may not use this file
|
||||
' except in compliance with the License. You may obtain a copy of
|
||||
' the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
'
|
||||
' OpenOffice.org is distributed in the hope that it will be useful,
|
||||
' but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
' GNU Lesser General Public License version 3 for more details
|
||||
' (a copy is included in the LICENSE file that accompanied this code).
|
||||
'
|
||||
' You should have received a copy of the GNU Lesser General Public License
|
||||
' version 3 along with OpenOffice.org. If not, see
|
||||
' <http://www.openoffice.org/license.html>
|
||||
' for a copy of the LGPLv3 License.
|
||||
'
|
||||
'*************************************************************************
|
||||
|
||||
Option Explicit On
|
||||
Option Strict On
|
||||
|
||||
imports System
|
||||
imports System
|
||||
imports System.Collections
|
||||
imports Microsoft.VisualBasic
|
||||
imports unoidl.com.sun.star.lang
|
||||
|
@ -42,8 +33,8 @@ Sub Main( ByVal args() As String)
|
|||
' If args.Length <> 2 Then
|
||||
' Console.WriteLine("WriterDemo takes two arguments. A file url to the office" & _
|
||||
' "program directory and a connection string.")
|
||||
' End If
|
||||
'Connect to a running office
|
||||
' End If
|
||||
'Connect to a running office
|
||||
'--------------------------------------------------
|
||||
|
||||
'Create a service manager of the remote office
|
||||
|
@ -52,20 +43,20 @@ Sub Main( ByVal args() As String)
|
|||
Dim xContext As XComponentContext
|
||||
'xLocalContext = Bootstrap.defaultBootstrap_InitialComponentContext( _
|
||||
' args(0) & "/uno.ini", ht.GetEnumerator())
|
||||
|
||||
|
||||
xContext = Bootstrap.bootstrap()
|
||||
|
||||
'Dim xURLResolver As XUnoUrlResolver
|
||||
'Dim xURLResolver As XUnoUrlResolver
|
||||
'xURLResolver = DirectCast(xLocalContext.getServiceManager(). _
|
||||
' createInstanceWithContext("com.sun.star.bridge.UnoUrlResolver", _
|
||||
' xLocalContext), XUnoUrlResolver)
|
||||
|
||||
'Dim xRemoteContext As XComponentContext
|
||||
|
||||
'Dim xRemoteContext As XComponentContext
|
||||
'xRemoteContext = DirectCast(xURLResolver.resolve( _
|
||||
' "uno:socket,host=localhost,port=8100;urp;StarOffice.ComponentContext"), _
|
||||
' XComponentContext)
|
||||
|
||||
Dim xFactory As XMultiServiceFactory
|
||||
Dim xFactory As XMultiServiceFactory
|
||||
xFactory = DirectCast(xContext.getServiceManager(), _
|
||||
XMultiServiceFactory)
|
||||
|
||||
|
@ -97,7 +88,7 @@ Dim xCursor As unoidl.com.sun.star.text.XTextCursor
|
|||
xCursor = xSimpleText.createTextCursor()
|
||||
|
||||
'Inserting some Text
|
||||
xText.insertString(xCursor, "The first line in the newly created text document." _
|
||||
xText.insertString(xCursor, "The first line in the newly created text document." _
|
||||
& vbLf, false)
|
||||
|
||||
'Create instance of a text table with 4 columns and 4 rows
|
||||
|
@ -138,12 +129,12 @@ xTextTable.getCellByName("A2").setValue(22.5)
|
|||
xTextTable.getCellByName("B2").setValue(5615.3)
|
||||
xTextTable.getCellByName("C2").setValue(-2315.7)
|
||||
xTextTable.getCellByName("D2").setFormula("sum <A2:C2>")
|
||||
|
||||
|
||||
xTextTable.getCellByName("A3").setValue(21.5)
|
||||
xTextTable.getCellByName("B3").setValue (615.3)
|
||||
xTextTable.getCellByName("C3").setValue( -315.7)
|
||||
xTextTable.getCellByName("D3").setFormula( "sum <A3:C3>")
|
||||
|
||||
|
||||
xTextTable.getCellByName("A4").setValue( 121.5)
|
||||
xTextTable.getCellByName("B4").setValue( -615.3)
|
||||
xTextTable.getCellByName("C4").setValue( 415.7)
|
||||
|
@ -176,14 +167,14 @@ Dim xTextFrame As unoidl.com.sun.star.text.XTextFrame = _
|
|||
DirectCast(objTextFrame, unoidl.com.sun.star.text.XTextFrame)
|
||||
|
||||
'Set the size of the frame
|
||||
Dim aSize As unoidl.com.sun.star.awt.Size = _
|
||||
Dim aSize As unoidl.com.sun.star.awt.Size = _
|
||||
New unoidl.com.sun.star.awt.Size(15000, 400)
|
||||
DirectCast(xTextFrame, unoidl.com.sun.star.drawing.XShape).setSize(aSize)
|
||||
|
||||
'Set anchortype
|
||||
Dim xPropertySetFrame As unoidl.com.sun.star.beans.XPropertySet
|
||||
xPropertySetFrame = DirectCast(xTextFrame, unoidl.com.sun.star.beans.XPropertySet)
|
||||
xPropertySetFrame.setPropertyValue("AnchorType", New uno.Any( _
|
||||
xPropertySetFrame.setPropertyValue("AnchorType", New uno.Any( _
|
||||
GetType(unoidl.com.sun.star.text.TextContentAnchorType), _
|
||||
unoidl.com.sun.star.text.TextContentAnchorType.AS_CHARACTER))
|
||||
|
||||
|
@ -223,7 +214,7 @@ End Sub
|
|||
|
||||
Sub insertIntoCell(sCellName As String,sText As String, _
|
||||
xTable As unoidl.com.sun.star.text.XTextTable)
|
||||
Dim xCell As unoidl.com.sun.star.table.XCell
|
||||
Dim xCell As unoidl.com.sun.star.table.XCell
|
||||
xCell = xTable.getCellByName(sCellName)
|
||||
|
||||
Dim xSimpleTextCell As unoidl.com.sun.star.text.XSimpleText
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
|
||||
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="FileDialog" script:language="StarBasic">REM ***** BASIC *****
|
||||
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
|
||||
<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="FileDialogDlg" dlg:title="File Dialog Demo" dlg:left="138" dlg:top="80" dlg:width="203" dlg:height="157">
|
||||
<dlg:bulletinboard>
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
|
||||
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="MultiPage" script:language="StarBasic">REM ***** BASIC *****
|
||||
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
|
||||
<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="MultiPageDlg" dlg:title="Multi Page Dialog Demo" dlg:left="138" dlg:top="80" dlg:width="203" dlg:height="157" dlg:page="1">
|
||||
<dlg:bulletinboard>
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
|
||||
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="ProgressBar" script:language="StarBasic">REM ***** BASIC *****
|
||||
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
|
||||
<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="ProgressBarDlg" dlg:title="Progress Bar Demo" dlg:left="138" dlg:top="80" dlg:width="203" dlg:height="157">
|
||||
<dlg:bulletinboard>
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
|
||||
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="ScrollBar" script:language="StarBasic">REM ***** BASIC *****
|
||||
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
|
||||
<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="ScrollBarDlg" dlg:title="Scroll Bar Demo" dlg:left="138" dlg:top="80" dlg:width="200" dlg:height="157">
|
||||
<dlg:styles>
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="Addons" oor:package="org.openoffice.Office">
|
||||
<node oor:name="AddonUI">
|
||||
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<oor:component-data oor:name="Jobs" oor:package="org.openoffice.Office" xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<node oor:name="Jobs">
|
||||
<node oor:name="AsyncJob" oor:op="replace">
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="Addons" oor:package="org.openoffice.Office">
|
||||
<node oor:name="AddonUI">
|
||||
<node oor:name="AddonMenu">
|
||||
|
|
|
@ -1,5 +1,21 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<oor:component-data oor:name="ProtocolHandler" oor:package="org.openoffice.Office" xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<node oor:name="HandlerSet">
|
||||
<node oor:name="org.openoffice.Office.addon.example" oor:op="replace">
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="Addons" oor:package="org.openoffice.Office">
|
||||
<node oor:name="AddonUI">
|
||||
<node oor:name="AddonMenu">
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<oor:component-data oor:name="ProtocolHandler" oor:package="org.openoffice.Office" xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<node oor:name="HandlerSet">
|
||||
<node oor:name="ProtocolHandlerAddon$ProtocolHandlerAddonImpl" oor:op="replace">
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<description xmlns="http://openoffice.org/extensions/description/2006"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
|
||||
|
|
|
@ -1,3 +1,21 @@
|
|||
#
|
||||
# This file is part of the LibreOffice project.
|
||||
#
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
#
|
||||
# This file incorporates work covered by the following license notice:
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed
|
||||
# with this work for additional information regarding copyright
|
||||
# ownership. The ASF licenses this file to you under the Apache
|
||||
# License, Version 2.0 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
#
|
||||
|
||||
OUT_COMP_CLASS = $(OUT_CLASS)/ComponentThumbsExample
|
||||
OUT_COMP_GEN = $(OUT_MISC)/ComponentThumbsExample
|
||||
|
||||
|
|
|
@ -1,10 +1,28 @@
|
|||
#
|
||||
# This file is part of the LibreOffice project.
|
||||
#
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
#
|
||||
# This file incorporates work covered by the following license notice:
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed
|
||||
# with this work for additional information regarding copyright
|
||||
# ownership. The ASF licenses this file to you under the Apache
|
||||
# License, Version 2.0 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
#
|
||||
|
||||
How to write my own sdbc driver
|
||||
|
||||
Pre implementation steps
|
||||
- search all occurrences of skeleton and replace them to a name which you prefer
|
||||
|
||||
1. Implement a class called driver or modify the existing skeleton -> have a look at SDriver.?xx
|
||||
2. Implement a class called connection -> have a look at SConnection.?xx
|
||||
1. Implement a class called driver or modify the existing skeleton -> have a look at SDriver.?xx
|
||||
2. Implement a class called connection -> have a look at SConnection.?xx
|
||||
3. Have a look at the DatabaseMetaData -> see SDatabaseMetaData.cxx
|
||||
The methods which should be implemented at least are
|
||||
- getTableTypes
|
||||
|
|
|
@ -1,5 +1,21 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="Addons" oor:package="org.openoffice.Office">
|
||||
<node oor:name="AddonUI">
|
||||
<node oor:name="OfficeMenuBar">
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
|
||||
<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="Dialog1" dlg:left="244" dlg:top="200" dlg:width="201" dlg:height="169" dlg:help-url="com.foocorp.foo-ext:FooDialog" dlg:closeable="true" dlg:moveable="true" dlg:title="Foo Dialog">
|
||||
<dlg:bulletinboard>
|
||||
|
@ -7,4 +24,4 @@
|
|||
</dlg:button>
|
||||
<dlg:button dlg:id="CommandButton2" dlg:tab-index="1" dlg:left="88" dlg:top="100" dlg:width="87" dlg:height="38" dlg:value="Dummy Button, no help"/>
|
||||
</dlg:bulletinboard>
|
||||
</dlg:window>
|
||||
</dlg:window>
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
|
||||
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Module1" script:language="StarBasic">REM ***** BASIC *****
|
||||
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<manifest:manifest xmlns:manifest="http://openoffice.org/2001/manifest">
|
||||
<manifest:file-entry manifest:full-path="DialogWithHelp/" manifest:media-type="application/vnd.sun.star.basic-library"/>
|
||||
<manifest:file-entry manifest:media-type="application/vnd.sun.star.help" manifest:full-path="help"/>
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<description xmlns="http://openoffice.org/extensions/description/2006" xmlns:d="http://openoffice.org/extensions/description/2006" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<version value="1.0" />
|
||||
<identifier value="com.foocorp.foo-ext"/>
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<helpdocument version="1.0">
|
||||
<meta>
|
||||
<topic id="comfoocorpfooextpage1" indexer="include" status="PUBLISH">
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<helpdocument version="1.0">
|
||||
<meta>
|
||||
<topic id="comfoocorpfooextpage2" indexer="include" status="PUBLISH">
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<helpdocument version="1.0">
|
||||
<meta>
|
||||
<topic id="comfoocorpfooextsubfolder/anotherpage" indexer="include" status="PUBLISH">
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<helpdocument version="1.0">
|
||||
<meta>
|
||||
<topic id="comfoocorpfooextpage1" indexer="include" status="PUBLISH">
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<helpdocument version="1.0">
|
||||
<meta>
|
||||
<topic id="comfoocorpfooextpage2" indexer="include" status="PUBLISH">
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<helpdocument version="1.0">
|
||||
<meta>
|
||||
<topic id="comfoocorpfooextsubfolder/anotherpage" indexer="include" status="PUBLISH">
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<project basedir="." default="all" name="FirstUnoContact">
|
||||
|
||||
<property environment="env"/>
|
||||
|
|
|
@ -1,28 +1,19 @@
|
|||
/*
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
||||
*
|
||||
* OpenOffice.org - a multi-platform office productivity suite
|
||||
*
|
||||
* This file is part of OpenOffice.org.
|
||||
*
|
||||
* OpenOffice.org is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License version 3
|
||||
* only, as published by the Free Software Foundation.
|
||||
*
|
||||
* OpenOffice.org is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License version 3 for more details
|
||||
* (a copy is included in the LICENSE file that accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* version 3 along with OpenOffice.org. If not, see
|
||||
* <http://www.openoffice.org/license.html>
|
||||
* for a copy of the LGPLv3 License.
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
import java.io.File;
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="TypeDetection" oor:package="org.openoffice.Office">
|
||||
<node oor:name="Types">
|
||||
<node oor:name="ascii" oor:op="replace">
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<!DOCTYPE oor:component-data SYSTEM "../../../../component-update.dtd">
|
||||
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:package="org.openoffice.TypeDetection" oor:name="Types">
|
||||
<node oor:name="Types">
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<!DOCTYPE module-description PUBLIC "-//StarOffice//DTD ComponentDescription 1.0//EN" "module-description.dtd">
|
||||
<module-description xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<module-name> FlatXml </module-name>
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<!DOCTYPE oor:component-data SYSTEM "../../../../component-update.dtd">
|
||||
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:package="org.openoffice.TypeDetection" oor:name="Filter">
|
||||
<node oor:name="Filters">
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<!DOCTYPE oor:component-data SYSTEM "../../../../component-update.dtd">
|
||||
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:package="org.openoffice.TypeDetection" oor:name="Filter">
|
||||
<node oor:name="Filters">
|
||||
|
|
|
@ -1,5 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<parcel language="Java" xmlns:parcel="scripting.dtd">
|
||||
<script language="Java">
|
||||
<locale lang="en">
|
||||
|
|
|
@ -1,3 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<project default="build">
|
||||
|
||||
<!-- =================== Global Properties ============================= -->
|
||||
|
|
|
@ -1,5 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<parcel language="Java" xmlns:parcel="scripting.dtd">
|
||||
<script language="Java">
|
||||
<locale lang="en">
|
||||
|
|
|
@ -1,3 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<project default="build">
|
||||
|
||||
<!-- =================== Global Properties ============================= -->
|
||||
|
|
|
@ -1,3 +1,21 @@
|
|||
#
|
||||
# This file is part of the LibreOffice project.
|
||||
#
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
#
|
||||
# This file incorporates work covered by the following license notice:
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed
|
||||
# with this work for additional information regarding copyright
|
||||
# ownership. The ASF licenses this file to you under the Apache
|
||||
# License, Version 2.0 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
#
|
||||
|
||||
ExampleDataPilotSource
|
||||
======================
|
||||
|
||||
|
@ -12,19 +30,19 @@ Simple usage scenario:
|
|||
4. start the DataPilot dialog
|
||||
Data->DataPilot->Start...
|
||||
5. select "External source/interface -> Ok
|
||||
6. select the example DataPilot
|
||||
6. select the example DataPilot
|
||||
Use the the drop down list and select the service
|
||||
"ExampleDataPilotSource" -> Ok
|
||||
7. Place some number fields in the field areas
|
||||
For example:
|
||||
For example:
|
||||
- select the "ones" field and drop it in the "Row Fields" area
|
||||
- repeat this step with the "tens" and "hundreds" field
|
||||
- select the "thousands" field and drop it in the "Column Fields"
|
||||
- select the "thousands" field and drop it in the "Column Fields"
|
||||
area.
|
||||
-> press Ok
|
||||
8. you see a matrix with rows and colums for the selected fields
|
||||
and a value area with a sum up of all fields valid for this
|
||||
and a value area with a sum up of all fields valid for this
|
||||
coordinate. For example cell F:21=1221 (ones=B:21=1, tens=c:21=2
|
||||
hundreds=D:21=2 and thousands=F:3=1)
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,3 +1,21 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>LibreOffice %PRODUCT_RELEASE% SDK - Developer's Guide Examples</title>
|
||||
|
@ -2999,7 +3017,9 @@ for the Office application.</td>
|
|||
<p>
|
||||
Copyright © 2000, 2010 LibreOffice contributors and/or their affiliates. All rights reserved.
|
||||
<br>
|
||||
LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.
|
||||
LibreOffice was created by The Document Foundation,
|
||||
based on Apache OpenOffice, which is Copyright 2011
|
||||
The Apache Software Foundation.
|
||||
<br>
|
||||
The Document Foundation acknowledges all community members, please find more info <a href="http://www.libreoffice.org/about-us/credits/" target="_blank">at our website</a>.
|
||||
</p>
|
||||
|
|
|
@ -1,3 +1,21 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>Document Title</TITLE>
|
||||
|
|
|
@ -1,11 +1,28 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="Addons" oor:package="org.openoffice.Office">
|
||||
<node oor:name="AddonUI">
|
||||
<node oor:name="OfficeToolBar">
|
||||
<node oor:name="com.sun.star.comp.framework.addon.complextoolbarcontrols" oor:op="replace">
|
||||
<node oor:name="m1" oor:op="replace">
|
||||
<prop oor:name="URL" oor:type="xs:string">
|
||||
<value>vnd.demo.complextoolbarcontrols.demoaddon:Command1</value>
|
||||
<value>vnd.demo.complextoolbarcontrols.demoaddon:ImageButtonCmd</value>
|
||||
</prop>
|
||||
<prop oor:name="Title" oor:type="xs:string">
|
||||
<value xml:lang="en-US">Image Button</value>
|
||||
|
@ -22,7 +39,7 @@
|
|||
</node>
|
||||
<node oor:name="m2" oor:op="replace">
|
||||
<prop oor:name="URL" oor:type="xs:string">
|
||||
<value>vnd.demo.complextoolbarcontrols.demoaddon:Command2</value>
|
||||
<value>vnd.demo.complextoolbarcontrols.demoaddon:ComboboxCmd</value>
|
||||
</prop>
|
||||
<prop oor:name="Title" oor:type="xs:string">
|
||||
<value xml:lang="en-US">ComboBox</value>
|
||||
|
@ -47,7 +64,7 @@
|
|||
</node>
|
||||
<node oor:name="m4" oor:op="replace">
|
||||
<prop oor:name="URL" oor:type="xs:string">
|
||||
<value>vnd.demo.complextoolbarcontrols.demoaddon:Command5</value>
|
||||
<value>vnd.demo.complextoolbarcontrols.demoaddon:SpinfieldCmd</value>
|
||||
</prop>
|
||||
<prop oor:name="Title" oor:type="xs:string">
|
||||
<value xml:lang="en-US">Spinfield</value>
|
||||
|
@ -72,7 +89,7 @@
|
|||
</node>
|
||||
<node oor:name="m6" oor:op="replace">
|
||||
<prop oor:name="URL" oor:type="xs:string">
|
||||
<value>vnd.demo.complextoolbarcontrols.demoaddon:Command6</value>
|
||||
<value>vnd.demo.complextoolbarcontrols.demoaddon:EditfieldCmd</value>
|
||||
</prop>
|
||||
<prop oor:name="Title" oor:type="xs:string">
|
||||
<value xml:lang="en-US">Editfield</value>
|
||||
|
@ -97,7 +114,7 @@
|
|||
</node>
|
||||
<node oor:name="m8" oor:op="replace">
|
||||
<prop oor:name="URL" oor:type="xs:string">
|
||||
<value>vnd.demo.complextoolbarcontrols.demoaddon:Command7</value>
|
||||
<value>vnd.demo.complextoolbarcontrols.demoaddon:DropdownboxCmd</value>
|
||||
</prop>
|
||||
<prop oor:name="Title" oor:type="xs:string">
|
||||
<value xml:lang="en-US">Dropdownbox</value>
|
||||
|
@ -117,7 +134,7 @@
|
|||
</node>
|
||||
<node oor:name="m9" oor:op="replace">
|
||||
<prop oor:name="URL" oor:type="xs:string">
|
||||
<value>vnd.demo.complextoolbarcontrols.demoaddon:Command3</value>
|
||||
<value>vnd.demo.complextoolbarcontrols.demoaddon:ToggleDropdownButtonCmd</value>
|
||||
</prop>
|
||||
<prop oor:name="Title" oor:type="xs:string">
|
||||
<value xml:lang="en-US">Toggle Dropdown Button</value>
|
||||
|
@ -134,7 +151,7 @@
|
|||
</node>
|
||||
<node oor:name="m10" oor:op="replace">
|
||||
<prop oor:name="URL" oor:type="xs:string">
|
||||
<value>vnd.demo.complextoolbarcontrols.demoaddon:Command4</value>
|
||||
<value>vnd.demo.complextoolbarcontrols.demoaddon:DropdownButtonCmd</value>
|
||||
</prop>
|
||||
<prop oor:name="Title" oor:type="xs:string">
|
||||
<value xml:lang="en-US">Dropdown Button</value>
|
||||
|
@ -154,7 +171,7 @@
|
|||
<node oor:name="Images">
|
||||
<node oor:name="vnd.demo.complextoolbarcontrols.image1" oor:op="replace">
|
||||
<prop oor:name="URL">
|
||||
<value>vnd.demo.complextoolbarcontrols.demoaddon:Command1</value>
|
||||
<value>vnd.demo.complextoolbarcontrols.demoaddon:ImageButtonCmd</value>
|
||||
</prop>
|
||||
<node oor:name="UserDefinedImages">
|
||||
<prop oor:name="ImageSmallURL" oor:type="xs:string">
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="CalcWindowState" oor:package="org.openoffice.Office.UI">
|
||||
<node oor:name="UIElements">
|
||||
<node oor:name="States">
|
||||
|
|
|
@ -1,5 +1,21 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<oor:component-data oor:name="Jobs" oor:package="org.openoffice.Office" xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<node oor:name="Jobs">
|
||||
<node oor:name="DemoAddOn" oor:op="replace">
|
||||
|
|
|
@ -1,30 +1,21 @@
|
|||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
/*************************************************************************
|
||||
/*
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* OpenOffice.org - a multi-platform office productivity suite
|
||||
*
|
||||
* This file is part of OpenOffice.org.
|
||||
*
|
||||
* OpenOffice.org is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License version 3
|
||||
* only, as published by the Free Software Foundation.
|
||||
*
|
||||
* OpenOffice.org is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License version 3 for more details
|
||||
* (a copy is included in the LICENSE file that accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* version 3 along with OpenOffice.org. If not, see
|
||||
* <http://www.openoffice.org/license.html>
|
||||
* for a copy of the LGPLv3 License.
|
||||
*
|
||||
************************************************************************/
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
|
||||
#include "ListenerHelper.h"
|
||||
|
|
|
@ -1,40 +1,38 @@
|
|||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
/*
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
#include <vector>
|
||||
#include <boost/unordered_map.hpp>
|
||||
|
||||
#include <com/sun/star/frame/XFrame.hpp>
|
||||
#include <com/sun/star/frame/XStatusListener.hpp>
|
||||
#include <com/sun/star/frame/FeatureStateEvent.hpp>
|
||||
#include <com/sun/star/frame/XDispatch.hpp>
|
||||
|
||||
#include <rtl/ustring.hxx>
|
||||
#include <cppuhelper/implbase1.hxx>
|
||||
|
||||
struct hashObjectName_Impl
|
||||
{
|
||||
size_t operator()(const ::rtl::OUString Str) const
|
||||
{
|
||||
return (size_t)Str.hashCode();
|
||||
}
|
||||
};
|
||||
|
||||
struct eqObjectName_Impl
|
||||
{
|
||||
sal_Bool operator()(const ::rtl::OUString Str1, const ::rtl::OUString Str2) const
|
||||
{
|
||||
return ( Str1 == Str2 );
|
||||
}
|
||||
};
|
||||
|
||||
typedef std::vector < com::sun::star::uno::Reference < com::sun::star::frame::XStatusListener > > StatusListeners;
|
||||
|
||||
typedef boost::unordered_map
|
||||
<
|
||||
::rtl::OUString,
|
||||
StatusListeners,
|
||||
hashObjectName_Impl,
|
||||
eqObjectName_Impl
|
||||
>
|
||||
ListenerMap;
|
||||
typedef boost::unordered_map < ::rtl::OUString,
|
||||
StatusListeners,
|
||||
rtl::OUStringHash,
|
||||
std::equal_to< rtl::OUString > > ListenerMap;
|
||||
|
||||
// For every frame there is *one* Dispatch object for all possible commands
|
||||
// this struct contains an array of listeners for every supported command
|
||||
|
|
|
@ -1,34 +1,25 @@
|
|||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
/*************************************************************************
|
||||
/*
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* OpenOffice.org - a multi-platform office productivity suite
|
||||
*
|
||||
* This file is part of OpenOffice.org.
|
||||
*
|
||||
* OpenOffice.org is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License version 3
|
||||
* only, as published by the Free Software Foundation.
|
||||
*
|
||||
* OpenOffice.org is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License version 3 for more details
|
||||
* (a copy is included in the LICENSE file that accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* version 3 along with OpenOffice.org. If not, see
|
||||
* <http://www.openoffice.org/license.html>
|
||||
* for a copy of the LGPLv3 License.
|
||||
*
|
||||
************************************************************************/
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
|
||||
#include "MyJob.h"
|
||||
#include <osl/diagnose.h>
|
||||
|
||||
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
|
||||
#include <com/sun/star/beans/NamedValue.hpp>
|
||||
#include <com/sun/star/document/XEventBroadcaster.hpp>
|
||||
|
@ -49,9 +40,10 @@ using com::sun::star::document::XEventBroadcaster;
|
|||
Any SAL_CALL MyJob::execute( const Sequence< NamedValue >& aArguments )
|
||||
throw ( IllegalArgumentException, Exception, RuntimeException )
|
||||
{
|
||||
Reference < XEventBroadcaster > xBrd( mxMSF->createInstance(::rtl::OUString("com.sun.star.frame.GlobalEventBroadcaster") ), UNO_QUERY );
|
||||
Reference < XEventBroadcaster > xBrd( mxMSF->createInstance(
|
||||
"com.sun.star.frame.GlobalEventBroadcaster" ), UNO_QUERY );
|
||||
Reference < com::sun::star::document::XEventListener > xLstner( mxMSF->createInstance(
|
||||
::rtl::OUString("com.sun.star.comp.Office.MyListener") ), UNO_QUERY );
|
||||
"com.sun.star.comp.Office.MyListener" ), UNO_QUERY );
|
||||
if ( xBrd.is() )
|
||||
xBrd->addEventListener( xLstner );
|
||||
return Any();
|
||||
|
@ -60,7 +52,7 @@ Any SAL_CALL MyJob::execute( const Sequence< NamedValue >& aArguments )
|
|||
OUString MyJob_getImplementationName ()
|
||||
throw (RuntimeException)
|
||||
{
|
||||
return OUString ( RTL_CONSTASCII_USTRINGPARAM ( "com.sun.star.comp.Office.MyJob" ) );
|
||||
return OUString( "com.sun.star.comp.Office.MyJob" );
|
||||
}
|
||||
|
||||
#define SERVICE_NAME "com.sun.star.task.Job"
|
||||
|
@ -76,7 +68,7 @@ Sequence< OUString > SAL_CALL MyJob_getSupportedServiceNames( )
|
|||
{
|
||||
Sequence < OUString > aRet(1);
|
||||
OUString* pArray = aRet.getArray();
|
||||
pArray[0] = OUString ( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME ) );
|
||||
pArray[0] = OUString( SERVICE_NAME );
|
||||
return aRet;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,152 +1,89 @@
|
|||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
#ifndef _MyJob_HXX
|
||||
/*
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
#ifndef _MyJob_HXX
|
||||
#define _MyJob_HXX
|
||||
|
||||
|
||||
|
||||
#ifndef _COM_SUN_STAR_TASK_XJOB_HPP_
|
||||
|
||||
#include <com/sun/star/task/XJob.hpp>
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef _COM_SUN_STAR_LANG_XSERVICEINFO_HPP_
|
||||
|
||||
#include <com/sun/star/lang/XServiceInfo.hpp>
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef _CPPUHELPER_IMPLBASE2_HXX_
|
||||
|
||||
#include <cppuhelper/implbase2.hxx>
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
namespace com
|
||||
|
||||
{
|
||||
|
||||
namespace sun
|
||||
|
||||
{
|
||||
|
||||
namespace star
|
||||
|
||||
{
|
||||
|
||||
namespace frame
|
||||
|
||||
{
|
||||
|
||||
class XModel;
|
||||
|
||||
class XFrame;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
namespace beans
|
||||
|
||||
{
|
||||
|
||||
struct NamedValue;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
class MyJob : public cppu::WeakImplHelper2
|
||||
|
||||
<
|
||||
|
||||
com::sun::star::task::XJob,
|
||||
|
||||
com::sun::star::lang::XServiceInfo
|
||||
|
||||
>
|
||||
|
||||
{
|
||||
|
||||
private:
|
||||
|
||||
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > mxMSF;
|
||||
|
||||
|
||||
|
||||
public:
|
||||
|
||||
MyJob( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > &rxMSF)
|
||||
|
||||
: mxMSF( rxMSF ) {}
|
||||
|
||||
virtual ~MyJob() {}
|
||||
|
||||
|
||||
|
||||
// XJob
|
||||
|
||||
virtual ::com::sun::star::uno::Any SAL_CALL execute(
|
||||
|
||||
const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& Arguments )
|
||||
|
||||
throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
|
||||
|
||||
|
||||
|
||||
// XServiceInfo
|
||||
|
||||
virtual ::rtl::OUString SAL_CALL getImplementationName( )
|
||||
|
||||
throw (::com::sun::star::uno::RuntimeException);
|
||||
|
||||
virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
|
||||
|
||||
throw (::com::sun::star::uno::RuntimeException);
|
||||
|
||||
virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( )
|
||||
|
||||
throw (::com::sun::star::uno::RuntimeException);
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
::rtl::OUString MyJob_getImplementationName()
|
||||
|
||||
throw ( ::com::sun::star::uno::RuntimeException );
|
||||
|
||||
|
||||
|
||||
sal_Bool SAL_CALL MyJob_supportsService( const ::rtl::OUString& ServiceName )
|
||||
|
||||
throw ( ::com::sun::star::uno::RuntimeException );
|
||||
|
||||
|
||||
|
||||
::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL MyJob_getSupportedServiceNames( )
|
||||
|
||||
throw ( ::com::sun::star::uno::RuntimeException );
|
||||
|
||||
|
||||
|
||||
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
|
||||
|
||||
SAL_CALL MyJob_createInstance( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & rSMgr)
|
||||
|
||||
throw ( ::com::sun::star::uno::Exception );
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
|
|
@ -1,30 +1,21 @@
|
|||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
/*************************************************************************
|
||||
/*
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* OpenOffice.org - a multi-platform office productivity suite
|
||||
*
|
||||
* This file is part of OpenOffice.org.
|
||||
*
|
||||
* OpenOffice.org is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License version 3
|
||||
* only, as published by the Free Software Foundation.
|
||||
*
|
||||
* OpenOffice.org is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License version 3 for more details
|
||||
* (a copy is included in the LICENSE file that accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* version 3 along with OpenOffice.org. If not, see
|
||||
* <http://www.openoffice.org/license.html>
|
||||
* for a copy of the LGPLv3 License.
|
||||
*
|
||||
************************************************************************/
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
|
||||
#include "MyListener.h"
|
||||
|
@ -52,8 +43,8 @@ css::uno::Any SAL_CALL MyListener::execute(const css::uno::Sequence< css::beans:
|
|||
{
|
||||
css::uno::Sequence< css::beans::NamedValue > lEnv;
|
||||
|
||||
sal_Int32 i = 0;
|
||||
sal_Int32 c = lArguments.getLength();
|
||||
sal_Int32 i = 0;
|
||||
sal_Int32 c = lArguments.getLength();
|
||||
const css::beans::NamedValue* p = lArguments.getConstArray();
|
||||
for (i=0; i<c; ++i)
|
||||
{
|
||||
|
@ -92,12 +83,10 @@ css::uno::Any SAL_CALL MyListener::execute(const css::uno::Sequence< css::beans:
|
|||
return css::uno::Any();
|
||||
|
||||
css::uno::Reference< css::lang::XServiceInfo > xInfo(xModel, css::uno::UNO_QUERY);
|
||||
sal_Bool bCalc = xInfo->supportsService(::rtl::OUString("com.sun.star.sheet.SpreadsheetDocument"));
|
||||
sal_Bool bWriter = (
|
||||
xInfo->supportsService(::rtl::OUString("com.sun.star.text.TextDocument")) &&
|
||||
!xInfo->supportsService(::rtl::OUString("com.sun.star.text.WebDocument")) &&
|
||||
!xInfo->supportsService(::rtl::OUString("com.sun.star.text.GlobalDocument"))
|
||||
);
|
||||
sal_Bool bCalc = xInfo->supportsService("com.sun.star.sheet.SpreadsheetDocument");
|
||||
sal_Bool bWriter = ( xInfo->supportsService("com.sun.star.text.TextDocument") &&
|
||||
!xInfo->supportsService("com.sun.star.text.WebDocument") &&
|
||||
!xInfo->supportsService("com.sun.star.text.GlobalDocument") );
|
||||
|
||||
// We are interested only in Writer and Calc. However, here we are
|
||||
// notified of all newly opened Documents...
|
||||
|
@ -123,7 +112,7 @@ css::uno::Any SAL_CALL MyListener::execute(const css::uno::Sequence< css::beans:
|
|||
::rtl::OUString SAL_CALL MyListener::getImplementationName()
|
||||
throw (css::uno::RuntimeException)
|
||||
{
|
||||
return ::rtl::OUString(MYLISTENER_IMPLEMENTATIONNAME);
|
||||
return ::rtl::OUString( MYLISTENER_IMPLEMENTATIONNAME );
|
||||
}
|
||||
|
||||
|
||||
|
@ -131,7 +120,7 @@ css::uno::Sequence< ::rtl::OUString > SAL_CALL MyListener::getSupportedServiceNa
|
|||
throw (css::uno::RuntimeException)
|
||||
{
|
||||
css::uno::Sequence< ::rtl::OUString > lNames(1);
|
||||
lNames[0] = ::rtl::OUString(MYLISTENER_SERVICENAME);
|
||||
lNames[0] = ::rtl::OUString( MYLISTENER_SERVICENAME );
|
||||
return lNames;
|
||||
}
|
||||
|
||||
|
@ -139,10 +128,8 @@ css::uno::Sequence< ::rtl::OUString > SAL_CALL MyListener::getSupportedServiceNa
|
|||
sal_Bool SAL_CALL MyListener::supportsService(const ::rtl::OUString& sServiceName)
|
||||
throw (css::uno::RuntimeException)
|
||||
{
|
||||
return (
|
||||
sServiceName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(MYLISTENER_SERVICENAME)) ||
|
||||
sServiceName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("com.sun.star.task.Job"))
|
||||
);
|
||||
return sServiceName== MYLISTENER_SERVICENAME ||
|
||||
sServiceName == "com.sun.star.task.Job";
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,8 +1,25 @@
|
|||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
/*
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
#ifndef _MyListener_HXX
|
||||
#define _MyListener_HXX
|
||||
|
||||
#include <com/sun/star/uno/Reference.h>
|
||||
#include <com/sun/star/lang/XServiceInfo.hpp>
|
||||
#include <com/sun/star/task/XJob.hpp>
|
||||
#include <com/sun/star/document/XEventListener.hpp>
|
||||
|
@ -25,11 +42,10 @@ namespace css = ::com::sun::star;
|
|||
* @see WriterListener
|
||||
*/
|
||||
class MyListener : public cppu::WeakImplHelper2< css::task::XJob ,
|
||||
css::lang::XServiceInfo >
|
||||
css::lang::XServiceInfo >
|
||||
{
|
||||
private:
|
||||
css::uno::Reference< css::lang::XMultiServiceFactory > m_xSMGR;
|
||||
|
||||
public:
|
||||
MyListener(const css::uno::Reference< css::lang::XMultiServiceFactory >& xSMGR);
|
||||
virtual ~MyListener();
|
||||
|
|
|
@ -1,78 +1,47 @@
|
|||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
/*************************************************************************
|
||||
/*
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* OpenOffice.org - a multi-platform office productivity suite
|
||||
*
|
||||
* This file is part of OpenOffice.org.
|
||||
*
|
||||
* OpenOffice.org is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License version 3
|
||||
* only, as published by the Free Software Foundation.
|
||||
*
|
||||
* OpenOffice.org is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License version 3 for more details
|
||||
* (a copy is included in the LICENSE file that accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* version 3 along with OpenOffice.org. If not, see
|
||||
* <http://www.openoffice.org/license.html>
|
||||
* for a copy of the LGPLv3 License.
|
||||
*
|
||||
************************************************************************/
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
|
||||
#include "ListenerHelper.h"
|
||||
#include "MyProtocolHandler.h"
|
||||
#include <com/sun/star/beans/PropertyValue.hpp>
|
||||
#include <com/sun/star/frame/XFrame.hpp>
|
||||
#include <com/sun/star/frame/XController.hpp>
|
||||
#include <com/sun/star/frame/DispatchDescriptor.hpp>
|
||||
#include <com/sun/star/text/XTextViewCursorSupplier.hpp>
|
||||
#include <com/sun/star/text/XTextViewCursor.hpp>
|
||||
#include <com/sun/star/text/XTextCursor.hpp>
|
||||
#include <com/sun/star/text/XTextDocument.hpp>
|
||||
#include <com/sun/star/sheet/XSpreadsheetView.hpp>
|
||||
|
||||
#include <com/sun/star/awt/MessageBoxButtons.hpp>
|
||||
#include <com/sun/star/awt/XMessageBoxFactory.hpp>
|
||||
#include <com/sun/star/frame/ControlCommand.hpp>
|
||||
#include <com/sun/star/frame/ControlEvent.hpp>
|
||||
#include <com/sun/star/frame/XModel.hpp>
|
||||
#include <com/sun/star/frame/XControlNotificationListener.hpp>
|
||||
#include <com/sun/star/beans/PropertyValue.hpp>
|
||||
#include <com/sun/star/awt/Toolkitr.hpp>
|
||||
#include <com/sun/star/awt/XWindowPeer.hpp>
|
||||
#include <com/sun/star/awt/WindowAttribute.hpp>
|
||||
#include <com/sun/star/awt/XMessageBox.hpp>
|
||||
#include <com/sun/star/frame/XComponentLoader.hpp>
|
||||
#include <com/sun/star/view/XSelectionSupplier.hpp>
|
||||
#include <com/sun/star/system/XSystemShellExecute.hpp>
|
||||
#include <com/sun/star/text/XTextViewCursorSupplier.hpp>
|
||||
#include <com/sun/star/sheet/XSpreadsheetView.hpp>
|
||||
#include <com/sun/star/system/SystemShellExecuteFlags.hpp>
|
||||
#include <com/sun/star/frame/XStorable.hpp>
|
||||
#include <com/sun/star/container/XContainerQuery.hpp>
|
||||
#include <com/sun/star/system/XSystemShellExecute.hpp>
|
||||
|
||||
#include <compphelper/componentcontext.hxx>
|
||||
#include <osl/file.hxx>
|
||||
|
||||
using namespace com::sun::star::uno;
|
||||
using namespace com::sun::star::frame;
|
||||
using com::sun::star::lang::XMultiServiceFactory;
|
||||
using com::sun::star::beans::PropertyValue;
|
||||
using com::sun::star::util::URL;
|
||||
using com::sun::star::text::XTextViewCursorSupplier;
|
||||
using com::sun::star::text::XTextViewCursor;
|
||||
using com::sun::star::text::XTextCursor;
|
||||
using com::sun::star::sheet::XSpreadsheetView;
|
||||
using com::sun::star::frame::XModel;
|
||||
using com::sun::star::text::XTextRange;
|
||||
using com::sun::star::text::XTextDocument;
|
||||
using com::sun::star::beans::NamedValue;
|
||||
using namespace com::sun::star::awt;
|
||||
using com::sun::star::view::XSelectionSupplier;
|
||||
using namespace com::sun::star::frame;
|
||||
using namespace com::sun::star::system;
|
||||
using namespace com::sun::star::uno;
|
||||
|
||||
using com::sun::star::beans::NamedValue;
|
||||
using com::sun::star::beans::PropertyValue;
|
||||
using com::sun::star::lang::XMultiServiceFactory;
|
||||
using com::sun::star::sheet::XSpreadsheetView;
|
||||
using com::sun::star::text::XTextViewCursorSupplier;
|
||||
using com::sun::star::util::URL;
|
||||
|
||||
ListenerHelper aListenerHelper;
|
||||
|
||||
|
@ -80,28 +49,19 @@ void BaseDispatch::ShowMessageBox( const Reference< XFrame >& rFrame, const ::rt
|
|||
{
|
||||
if ( !mxToolkit.is() )
|
||||
mxToolkit = Reference< XToolkit > ( Toolkit::create(comphelper::getComponentContext(mxMSF)), UNO_QUERY_THROW );
|
||||
if ( rFrame.is() )
|
||||
Reference< XMessageBoxFactory > xMsgBoxFactory( mxToolkit, UNO_QUERY );
|
||||
if ( rFrame.is() && xMsgBoxFactory.is() )
|
||||
{
|
||||
// describe window properties.
|
||||
WindowDescriptor aDescriptor;
|
||||
aDescriptor.Type = WindowClass_MODALTOP;
|
||||
aDescriptor.WindowServiceName = ::rtl::OUString( "infobox" );
|
||||
aDescriptor.ParentIndex = -1;
|
||||
aDescriptor.Parent = Reference< XWindowPeer >( rFrame->getContainerWindow(), UNO_QUERY );
|
||||
aDescriptor.Bounds = Rectangle(0,0,300,200);
|
||||
aDescriptor.WindowAttributes = WindowAttribute::BORDER | WindowAttribute::MOVEABLE | WindowAttribute::CLOSEABLE;
|
||||
Reference< XMessageBox > xMsgBox = xMsgBoxFactory->createMessageBox(
|
||||
Reference< XWindowPeer >( rFrame->getContainerWindow(), UNO_QUERY ),
|
||||
Rectangle(0,0,300,200),
|
||||
rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "infobox" ) ),
|
||||
MessageBoxButtons::BUTTONS_OK,
|
||||
aTitle,
|
||||
aMsgText );
|
||||
|
||||
Reference< XWindowPeer > xPeer = mxToolkit->createWindow( aDescriptor );
|
||||
if ( xPeer.is() )
|
||||
{
|
||||
Reference< XMessageBox > xMsgBox( xPeer, UNO_QUERY );
|
||||
if ( xMsgBox.is() )
|
||||
{
|
||||
xMsgBox->setCaptionText( aTitle );
|
||||
xMsgBox->setMessageText( aMsgText );
|
||||
xMsgBox->execute();
|
||||
}
|
||||
}
|
||||
if ( xMsgBox.is() )
|
||||
xMsgBox->execute();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -162,7 +122,7 @@ Reference< XDispatch > SAL_CALL MyProtocolHandler::queryDispatch( const URL& a
|
|||
return 0;
|
||||
|
||||
Reference < XController > xCtrl = mxFrame->getController();
|
||||
if ( xCtrl.is() && !aURL.Protocol.compareToAscii("vnd.demo.complextoolbarcontrols.demoaddon:") )
|
||||
if ( xCtrl.is() && aURL.Protocol == "vnd.demo.complextoolbarcontrols.demoaddon:" )
|
||||
{
|
||||
Reference < XTextViewCursorSupplier > xCursor( xCtrl, UNO_QUERY );
|
||||
Reference < XSpreadsheetView > xView( xCtrl, UNO_QUERY );
|
||||
|
@ -170,8 +130,13 @@ Reference< XDispatch > SAL_CALL MyProtocolHandler::queryDispatch( const URL& a
|
|||
// without an appropriate corresponding document the handler doesn't function
|
||||
return xRet;
|
||||
|
||||
if ( aURL.Path == "Command1" || aURL.Path == "Command2" || aURL.Path == "Command3" || aURL.Path == "Command4" || aURL.Path == "Command5"
|
||||
|| aURL.Path == "Command6" || aURL.Path == "Command7" )
|
||||
if ( aURL.Path == "ImageButtonCmd" ||
|
||||
aURL.Path == "ComboboxCmd" ||
|
||||
aURL.Path == "ToggleDropdownButtonCmd" ||
|
||||
aURL.Path == "DropdownButtonCmd" ||
|
||||
aURL.Path == "SpinfieldCmd" ||
|
||||
aURL.Path == "EditfieldCmd" ||
|
||||
aURL.Path == "DropdownboxCmd" )
|
||||
{
|
||||
xRet = aListenerHelper.GetDispatch( mxFrame, aURL.Path );
|
||||
if ( !xRet.is() )
|
||||
|
@ -201,20 +166,21 @@ Sequence < Reference< XDispatch > > SAL_CALL MyProtocolHandler::queryDispatches(
|
|||
::rtl::OUString MyProtocolHandler_getImplementationName ()
|
||||
throw (RuntimeException)
|
||||
{
|
||||
return ::rtl::OUString(MYPROTOCOLHANDLER_IMPLEMENTATIONNAME);
|
||||
return ::rtl::OUString( MYPROTOCOLHANDLER_IMPLEMENTATIONNAME );
|
||||
}
|
||||
|
||||
sal_Bool SAL_CALL MyProtocolHandler_supportsService( const ::rtl::OUString& ServiceName )
|
||||
throw (RuntimeException)
|
||||
{
|
||||
return ( ServiceName.equalsAscii(MYPROTOCOLHANDLER_SERVICENAME) || ServiceName == "com.sun.star.frame.ProtocolHandler" );
|
||||
return ServiceName == MYPROTOCOLHANDLER_SERVICENAME ||
|
||||
ServiceName == "com.sun.star.frame.ProtocolHandler";
|
||||
}
|
||||
|
||||
Sequence< ::rtl::OUString > SAL_CALL MyProtocolHandler_getSupportedServiceNames( )
|
||||
throw (RuntimeException)
|
||||
{
|
||||
Sequence < ::rtl::OUString > aRet(1);
|
||||
aRet[0] = ::rtl::OUString(MYPROTOCOLHANDLER_SERVICENAME);
|
||||
aRet[0] = ::rtl::OUString( MYPROTOCOLHANDLER_SERVICENAME );
|
||||
return aRet;
|
||||
}
|
||||
|
||||
|
@ -256,14 +222,14 @@ void SAL_CALL BaseDispatch::dispatch( const URL& aURL, const Sequence < Property
|
|||
*/
|
||||
Reference< XInterface > xSelfHold(static_cast< XDispatch* >(this), UNO_QUERY);
|
||||
|
||||
if ( !aURL.Protocol.compareToAscii("vnd.demo.complextoolbarcontrols.demoaddon:") )
|
||||
if ( aURL.Protocol == "vnd.demo.complextoolbarcontrols.demoaddon:" )
|
||||
{
|
||||
if ( !aURL.Path.compareToAscii("Command1" ) )
|
||||
if ( aURL.Path == "ImageButtonCmd" )
|
||||
{
|
||||
// open the OpenOffice.org web page
|
||||
::rtl::OUString sURL(::rtl::OUString("http://www.openoffice.org"));
|
||||
// open the LibreOffice web page
|
||||
::rtl::OUString sURL("http://www.libreoffice.org");
|
||||
Reference< XSystemShellExecute > xSystemShellExecute( mxMSF->createInstance(
|
||||
::rtl::OUString("com.sun.star.system.SystemShellExecute")), UNO_QUERY );
|
||||
"com.sun.star.system.SystemShellExecute"), UNO_QUERY );
|
||||
if ( xSystemShellExecute.is() )
|
||||
{
|
||||
try
|
||||
|
@ -277,13 +243,13 @@ void SAL_CALL BaseDispatch::dispatch( const URL& aURL, const Sequence < Property
|
|||
}
|
||||
}
|
||||
}
|
||||
else if ( !aURL.Path.compareToAscii("Command2" ) )
|
||||
else if ( aURL.Path == "ComboboxCmd" )
|
||||
{
|
||||
// remove the text if it's in our list
|
||||
Sequence< NamedValue > aRemoveArgs( 1 );
|
||||
aRemoveArgs[0].Name = rtl::OUString( "Text" );
|
||||
aRemoveArgs[0].Value <<= maComboBoxText;
|
||||
SendCommand( aURL, ::rtl::OUString("RemoveEntryText"), aRemoveArgs, sal_True );
|
||||
SendCommand( aURL, ::rtl::OUString( "RemoveEntryText" ), aRemoveArgs, sal_True );
|
||||
|
||||
// add the new text to the start of the list
|
||||
Sequence< NamedValue > aInsertArgs( 2 );
|
||||
|
@ -293,13 +259,13 @@ void SAL_CALL BaseDispatch::dispatch( const URL& aURL, const Sequence < Property
|
|||
aInsertArgs[1].Value <<= maComboBoxText;
|
||||
SendCommand( aURL, ::rtl::OUString("InsertEntry"), aInsertArgs, sal_True );
|
||||
}
|
||||
else if ( !aURL.Path.compareToAscii("Command3" ) )
|
||||
else if ( aURL.Path == "InsertEntry" )
|
||||
{
|
||||
// Retrieve the text argument from the sequence property value
|
||||
rtl::OUString aText;
|
||||
for ( sal_Int32 i = 0; i < lArgs.getLength(); i++ )
|
||||
{
|
||||
if ( lArgs[i].Name.equalsAsciiL( "Text", 4 ))
|
||||
if ( lArgs[i].Name == "Text" )
|
||||
{
|
||||
lArgs[i].Value >>= aText;
|
||||
break;
|
||||
|
@ -308,23 +274,23 @@ void SAL_CALL BaseDispatch::dispatch( const URL& aURL, const Sequence < Property
|
|||
|
||||
// create new URL to address the combox box
|
||||
URL aCmdURL;
|
||||
aCmdURL.Path = rtl::OUString("Command2");
|
||||
aCmdURL.Protocol = rtl::OUString("vnd.demo.complextoolbarcontrols.demoaddon:");
|
||||
aCmdURL.Path = "ComboboxCmd";
|
||||
aCmdURL.Protocol = "vnd.demo.complextoolbarcontrols.demoaddon:";
|
||||
aCmdURL.Complete = aCmdURL.Path + aCmdURL.Protocol;
|
||||
|
||||
// set the selected item as text into the combobox
|
||||
Sequence< NamedValue > aArgs( 1 );
|
||||
aArgs[0].Name = rtl::OUString("Text");
|
||||
aArgs[0].Name = "Text";
|
||||
aArgs[0].Value <<= aText;
|
||||
SendCommand( aCmdURL, ::rtl::OUString("SetText"), aArgs, sal_True );
|
||||
SendCommand( aCmdURL, ::rtl::OUString( "SetText" ), aArgs, sal_True );
|
||||
}
|
||||
else if ( !aURL.Path.compareToAscii("Command4" ) )
|
||||
else if ( aURL.Path == "DropdownButtonCmd" )
|
||||
{
|
||||
// Retrieve the text argument from the sequence property value
|
||||
rtl::OUString aText;
|
||||
for ( sal_Int32 i = 0; i < lArgs.getLength(); i++ )
|
||||
{
|
||||
if ( lArgs[i].Name.equalsAsciiL( "Text", 4 ))
|
||||
if ( lArgs[i].Name == "Text" )
|
||||
{
|
||||
lArgs[i].Value >>= aText;
|
||||
break;
|
||||
|
@ -341,8 +307,8 @@ void SAL_CALL BaseDispatch::dispatch( const URL& aURL, const Sequence < Property
|
|||
|
||||
// create new URL to address the image button
|
||||
URL aCmdURL;
|
||||
aCmdURL.Path = rtl::OUString("Command1");
|
||||
aCmdURL.Protocol = rtl::OUString("vnd.demo.complextoolbarcontrols.demoaddon:");
|
||||
aCmdURL.Path = "Command1";
|
||||
aCmdURL.Protocol = "vnd.demo.complextoolbarcontrols.demoaddon:";
|
||||
aCmdURL.Complete = aCmdURL.Path + aCmdURL.Protocol;
|
||||
|
||||
// create and initialize FeatureStateEvent with IsEnabled
|
||||
|
@ -357,9 +323,24 @@ void SAL_CALL BaseDispatch::dispatch( const URL& aURL, const Sequence < Property
|
|||
Reference < XDispatch > xDispatch = aListenerHelper.GetDispatch( mxFrame, aURL.Path );
|
||||
aListenerHelper.Notify( mxFrame, aEvent.FeatureURL.Path, aEvent );
|
||||
}
|
||||
else if ( !aURL.Path.compareToAscii("Command5" ) )
|
||||
else if ( aURL.Path == "SpinfieldCmd" )
|
||||
{
|
||||
}
|
||||
else if ( aURL.Path == "DropdownboxCmd" )
|
||||
{
|
||||
// Retrieve the text argument from the sequence property value
|
||||
rtl::OUString aText;
|
||||
for ( sal_Int32 i = 0; i < lArgs.getLength(); i++ )
|
||||
{
|
||||
if ( lArgs[i].Name == "Text" )
|
||||
{
|
||||
lArgs[i].Value >>= aText;
|
||||
break;
|
||||
}
|
||||
}
|
||||
OSL_TRACE( "Dropdownbox control - selected entry text : %s",
|
||||
rtl::OUStringToOString( aText, RTL_TEXTENCODING_UTF8 ).getStr() );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -367,7 +348,7 @@ void SAL_CALL BaseDispatch::addStatusListener( const Reference< XStatusListener
|
|||
{
|
||||
if ( aURL.Protocol == "vnd.demo.complextoolbarcontrols.demoaddon:" )
|
||||
{
|
||||
if ( aURL.Path == "Command1" )
|
||||
if ( aURL.Path == "ImageButtonCmd" )
|
||||
{
|
||||
// just enable this command
|
||||
::com::sun::star::frame::FeatureStateEvent aEvent;
|
||||
|
@ -378,7 +359,7 @@ void SAL_CALL BaseDispatch::addStatusListener( const Reference< XStatusListener
|
|||
aEvent.State <<= Any();
|
||||
xControl->statusChanged( aEvent );
|
||||
}
|
||||
else if ( aURL.Path == "Command2" )
|
||||
else if ( aURL.Path == "ComboboxCmd" )
|
||||
{
|
||||
// just enable this command
|
||||
::com::sun::star::frame::FeatureStateEvent aEvent;
|
||||
|
@ -389,7 +370,7 @@ void SAL_CALL BaseDispatch::addStatusListener( const Reference< XStatusListener
|
|||
aEvent.State <<= Any();
|
||||
xControl->statusChanged( aEvent );
|
||||
}
|
||||
else if ( aURL.Path == "Command3" )
|
||||
else if ( aURL.Path == "ToggleDropdownButtonCmd" )
|
||||
{
|
||||
// A toggle dropdown box is normally used for a group of commands
|
||||
// where the user can select the last issued command easily.
|
||||
|
@ -398,20 +379,20 @@ void SAL_CALL BaseDispatch::addStatusListener( const Reference< XStatusListener
|
|||
|
||||
// send command to set context menu content
|
||||
Sequence< rtl::OUString > aContextMenu( 3 );
|
||||
aContextMenu[0] = rtl::OUString("Command 1");
|
||||
aContextMenu[1] = rtl::OUString("Command 2");
|
||||
aContextMenu[2] = rtl::OUString("Command 3");
|
||||
aContextMenu[0] = "Command 1";
|
||||
aContextMenu[1] = "Command 2";
|
||||
aContextMenu[2] = "Command 3";
|
||||
|
||||
aArgs[0].Name = rtl::OUString("List");
|
||||
aArgs[0].Name = "List";
|
||||
aArgs[0].Value <<= aContextMenu;
|
||||
SendCommandTo( xControl, aURL, rtl::OUString("SetList"), aArgs, sal_True );
|
||||
SendCommandTo( xControl, aURL, rtl::OUString( "SetList" ), aArgs, sal_True );
|
||||
|
||||
// send command to check item on pos=0
|
||||
aArgs[0].Name = rtl::OUString( "Pos" );
|
||||
aArgs[0].Value <<= sal_Int32( 0 );
|
||||
SendCommandTo( xControl, aURL, ::rtl::OUString("CheckItemPos"), aArgs, sal_True );
|
||||
SendCommandTo( xControl, aURL, ::rtl::OUString( "CheckItemPos" ), aArgs, sal_True );
|
||||
}
|
||||
else if ( aURL.Path == "Command4" )
|
||||
else if ( aURL.Path == "DropdownButtonCmd" )
|
||||
{
|
||||
// A dropdown box is normally used for a group of dependent modes, where
|
||||
// the user can only select one. The modes cannot be combined.
|
||||
|
@ -420,41 +401,41 @@ void SAL_CALL BaseDispatch::addStatusListener( const Reference< XStatusListener
|
|||
|
||||
// send command to set context menu content
|
||||
Sequence< rtl::OUString > aContextMenu( 2 );
|
||||
aContextMenu[0] = rtl::OUString("Button Enabled");
|
||||
aContextMenu[1] = rtl::OUString("Button Disabled");
|
||||
aContextMenu[0] = "Button Enabled";
|
||||
aContextMenu[1] = "Button Disabled";
|
||||
|
||||
aArgs[0].Name = rtl::OUString("List");
|
||||
aArgs[0].Name = "List";
|
||||
aArgs[0].Value <<= aContextMenu;
|
||||
SendCommandTo( xControl, aURL, rtl::OUString("SetList"), aArgs, sal_True );
|
||||
SendCommandTo( xControl, aURL, rtl::OUString( "SetList" ), aArgs, sal_True );
|
||||
|
||||
// set position according to enable/disable state of button
|
||||
sal_Int32 nPos( mbButtonEnabled ? 0 : 1 );
|
||||
|
||||
// send command to check item on pos=0
|
||||
aArgs[0].Name = rtl::OUString( "Pos" );
|
||||
aArgs[0].Name = "Pos";
|
||||
aArgs[0].Value <<= nPos;
|
||||
SendCommandTo( xControl, aURL, ::rtl::OUString("CheckItemPos"), aArgs, sal_True );
|
||||
SendCommandTo( xControl, aURL, ::rtl::OUString( "CheckItemPos" ), aArgs, sal_True );
|
||||
}
|
||||
else if ( aURL.Path == "Command5" )
|
||||
else if ( aURL.Path == "SpinfieldCmd" )
|
||||
{
|
||||
// A spin button
|
||||
Sequence< NamedValue > aArgs( 5 );
|
||||
|
||||
// send command to initialize spin button
|
||||
aArgs[0].Name = rtl::OUString("Value");
|
||||
aArgs[0].Name = "Value";
|
||||
aArgs[0].Value <<= double( 0.0 );
|
||||
aArgs[1].Name = rtl::OUString("UpperLimit");
|
||||
aArgs[1].Name = "UpperLimit";
|
||||
aArgs[1].Value <<= double( 10.0 );
|
||||
aArgs[2].Name = rtl::OUString("LowerLimit");
|
||||
aArgs[2].Name = "LowerLimit";
|
||||
aArgs[2].Value <<= double( 0.0 );
|
||||
aArgs[3].Name = rtl::OUString("Step");
|
||||
aArgs[3].Name = "Step";
|
||||
aArgs[3].Value <<= double( 0.1 );
|
||||
aArgs[4].Name = rtl::OUString("OutputFormat");
|
||||
aArgs[4].Name = "OutputFormat";
|
||||
aArgs[4].Value <<= rtl::OUString("%.2f cm");
|
||||
|
||||
SendCommandTo( xControl, aURL, rtl::OUString("SetValues"), aArgs, sal_True );
|
||||
SendCommandTo( xControl, aURL, rtl::OUString( "SetValues" ), aArgs, sal_True );
|
||||
}
|
||||
else if ( aURL.Path == "Command7" )
|
||||
else if ( aURL.Path == "DropdownboxCmd" )
|
||||
{
|
||||
// A dropdown box is normally used for a group of commands
|
||||
// where the user can select one of a defined set.
|
||||
|
@ -462,20 +443,20 @@ void SAL_CALL BaseDispatch::addStatusListener( const Reference< XStatusListener
|
|||
|
||||
// send command to set context menu content
|
||||
Sequence< rtl::OUString > aList( 10 );
|
||||
aList[0] = rtl::OUString("White");
|
||||
aList[1] = rtl::OUString("Black");
|
||||
aList[2] = rtl::OUString("Red");
|
||||
aList[3] = rtl::OUString("Blue");
|
||||
aList[4] = rtl::OUString("Green");
|
||||
aList[5] = rtl::OUString("Grey");
|
||||
aList[6] = rtl::OUString("Yellow");
|
||||
aList[7] = rtl::OUString("Orange");
|
||||
aList[8] = rtl::OUString("Brown");
|
||||
aList[9] = rtl::OUString("Pink");
|
||||
aList[0] = "White";
|
||||
aList[1] = "Black";
|
||||
aList[2] = "Red";
|
||||
aList[3] = "Blue";
|
||||
aList[4] = "Green";
|
||||
aList[5] = "Grey";
|
||||
aList[6] = "Yellow";
|
||||
aList[7] = "Orange";
|
||||
aList[8] = "Brown";
|
||||
aList[9] = "Pink";
|
||||
|
||||
aArgs[0].Name = rtl::OUString("List");
|
||||
aArgs[0].Name = "List";
|
||||
aArgs[0].Value <<= aList;
|
||||
SendCommandTo( xControl, aURL, rtl::OUString("SetList"), aArgs, sal_True );
|
||||
SendCommandTo( xControl, aURL, rtl::OUString( "SetList" ), aArgs, sal_True );
|
||||
}
|
||||
|
||||
aListenerHelper.AddListener( mxFrame, xControl, aURL.Path );
|
||||
|
@ -491,7 +472,7 @@ void SAL_CALL BaseDispatch::controlEvent( const ControlEvent& Event ) throw (Run
|
|||
{
|
||||
if ( Event.aURL.Protocol == "vnd.demo.complextoolbarcontrols.demoaddon:" )
|
||||
{
|
||||
if ( Event.aURL.Path == "Command2" )
|
||||
if ( Event.aURL.Path == "ComboboxCmd" )
|
||||
{
|
||||
// We get notifications whenever the text inside the combobox has been changed.
|
||||
// We store the new text into a member.
|
||||
|
@ -501,7 +482,7 @@ void SAL_CALL BaseDispatch::controlEvent( const ControlEvent& Event ) throw (Run
|
|||
sal_Bool bHasText( sal_False );
|
||||
for ( sal_Int32 i = 0; i < Event.aInformation.getLength(); i++ )
|
||||
{
|
||||
if ( Event.aInformation[i].Name.equalsAsciiL( "Text", 4 ))
|
||||
if ( Event.aInformation[i].Name == "Text" )
|
||||
{
|
||||
bHasText = Event.aInformation[i].Value >>= aNewText;
|
||||
break;
|
||||
|
@ -515,8 +496,9 @@ void SAL_CALL BaseDispatch::controlEvent( const ControlEvent& Event ) throw (Run
|
|||
}
|
||||
}
|
||||
|
||||
BaseDispatch::BaseDispatch( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > &rxMSF,
|
||||
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& xFrame, const ::rtl::OUString& rServiceName )
|
||||
BaseDispatch::BaseDispatch( const Reference< XMultiServiceFactory > &rxMSF,
|
||||
const Reference< XFrame >& xFrame,
|
||||
const ::rtl::OUString& rServiceName )
|
||||
: mxMSF( rxMSF )
|
||||
, mxFrame( xFrame )
|
||||
, msDocService( rServiceName )
|
||||
|
|
|
@ -1,17 +1,33 @@
|
|||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
/*
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
#ifndef _MyProtocolHandler_HXX
|
||||
#define _MyProtocolHandler_HXX
|
||||
|
||||
#include <com/sun/star/awt/XToolkit.hpp>
|
||||
#include <com/sun/star/beans/NamedValue.hpp>
|
||||
#include <com/sun/star/lang/XInitialization.hpp>
|
||||
#include <com/sun/star/lang/XServiceInfo.hpp>
|
||||
#include <com/sun/star/frame/XDispatchProvider.hpp>
|
||||
#include <com/sun/star/frame/XControlNotificationListener.hpp>
|
||||
#include <com/sun/star/lang/XServiceInfo.hpp>
|
||||
#include <com/sun/star/beans/NamedValue.hpp>
|
||||
#include <cppuhelper/implbase3.hxx>
|
||||
#ifndef _CPPUHELPER_IMPLBASE2_HXX
|
||||
#include <cppuhelper/implbase2.hxx>
|
||||
#endif
|
||||
#include <com/sun/star/awt/XToolkit.hpp>
|
||||
#include <cppuhelper/implbase3.hxx>
|
||||
|
||||
#define MYPROTOCOLHANDLER_IMPLEMENTATIONNAME "vnd.demo.Impl.ProtocolHandler"
|
||||
#define MYPROTOCOLHANDLER_SERVICENAME "vnd.demo.ProtocolHandler"
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<oor:component-data oor:name="ProtocolHandler" oor:package="org.openoffice.Office" xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<node oor:name="HandlerSet">
|
||||
<node oor:name="vnd.demo.ProtocolHandler" oor:op="replace">
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="WriterWindowState" oor:package="org.openoffice.Office.UI">
|
||||
<node oor:name="UIElements">
|
||||
<node oor:name="States">
|
||||
|
|
|
@ -1,61 +1,32 @@
|
|||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
/*************************************************************************
|
||||
/*
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* OpenOffice.org - a multi-platform office productivity suite
|
||||
*
|
||||
* This file is part of OpenOffice.org.
|
||||
*
|
||||
* OpenOffice.org is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License version 3
|
||||
* only, as published by the Free Software Foundation.
|
||||
*
|
||||
* OpenOffice.org is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License version 3 for more details
|
||||
* (a copy is included in the LICENSE file that accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* version 3 along with OpenOffice.org. If not, see
|
||||
* <http://www.openoffice.org/license.html>
|
||||
* for a copy of the LGPLv3 License.
|
||||
*
|
||||
************************************************************************/
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include <osl/mutex.hxx>
|
||||
#include <osl/thread.h>
|
||||
#include <cppuhelper/factory.hxx>
|
||||
#include <rtl/ustring.hxx>
|
||||
#include <rtl/ustrbuf.hxx>
|
||||
#include <sal/types.h>
|
||||
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
|
||||
|
||||
#include "MyProtocolHandler.h"
|
||||
#include "MyListener.h"
|
||||
|
||||
namespace css = ::com::sun::star;
|
||||
|
||||
// static void writeInfo(const css::uno::Reference< css::registry::XRegistryKey >& xRegistryKey ,
|
||||
// const char* pImplementationName,
|
||||
// const char* pServiceName )
|
||||
// {
|
||||
// ::rtl::OUStringBuffer sKey(256);
|
||||
// sKey.append (::rtl::OUString::createFromAscii(pImplementationName));
|
||||
// sKey.appendAscii("/UNO/SERVICES/");
|
||||
// sKey.append (::rtl::OUString::createFromAscii(pServiceName));
|
||||
|
||||
// xRegistryKey->createKey(sKey.makeStringAndClear());
|
||||
// }
|
||||
|
||||
extern "C"
|
||||
{
|
||||
|
||||
SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory(const sal_Char* pImplName ,
|
||||
void* pServiceManager,
|
||||
void* pRegistryKey )
|
||||
|
@ -67,17 +38,16 @@ SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory(const sal_Char* pImplNa
|
|||
css::uno::Reference< css::lang::XMultiServiceFactory > xSMGR (reinterpret_cast< css::lang::XMultiServiceFactory* >(pServiceManager), css::uno::UNO_QUERY);
|
||||
::rtl::OUString sImplName = ::rtl::OUString::createFromAscii(pImplName);
|
||||
|
||||
if (sImplName.equalsAscii(MYLISTENER_IMPLEMENTATIONNAME))
|
||||
if (sImplName == MYLISTENER_IMPLEMENTATIONNAME)
|
||||
{
|
||||
css::uno::Sequence< ::rtl::OUString > lNames(1);
|
||||
lNames[0] = ::rtl::OUString(MYLISTENER_IMPLEMENTATIONNAME);
|
||||
lNames[0] = MYLISTENER_IMPLEMENTATIONNAME;
|
||||
xFactory = ::cppu::createSingleFactory(xSMGR, sImplName, MyListener::st_createInstance, lNames);
|
||||
}
|
||||
else
|
||||
if (sImplName.equalsAscii(MYPROTOCOLHANDLER_IMPLEMENTATIONNAME))
|
||||
else if (sImplName == MYPROTOCOLHANDLER_IMPLEMENTATIONNAME)
|
||||
{
|
||||
css::uno::Sequence< ::rtl::OUString > lNames(1);
|
||||
lNames[0] = ::rtl::OUString(MYPROTOCOLHANDLER_SERVICENAME);
|
||||
lNames[0] = MYPROTOCOLHANDLER_SERVICENAME;
|
||||
xFactory = ::cppu::createSingleFactory(xSMGR, sImplName, MyProtocolHandler_createInstance, lNames);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,3 +1,21 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>LibreOffice %PRODUCT_RELEASE% SDK - Examples</title>
|
||||
|
@ -794,7 +812,9 @@
|
|||
<p>
|
||||
Copyright © 2000, 2010 LibreOffice contributors and/or their affiliates. All rights reserved.
|
||||
<br>
|
||||
LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.
|
||||
LibreOffice was created by The Document Foundation,
|
||||
based on Apache OpenOffice, which is Copyright 2011
|
||||
The Apache Software Foundation.
|
||||
<br>
|
||||
The Document Foundation acknowledges all community members, please find more info <a href="http://www.libreoffice.org/about-us/credits/" target="_blank">at our website</a>.
|
||||
</p>
|
||||
|
|
|
@ -1,3 +1,21 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<html><head><title>Document Converter
|
||||
</title></head><body>
|
||||
<h1>Document Converter</h1>
|
||||
|
|
|
@ -1,23 +1,76 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<project name="MinimalComponent" basedir="." default="all">
|
||||
|
||||
<!DOCTYPE web-app
|
||||
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
|
||||
"http://java.sun.com/dtd/web-app_2_3.dtd">
|
||||
<target name="init">
|
||||
<!--
|
||||
In this target you have to change all parts, so that the properties
|
||||
fit to your odk installation and to your service
|
||||
-->
|
||||
<property name="ODKPATH" value="D:/cvs/api/odk"/>
|
||||
<property name="OUTPUTPATH" value="D:/cvs/api/odk/WINexample.out"/>
|
||||
<property name="PACKAGE_NAME" value="org.OpenOffice."/>
|
||||
<property name="JAR_FILE_NAME" value="MinimalComponent"/>
|
||||
<property name="INTERFACE_NAME" value="MinimalComponent"/>
|
||||
<property name="RDB_NAME" value="MinimalComponent.rdb"/>
|
||||
</target>
|
||||
<target depends="init" name="unoidl">
|
||||
|
||||
<web-app>
|
||||
<display-name>Conversion</display-name>
|
||||
<description>
|
||||
Converter servlet demo of the SDK.
|
||||
</description>
|
||||
<exec dir="${ODKPATH}/WINexample.out/misc/" executable="${ODKPATH}/windows/bin/idlc.exe" timeout="600">
|
||||
<arg line="-I. -I${ODKPATH}/idl ${ODKPATH}/examples/java/MinimalComponent/${INTERFACE_NAME}.idl"/>
|
||||
</exec>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>ConverterServlet</servlet-name>
|
||||
<servlet-class>ConverterServlet</servlet-class>
|
||||
</servlet>
|
||||
<exec dir="." executable="${ODKPATH}/windows/bin/regmerge.exe" timeout="600">
|
||||
<arg line="./${RDB_NAME} /UCR ./${INTERFACE_NAME}.urd"/>
|
||||
</exec>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>ConverterServlet</servlet-name>
|
||||
<url-pattern>/servlet/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
<exec dir="." executable="${ODKPATH}/windows/bin/regmerge.exe" timeout="600">
|
||||
<arg line="./${RDB_NAME} / ${ODKPATH}/windows/bin/applicat.rdb"/>
|
||||
</exec>
|
||||
|
||||
</web-app>
|
||||
<exec dir="." executable="${ODKPATH}/windows/bin/javamaker.exe" timeout="600">
|
||||
<arg line="-BUCR -O${OUTPUTPATH}/class/${INTERFACE_NAME} -nD ./${RDB_NAME}"/>
|
||||
<!--
|
||||
<arg line="-BUCR -T${PACKAGE_NAME}${INTERFACE_NAME} -O${OUTPUTPATH}/class/${INTERFACE_NAME} -nD ./${INTERFACE_NAME}.urd"/>
|
||||
-->
|
||||
</exec>
|
||||
|
||||
</target>
|
||||
|
||||
<target depends="init,unoidl" name="compile">
|
||||
<mkdir dir="classes"/>
|
||||
<javac debug="on" destdir="./classes" srcdir="." >
|
||||
<classpath>
|
||||
<fileset dir="${ODKPATH}/classes/">
|
||||
<include name="**/*.jar"/>
|
||||
</fileset>
|
||||
<pathelement location="./classes"/>
|
||||
</classpath>
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
<target depends="compile,init" name="jar">
|
||||
<jar basedir="./classes" compress="true" jarfile="${JAR_FILE_NAME}.jar" manifest="Manifest">
|
||||
</jar>
|
||||
</target>
|
||||
|
||||
<target depends="compile,init,jar" name="all">
|
||||
<!-- WRITEME -->
|
||||
</target>
|
||||
</project>
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<!DOCTYPE oor:component-data SYSTEM "../../../../component-update.dtd">
|
||||
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:package="org.openoffice.Office" oor:name="Embedding">
|
||||
<node oor:name="Objects">
|
||||
|
|
|
@ -1,28 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<oor:node xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="Addon" oor:package="org.openoffice.Office">
|
||||
<node oor:name="AddonUI">
|
||||
<node oor:name="OfficeToolBar">
|
||||
<node oor:name="org.openoffice.Object-Inspector" oor:op="replace">
|
||||
<prop oor:name="Title" oor:type="xs:string">
|
||||
<value xml:lang="en-US">Object Inspector</value>
|
||||
</prop>
|
||||
<node oor:name="m1" oor:op="replace">
|
||||
<prop oor:name="URL" oor:type="xs:string">
|
||||
<value>vnd.org.openoffice.inspector:post</value>
|
||||
</prop>
|
||||
<prop oor:name="Title" oor:type="xs:string">
|
||||
<value/>
|
||||
<value xml:lang="en-US">~Start Inspector...</value>
|
||||
</prop>
|
||||
<prop oor:name="Target" oor:type="xs:string">
|
||||
<value>_self</value>
|
||||
</prop>
|
||||
<prop oor:name="Context" oor:type="xs:string">
|
||||
<value></value>
|
||||
</prop>
|
||||
</node>
|
||||
</node>
|
||||
</node>
|
||||
</node>
|
||||
</oor:node>
|
||||
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="Addons" oor:package="org.openoffice.Office">
|
||||
<node oor:name="AddonUI">
|
||||
<node oor:name="OfficeToolBar">
|
||||
|
|
|
@ -1,11 +1,27 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
|
||||
<oor:component-schema
|
||||
xmlns:oor="http://openoffice.org/2001/registry"
|
||||
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<oor:component-schema
|
||||
xmlns:oor="http://openoffice.org/2001/registry"
|
||||
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
oor:name="ObjectInspector"
|
||||
oor:package="org.openoffice.inspector"
|
||||
oor:name="ObjectInspector"
|
||||
oor:package="org.openoffice.inspector"
|
||||
xml:lang="en-US">
|
||||
<info>
|
||||
<desc>Configuration parameters for the Object Inspector.</desc>
|
||||
|
@ -13,6 +29,6 @@
|
|||
<component>
|
||||
<prop oor:name="Language" oor:type="xs:string"/>
|
||||
<prop oor:name="SDKPath" oor:type="xs:string"/>
|
||||
</component>
|
||||
</component>
|
||||
|
||||
</oor:component-schema>
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<!DOCTYPE local [
|
||||
<!ENTITY ProductName "Object Inspector">
|
||||
<!ENTITY ProductVersion "0.8">
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<oor:component-data oor:name="ProtocolHandler" oor:package="org.openoffice.Office" xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<node oor:name="HandlerSet">
|
||||
<node oor:name="InspectorAddon$InspectorAddonImpl" oor:op="replace">
|
||||
|
|
|
@ -1,9 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
author: Bertram Nolte
|
||||
created: 2001-10-11
|
||||
revision: 1.0
|
||||
-->
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<project name="MinimalComponent" basedir="." default="all">
|
||||
|
||||
<target name="init">
|
||||
|
|
|
@ -1,29 +1,20 @@
|
|||
#*************************************************************************
|
||||
#
|
||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
#
|
||||
# Copyright 2000, 2010 Oracle and/or its affiliates.
|
||||
# This file is part of the LibreOffice project.
|
||||
#
|
||||
# OpenOffice.org - a multi-platform office productivity suite
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
#
|
||||
# This file is part of OpenOffice.org.
|
||||
# This file incorporates work covered by the following license notice:
|
||||
#
|
||||
# OpenOffice.org is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Lesser General Public License version 3
|
||||
# only, as published by the Free Software Foundation.
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed
|
||||
# with this work for additional information regarding copyright
|
||||
# ownership. The ASF licenses this file to you under the Apache
|
||||
# License, Version 2.0 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
#
|
||||
# OpenOffice.org is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Lesser General Public License version 3 for more details
|
||||
# (a copy is included in the LICENSE file that accompanied this code).
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public License
|
||||
# version 3 along with OpenOffice.org. If not, see
|
||||
# <http://www.openoffice.org/license.html>
|
||||
# for a copy of the LGPLv3 License.
|
||||
#
|
||||
#*************************************************************************
|
||||
PRJ=..
|
||||
|
||||
PRJNAME=odk
|
||||
|
|
155
odk/index.html
155
odk/index.html
|
@ -1,3 +1,21 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>LibreOffice %PRODUCT_RELEASE% SDK - Overview</title>
|
||||
|
@ -12,145 +30,144 @@
|
|||
<div id="TopHeader">
|
||||
<a id="Logo" href="http://www.libreoffice.org/" title="Go to the Home of LibreOffice and the LibreOffice Community page"></a>
|
||||
<p id="HeaderTagLine">LibreOffice API Documentation</p>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<div id="Layout">
|
||||
<div class="typography">
|
||||
<h1>LibreOffice API Documentation</h1>
|
||||
<table class="table1" cellpadding=0>
|
||||
<tr>
|
||||
<tr>
|
||||
<td colspan="3"><img class="nothing30" src="docs/images/nada.gif"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<table class="table2">
|
||||
<tr>
|
||||
<tr>
|
||||
<td><img class="nothing8" src="docs/images/nada.gif"></td>
|
||||
<td>
|
||||
<td>
|
||||
<p>LibreOffice %PRODUCT_RELEASE% software is a complete, feature-rich
|
||||
office productivity suite that provides, in combination with this
|
||||
SDK, all the essential tools for building and deploying custom
|
||||
solutions that build on, or integrate with, the LibreOffice %PRODUCT_RELEASE% suite
|
||||
office productivity suite that provides, in combination with this
|
||||
SDK, all the essential tools for building and deploying custom
|
||||
solutions that build on, or integrate with, the LibreOffice %PRODUCT_RELEASE% suite
|
||||
of products.</p>
|
||||
<p>The SDK is a development kit for LibreOffice %PRODUCT_RELEASE%, which
|
||||
eases the development of office components. It provides a set of
|
||||
libraries, binaries, header, and IDL files which have final API's
|
||||
<p>The SDK is a development kit for LibreOffice %PRODUCT_RELEASE%, which
|
||||
eases the development of office components. It provides a set of
|
||||
libraries, binaries, header, and IDL files which have final API's
|
||||
and can only be extended with new functionality. This set of libraries
|
||||
and binaries is the minimum set of functions needed to use system
|
||||
abstraction for base functionality and for using UNO (Universal
|
||||
and binaries is the minimum set of functions needed to use system
|
||||
abstraction for base functionality and for using UNO (Universal
|
||||
Network Objects) component technology. The UNO component model is the
|
||||
base of the whole Office API. The SDK provides everything necessary
|
||||
to use the Office API from external programs (e.g. Java, C++) or to
|
||||
extend the Office functionality with new components (e.g. new filter
|
||||
components, CalcAddin functions). It is compatible over several
|
||||
base of the whole Office API. The SDK provides everything necessary
|
||||
to use the Office API from external programs (e.g. Java, C++) or to
|
||||
extend the Office functionality with new components (e.g. new filter
|
||||
components, CalcAddin functions). It is compatible over several
|
||||
versions because the API remains unaffected and will only be extended
|
||||
with new functions.</p>
|
||||
<p>The SDK provides the basic building blocks for external developers
|
||||
to develop components in any language for which a binding exists.
|
||||
Currently, there are language bindings for LibreOffice %PRODUCT_RELEASE% Basic, Java, Python,
|
||||
<p>The SDK provides the basic building blocks for external developers
|
||||
to develop components in any language for which a binding exists.
|
||||
Currently, there are language bindings for LibreOffice %PRODUCT_RELEASE% Basic, Java, Python,
|
||||
and different C++ compilers on different platforms, for LibreOffice %PRODUCT_RELEASE%,
|
||||
thus covering the most commonly used programming languages. There
|
||||
thus covering the most commonly used programming languages. There
|
||||
will be no limit for office automation in heterogeneous environments.
|
||||
Currently supported platforms of the SDK are Linux, Solaris (sparc,
|
||||
Currently supported platforms of the SDK are Linux, Solaris (sparc,
|
||||
x86), and Windows.</p>
|
||||
<p>The SDK also contains <a href="docs/common/ref/com/sun/star/module-ix.html" title="link to the IDL reference documentation"> reference</a> documentation
|
||||
for the API and a complete <a href="http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/OpenOffice.org_Developers_Guide" title="link to the Developer's Guide in the Wiki">Developer's Guide</a> is available online in the OpenOffice.org Wiki, with
|
||||
<p>The SDK also contains <a href="docs/common/ref/com/sun/star/module-ix.html" title="link to the IDL reference documentation"> reference</a> documentation
|
||||
for the API and a complete <a href="http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/OpenOffice.org_Developers_Guide" title="link to the Developer's Guide in the Wiki">Developer's Guide</a> is available online in the Apache OpenOffice Wiki, with
|
||||
lots of examples, which introduce the API, explain the concepts behind
|
||||
it, and make it possible for all users to quickly get started with
|
||||
it, and make it possible for all users to quickly get started with
|
||||
the Office API.</p>
|
||||
</td>
|
||||
<td><img class="nothing8" src="docs/images/nada.gif"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td><img class="nothing8" src="docs/images/nada.gif"></td>
|
||||
<td><img class="line" src="docs/images/sdk_line-1.gif"></td>
|
||||
<td><img class="nothing8" src="docs/images/nada.gif"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td><img class="nothing8" src="docs/images/nada.gif"></td>
|
||||
<td>
|
||||
<td>
|
||||
<table class="table3">
|
||||
<tr valign="top">
|
||||
<tr valign="top">
|
||||
<td colspan="4" class="head1">Content</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td colspan="4"><img class="nothing8" src="docs/images/nada.gif"></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<tr valign="top">
|
||||
<td class="content4"><img src="docs/images/arrow-1.gif"></td>
|
||||
<td colspan="2"><a href="docs/install.html" title="link to the installation guide">Installation Guide</a></td>
|
||||
<td class="content70">An overview of all necessary
|
||||
<td class="content70">An overview of all necessary
|
||||
installation steps (e.g. environment variables) to use this SDK.</td>
|
||||
</tr>
|
||||
<tr valign="middle">
|
||||
<tr valign="middle">
|
||||
<td><img class="nothing10" src="docs/images/nada.gif"></td>
|
||||
<td colspan="3"><img class="line" src="docs/images/sdk_line-1.gif"></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<tr valign="top">
|
||||
<td class="content4"><img src="docs/images/arrow-1.gif"></td>
|
||||
<td colspan="2"><a href="http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/OpenOffice.org_Developers_Guide" title="link to the Developer's Guide in the Wiki">Developer's Guide</a></td>
|
||||
<td class="content70">Detailed documentation, explaining the LibreOffice %PRODUCT_RELEASE%
|
||||
API and the concepts behind it, with a rich set of examples,
|
||||
implemented mainly in Java. This documentation is online in the
|
||||
OpenOffice.org Wiki.</td>
|
||||
<td class="content70">Detailed documentation, explaining the LibreOffice %PRODUCT_RELEASE%
|
||||
API and the concepts behind it, with a rich set of examples,
|
||||
implemented mainly in Java. This documentation is online in the
|
||||
Apache OpenOffice Wiki.</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<tr valign="top">
|
||||
<td class="content4"><img src="docs/images/arrow-1.gif"></td>
|
||||
<td colspan="2"><a href="docs/common/ref/com/sun/star/module-ix.html" title="link to the IDL reference documentation">IDL Reference</a></td>
|
||||
<td class="content70">Complete LibreOffice %PRODUCT_RELEASE% API reference.</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<tr valign="top">
|
||||
<td class="content4"><img src="docs/images/arrow-1.gif"></td>
|
||||
<td colspan="2"><a href="docs/java/ref/index.html" title="link to the Java UNO runtime API reference documentation">Java UNO Runtime Reference </a></td>
|
||||
<td class="content70">Reference documentation of the Java UNO runtime API.</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<tr valign="top">
|
||||
<td class="content4"><img src="docs/images/arrow-1.gif"></td>
|
||||
<td colspan="2"><a href="docs/cpp/ref/index.html" title="link to the C++ API reference documentation">C++ Reference</a></td>
|
||||
<td class="content70">Reference documentation of the C++ UNO runtime and a
|
||||
<td class="content70">Reference documentation of the C++ UNO runtime and a
|
||||
set of C/C++ base and helper functions and classes to abstract from
|
||||
the system layer.</td>
|
||||
</tr>
|
||||
<tr valign="middle">
|
||||
<tr valign="middle">
|
||||
<td><img class="nothing10" src="docs/images/nada.gif"></td>
|
||||
<td colspan="3"><img class="line" src="docs/images/sdk_line-1.gif"></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<tr valign="top">
|
||||
<td class="content4"><img src="docs/images/arrow-1.gif"></td>
|
||||
<td colspan="2"><a href="docs/tools.html" title="link to the tools overview page">Development Tools</a></td>
|
||||
<td class="content70">Overview and a short description of the UNO
|
||||
<td class="content70">Overview and a short description of the UNO
|
||||
development tools.</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<tr valign="top">
|
||||
<td class="content4"><img src="docs/images/arrow-1.gif"></td>
|
||||
<td colspan="2"><a href="examples/examples.html" title="link to the examples overview page">Examples</a></td>
|
||||
<td class="content70">A collection of examples in different
|
||||
<td class="content70">A collection of examples in different
|
||||
programming languages (Java, Python, C++, Basic, OLE, CLI).</td>
|
||||
</tr>
|
||||
<tr valign="middle">
|
||||
<tr valign="middle">
|
||||
<td><img class="nothing10" src="docs/images/nada.gif"></td>
|
||||
<td colspan="3"><img class="line" src="docs/images/sdk_line-1.gif"></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<tr valign="top">
|
||||
<td class="content4"><img src="docs/images/arrow-1.gif"></td>
|
||||
<td colspan="2"><a href="http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=office" title="link to the OASIS Open Office XML Format TC (online)">OASIS Open Document Format for Office Applications (OpenDocument) TC</a></td>
|
||||
<td class="content70">Link to the OASIS Open Document Format for
|
||||
Office Applications (OpenDocument) Technical Committee where you
|
||||
can find the latest information about the OASIS Open Document XML
|
||||
file format which is the default document format
|
||||
<td class="content70">Link to the OASIS Open Document Format for
|
||||
Office Applications (OpenDocument) Technical Committee where you
|
||||
can find the latest information about the OASIS Open Document XML
|
||||
file format which is the default document format
|
||||
for LibreOffice %PRODUCT_RELEASE%.</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<tr valign="top">
|
||||
<td class="content4"><img src="docs/images/arrow-1.gif"></td>
|
||||
<td colspan="2"><a href="http://xml.openoffice.org/xml_specification.pdf" title="link to the OpenOffice.org XML File Format Specification">OpenOffice.org XML File Format</a></td>
|
||||
<td class="content70">Specification of the initial OpenOffice.org
|
||||
XML File Format.</td>
|
||||
<td class="content70">Specification of the initial OpenOffice.org XML File Format.</td>
|
||||
</tr>
|
||||
<tr valign="middle">
|
||||
<tr valign="middle">
|
||||
<td><img class="nothing10" src="docs/images/nada.gif"></td>
|
||||
<td colspan="3"><img class="line" src="docs/images/sdk_line-1.gif"></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<tr valign="top">
|
||||
<td class="content4"><img src="docs/images/arrow-1.gif"></td>
|
||||
<td colspan="2"><a href="share/readme/LICENSE.html" title="link to the SDK license file">License</a></td>
|
||||
<td class="content70">The license for the LibreOffice %PRODUCT_RELEASE% SDK.</td>
|
||||
|
@ -163,13 +180,15 @@
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div id="Footer">
|
||||
<div id="FooterText">
|
||||
<p>
|
||||
Copyright © 2000, 2010 LibreOffice contributors and/or their affiliates. All rights reserved.
|
||||
<br>
|
||||
LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.
|
||||
LibreOffice was created by The Document Foundation,
|
||||
based on Apache OpenOffice, which is Copyright 2011
|
||||
The Apache Software Foundation.
|
||||
<br>
|
||||
The Document Foundation acknowledges all community members, please find more info <a href="http://www.libreoffice.org/about-us/credits/" target="_blank">at our website</a>.
|
||||
</p>
|
||||
|
@ -180,10 +199,10 @@
|
|||
<a href="http://www.documentfoundation.org/privacy" target="_blank">Privacy Policy</a> | <a href="http://www.documentfoundation.org/imprint" target="_blank">Impressum (Legal Info)</a>
|
||||
| Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (<a href="http://www.libreoffice.org/download/license/" target="_blank">LGPLv3</a>). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our <a href="http://wiki.documentfoundation.org/TradeMark_Policy" target="_blank">trademark policy</a>.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
|
@ -1,29 +1,20 @@
|
|||
#*************************************************************************
|
||||
#
|
||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
#
|
||||
# Copyright 2000, 2010 Oracle and/or its affiliates.
|
||||
# This file is part of the LibreOffice project.
|
||||
#
|
||||
# OpenOffice.org - a multi-platform office productivity suite
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
#
|
||||
# This file is part of OpenOffice.org.
|
||||
# This file incorporates work covered by the following license notice:
|
||||
#
|
||||
# OpenOffice.org is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Lesser General Public License version 3
|
||||
# only, as published by the Free Software Foundation.
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed
|
||||
# with this work for additional information regarding copyright
|
||||
# ownership. The ASF licenses this file to you under the Apache
|
||||
# License, Version 2.0 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
#
|
||||
# OpenOffice.org is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Lesser General Public License version 3 for more details
|
||||
# (a copy is included in the LICENSE file that accompanied this code).
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public License
|
||||
# version 3 along with OpenOffice.org. If not, see
|
||||
# <http://www.openoffice.org/license.html>
|
||||
# for a copy of the LGPLv3 License.
|
||||
#
|
||||
#*************************************************************************
|
||||
PRJ=..$/..
|
||||
PRJNAME=odk
|
||||
TARGET=checkinc
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
#
|
||||
# This file is part of the LibreOffice project.
|
||||
#
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
#
|
||||
# This file incorporates work covered by the following license notice:
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed
|
||||
# with this work for additional information regarding copyright
|
||||
# ownership. The ASF licenses this file to you under the Apache
|
||||
# License, Version 2.0 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
#
|
||||
|
||||
# This script is needed in the process of generating exported
|
||||
# symbols list on Mac OS X
|
||||
|
|
|
@ -1,29 +1,20 @@
|
|||
#*************************************************************************
|
||||
#
|
||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
#
|
||||
# Copyright 2000, 2010 Oracle and/or its affiliates.
|
||||
# This file is part of the LibreOffice project.
|
||||
#
|
||||
# OpenOffice.org - a multi-platform office productivity suite
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
#
|
||||
# This file is part of OpenOffice.org.
|
||||
# This file incorporates work covered by the following license notice:
|
||||
#
|
||||
# OpenOffice.org is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Lesser General Public License version 3
|
||||
# only, as published by the Free Software Foundation.
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed
|
||||
# with this work for additional information regarding copyright
|
||||
# ownership. The ASF licenses this file to you under the Apache
|
||||
# License, Version 2.0 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
#
|
||||
# OpenOffice.org is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Lesser General Public License version 3 for more details
|
||||
# (a copy is included in the LICENSE file that accompanied this code).
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public License
|
||||
# version 3 along with OpenOffice.org. If not, see
|
||||
# <http://www.openoffice.org/license.html>
|
||||
# for a copy of the LGPLv3 License.
|
||||
#
|
||||
#*************************************************************************
|
||||
|
||||
PRJ=../..
|
||||
PRJNAME=odk
|
||||
|
@ -132,7 +123,6 @@ DOCUFILES= \
|
|||
$(DESTDIRDOCUIMAGES)/nada.gif \
|
||||
$(DESTDIRDOCUIMAGES)/arrow-2.gif \
|
||||
$(DESTDIRDOCUIMAGES)/bluball.gif \
|
||||
$(DESTDIRDOCUIMAGES)/orc-main-app_32.png \
|
||||
$(DESTDIRDOCUIMAGES)/ooo-main-app_32.png \
|
||||
$(DESTDIRDOCUIMAGES)/odk-footer-logo.gif \
|
||||
$(DESTDIRDOCUIMAGES)/arrow-1.gif \
|
||||
|
|
|
@ -1,29 +1,20 @@
|
|||
#*************************************************************************
|
||||
#
|
||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
#
|
||||
# Copyright 2000, 2010 Oracle and/or its affiliates.
|
||||
# This file is part of the LibreOffice project.
|
||||
#
|
||||
# OpenOffice.org - a multi-platform office productivity suite
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
#
|
||||
# This file is part of OpenOffice.org.
|
||||
# This file incorporates work covered by the following license notice:
|
||||
#
|
||||
# OpenOffice.org is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Lesser General Public License version 3
|
||||
# only, as published by the Free Software Foundation.
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed
|
||||
# with this work for additional information regarding copyright
|
||||
# ownership. The ASF licenses this file to you under the Apache
|
||||
# License, Version 2.0 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
#
|
||||
# OpenOffice.org is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Lesser General Public License version 3 for more details
|
||||
# (a copy is included in the LICENSE file that accompanied this code).
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public License
|
||||
# version 3 along with OpenOffice.org. If not, see
|
||||
# <http://www.openoffice.org/license.html>
|
||||
# for a copy of the LGPLv3 License.
|
||||
#
|
||||
#*************************************************************************
|
||||
|
||||
PRJ=..$/..
|
||||
PRJNAME=odk
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
#! /bin/sh
|
||||
#
|
||||
# This file is part of the LibreOffice project.
|
||||
#
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
#
|
||||
# This file incorporates work covered by the following license notice:
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed
|
||||
# with this work for additional information regarding copyright
|
||||
# ownership. The ASF licenses this file to you under the Apache
|
||||
# License, Version 2.0 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
#
|
||||
|
||||
OSTYPE=`uname -s`
|
||||
HOSTNAME=`hostname`
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
#! /bin/csh
|
||||
#
|
||||
# This file is part of the LibreOffice project.
|
||||
#
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
#
|
||||
# This file incorporates work covered by the following license notice:
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed
|
||||
# with this work for additional information regarding copyright
|
||||
# ownership. The ASF licenses this file to you under the Apache
|
||||
# License, Version 2.0 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
#
|
||||
|
||||
# This script sets all enviroment variables, which are necessary for building
|
||||
# the examples of the Office Development Kit.
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
#! /bin/sh
|
||||
#
|
||||
# This file is part of the LibreOffice project.
|
||||
#
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
#
|
||||
# This file incorporates work covered by the following license notice:
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed
|
||||
# with this work for additional information regarding copyright
|
||||
# ownership. The ASF licenses this file to you under the Apache
|
||||
# License, Version 2.0 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
#
|
||||
|
||||
# This script starts a new shell and sets all enviroment variables, which
|
||||
# are necessary for building the examples of the Office Development Kit.
|
||||
|
@ -160,7 +177,7 @@ case ${sdk_platform} in
|
|||
then
|
||||
SDK_GXX_INCLUDE_PATH=`echo "#include <cstring>" | ${OO_SDK_CPP_HOME}/g++ -E -xc++ - | sed -n '/.*1*"\(.*\)\/cstring".*/s//\1/p' | head -n 1`
|
||||
export SDK_GXX_INCLUDE_PATH
|
||||
fi
|
||||
fi
|
||||
|
||||
directoryname=linux
|
||||
comid=gcc3
|
||||
|
@ -177,7 +194,7 @@ case ${sdk_platform} in
|
|||
then
|
||||
SDK_GXX_INCLUDE_PATH=`echo "#include <cstring>" | ${OO_SDK_CPP_HOME}/g++ -E -xc++ - | sed -n '/.*1*"\(.*\)\/cstring".*/s//\1/p' | head -n 1`
|
||||
export SDK_GXX_INCLUDE_PATH
|
||||
fi
|
||||
fi
|
||||
|
||||
directoryname=freebsd
|
||||
comid=gcc3
|
||||
|
@ -206,7 +223,7 @@ case ${sdk_platform} in
|
|||
PTHREAD_LIBS=-lc_r
|
||||
export PTHREAD_CFLAGS
|
||||
export PTHREAD_LIBS
|
||||
else
|
||||
else
|
||||
PTHREAD_LIBS=-pthread
|
||||
export PTHREAD_LIBS
|
||||
fi
|
||||
|
@ -292,11 +309,11 @@ fi
|
|||
|
||||
|
||||
# Prepare shell with all necessary environment variables.
|
||||
echo
|
||||
echo
|
||||
echo " ************************************************************************"
|
||||
echo " *"
|
||||
echo " * SDK environment is prepared for ${platform}"
|
||||
echo " *"
|
||||
echo " *"
|
||||
echo " * SDK environment is prepared for ${platform}"
|
||||
echo " *"
|
||||
echo " * SDK = $OO_SDK_HOME"
|
||||
echo " * Office = $OFFICE_HOME"
|
||||
echo " * URE = $OO_SDK_URE_HOME"
|
||||
|
|
|
@ -1,3 +1,21 @@
|
|||
rem
|
||||
rem This file is part of the LibreOffice project.
|
||||
rem
|
||||
rem This Source Code Form is subject to the terms of the Mozilla Public
|
||||
rem License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
rem file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
rem
|
||||
rem This file incorporates work covered by the following license notice:
|
||||
rem
|
||||
rem Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
rem contributor license agreements. See the NOTICE file distributed
|
||||
rem with this work for additional information regarding copyright
|
||||
rem ownership. The ASF licenses this file to you under the Apache
|
||||
rem License, Version 2.0 (the "License"); you may not use this file
|
||||
rem except in compliance with the License. You may obtain a copy of
|
||||
rem the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
rem
|
||||
|
||||
@echo off
|
||||
|
||||
set SDK_DIR_TMP=%~dp0
|
||||
|
|
|
@ -1,3 +1,21 @@
|
|||
rem
|
||||
rem This file is part of the LibreOffice project.
|
||||
rem
|
||||
rem This Source Code Form is subject to the terms of the Mozilla Public
|
||||
rem License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
rem file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
rem
|
||||
rem This file incorporates work covered by the following license notice:
|
||||
rem
|
||||
rem Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
rem contributor license agreements. See the NOTICE file distributed
|
||||
rem with this work for additional information regarding copyright
|
||||
rem ownership. The ASF licenses this file to you under the Apache
|
||||
rem License, Version 2.0 (the "License"); you may not use this file
|
||||
rem except in compliance with the License. You may obtain a copy of
|
||||
rem the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
rem
|
||||
|
||||
@echo off
|
||||
REM This script sets all enviroment variables, which
|
||||
REM are necessary for building the examples of the Office Development Kit.
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
rem
|
||||
rem This file is part of the LibreOffice project.
|
||||
rem
|
||||
rem This Source Code Form is subject to the terms of the Mozilla Public
|
||||
rem License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
rem file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
rem
|
||||
rem This file incorporates work covered by the following license notice:
|
||||
rem
|
||||
rem Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
rem contributor license agreements. See the NOTICE file distributed
|
||||
rem with this work for additional information regarding copyright
|
||||
rem ownership. The ASF licenses this file to you under the Apache
|
||||
rem License, Version 2.0 (the "License"); you may not use this file
|
||||
rem except in compliance with the License. You may obtain a copy of
|
||||
rem the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
rem
|
||||
@echo off
|
||||
|
||||
set OO_SDK_NAME=%~n1
|
||||
|
|
|
@ -1,3 +1,21 @@
|
|||
#
|
||||
# This file is part of the LibreOffice project.
|
||||
#
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
#
|
||||
# This file incorporates work covered by the following license notice:
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed
|
||||
# with this work for additional information regarding copyright
|
||||
# ownership. The ASF licenses this file to you under the Apache
|
||||
# License, Version 2.0 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
#
|
||||
|
||||
# Global settings file for the minimal build environment of the SDK
|
||||
# This file have to updated/extended for other platforms.
|
||||
|
||||
|
|
|
@ -1,3 +1,21 @@
|
|||
#
|
||||
# This file is part of the LibreOffice project.
|
||||
#
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
#
|
||||
# This file incorporates work covered by the following license notice:
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed
|
||||
# with this work for additional information regarding copyright
|
||||
# ownership. The ASF licenses this file to you under the Apache
|
||||
# License, Version 2.0 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
#
|
||||
|
||||
ifneq "$(OO_SDK_OUT)" ""
|
||||
OUT=$(subst \,/,$(OO_SDK_OUT))/$(OS)example.out
|
||||
else
|
||||
|
|
|
@ -1,3 +1,21 @@
|
|||
#
|
||||
# This file is part of the LibreOffice project.
|
||||
#
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
#
|
||||
# This file incorporates work covered by the following license notice:
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed
|
||||
# with this work for additional information regarding copyright
|
||||
# ownership. The ASF licenses this file to you under the Apache
|
||||
# License, Version 2.0 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
#
|
||||
|
||||
.SUFFIXES:
|
||||
|
||||
.SECONDARY:
|
||||
|
|
|
@ -1,29 +1,20 @@
|
|||
/*************************************************************************
|
||||
/*
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* OpenOffice.org - a multi-platform office productivity suite
|
||||
*
|
||||
* This file is part of OpenOffice.org.
|
||||
*
|
||||
* OpenOffice.org is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License version 3
|
||||
* only, as published by the Free Software Foundation.
|
||||
*
|
||||
* OpenOffice.org is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License version 3 for more details
|
||||
* (a copy is included in the LICENSE file that accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* version 3 along with OpenOffice.org. If not, see
|
||||
* <http://www.openoffice.org/license.html>
|
||||
* for a copy of the LGPLv3 License.
|
||||
*
|
||||
************************************************************************/
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
package com.sun.star.lib.loader;
|
||||
|
||||
|
|
|
@ -1,29 +1,20 @@
|
|||
/*************************************************************************
|
||||
/*
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* OpenOffice.org - a multi-platform office productivity suite
|
||||
*
|
||||
* This file is part of OpenOffice.org.
|
||||
*
|
||||
* OpenOffice.org is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License version 3
|
||||
* only, as published by the Free Software Foundation.
|
||||
*
|
||||
* OpenOffice.org is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License version 3 for more details
|
||||
* (a copy is included in the LICENSE file that accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* version 3 along with OpenOffice.org. If not, see
|
||||
* <http://www.openoffice.org/license.html>
|
||||
* for a copy of the LGPLv3 License.
|
||||
*
|
||||
************************************************************************/
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
package com.sun.star.lib.loader;
|
||||
|
||||
|
|
|
@ -1,29 +1,20 @@
|
|||
#*************************************************************************
|
||||
#
|
||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
#
|
||||
# Copyright 2000, 2010 Oracle and/or its affiliates.
|
||||
# This file is part of the LibreOffice project.
|
||||
#
|
||||
# OpenOffice.org - a multi-platform office productivity suite
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
#
|
||||
# This file is part of OpenOffice.org.
|
||||
# This file incorporates work covered by the following license notice:
|
||||
#
|
||||
# OpenOffice.org is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Lesser General Public License version 3
|
||||
# only, as published by the Free Software Foundation.
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed
|
||||
# with this work for additional information regarding copyright
|
||||
# ownership. The ASF licenses this file to you under the Apache
|
||||
# License, Version 2.0 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
#
|
||||
# OpenOffice.org is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Lesser General Public License version 3 for more details
|
||||
# (a copy is included in the LICENSE file that accompanied this code).
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public License
|
||||
# version 3 along with OpenOffice.org. If not, see
|
||||
# <http://www.openoffice.org/license.html>
|
||||
# for a copy of the LGPLv3 License.
|
||||
#
|
||||
#*************************************************************************
|
||||
|
||||
PRJ=..$/..$/..
|
||||
|
||||
|
|
|
@ -1,30 +1,21 @@
|
|||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
/*************************************************************************
|
||||
/*
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* OpenOffice.org - a multi-platform office productivity suite
|
||||
*
|
||||
* This file is part of OpenOffice.org.
|
||||
*
|
||||
* OpenOffice.org is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License version 3
|
||||
* only, as published by the Free Software Foundation.
|
||||
*
|
||||
* OpenOffice.org is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License version 3 for more details
|
||||
* (a copy is included in the LICENSE file that accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* version 3 along with OpenOffice.org. If not, see
|
||||
* <http://www.openoffice.org/license.html>
|
||||
* for a copy of the LGPLv3 License.
|
||||
*
|
||||
************************************************************************/
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
|
|
@ -1,30 +1,21 @@
|
|||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
/*************************************************************************
|
||||
/*
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* OpenOffice.org - a multi-platform office productivity suite
|
||||
*
|
||||
* This file is part of OpenOffice.org.
|
||||
*
|
||||
* OpenOffice.org is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License version 3
|
||||
* only, as published by the Free Software Foundation.
|
||||
*
|
||||
* OpenOffice.org is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License version 3 for more details
|
||||
* (a copy is included in the LICENSE file that accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* version 3 along with OpenOffice.org. If not, see
|
||||
* <http://www.openoffice.org/license.html>
|
||||
* for a copy of the LGPLv3 License.
|
||||
*
|
||||
************************************************************************/
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -1,29 +1,20 @@
|
|||
#*************************************************************************
|
||||
#
|
||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
#
|
||||
# Copyright 2000, 2010 Oracle and/or its affiliates.
|
||||
# This file is part of the LibreOffice project.
|
||||
#
|
||||
# OpenOffice.org - a multi-platform office productivity suite
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
#
|
||||
# This file is part of OpenOffice.org.
|
||||
# This file incorporates work covered by the following license notice:
|
||||
#
|
||||
# OpenOffice.org is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Lesser General Public License version 3
|
||||
# only, as published by the Free Software Foundation.
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed
|
||||
# with this work for additional information regarding copyright
|
||||
# ownership. The ASF licenses this file to you under the Apache
|
||||
# License, Version 2.0 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
#
|
||||
# OpenOffice.org is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Lesser General Public License version 3 for more details
|
||||
# (a copy is included in the LICENSE file that accompanied this code).
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public License
|
||||
# version 3 along with OpenOffice.org. If not, see
|
||||
# <http://www.openoffice.org/license.html>
|
||||
# for a copy of the LGPLv3 License.
|
||||
#
|
||||
#*************************************************************************
|
||||
|
||||
PRJ=..$/..$/..
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue