Kaydet (Commit) 9cabd6af authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Fold ImpressSdRemote.xcs back into Impress.xcs

This effectively reverts 8c5cd962 "config split
for sdremote" (what was the rationale for that, anyway? having the two little
additions in Impress.xcs always should not be a big deal),
63a73c11 "Hopefully fix the remote config access
to work with the new schema.", ee5403b9
"officecfg: generate header for Impress-sdremote, handle "-" in xcs name", and
4cce7027 "Rename Impress-sdremote.xcs to
ImpressSdRemote.xcs + add to postprocess."

Change-Id: Iba6162a3c1d9e688960c794265bd04128f58cc0c
üst b1cd18bc
......@@ -119,12 +119,6 @@ $(eval $(call gb_Configuration_add_schemas,registry,officecfg/registry/schema,\
org/openoffice/ucb/Store.xcs \
))
ifeq ($(ENABLE_SDREMOTE),YES)
$(eval $(call gb_Configuration_add_schemas,registry,officecfg/registry/schema,\
org/openoffice/Office/ImpressSdRemote.xcs \
))
endif
$(eval $(call gb_Configuration_add_datas,registry,officecfg/registry/data,\
org/openoffice/Inet.xcu \
org/openoffice/System.xcu \
......
......@@ -65,29 +65,29 @@
<xsl:param name="path"/>
<xsl:text>#ifndef INCLUDED_OFFICECFG_</xsl:text>
<xsl:value-of
select="translate($ns1, 'abcdefghijklmnopqrstuvwxyz-', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_')"/>
select="translate($ns1, 'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/>
<xsl:if test="$ns2">
<xsl:text>_</xsl:text>
<xsl:value-of
select="translate($ns2, 'abcdefghijklmnopqrstuvwxyz-', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_')"/>
select="translate($ns2, 'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/>
<xsl:if test="$ns3">
<xsl:text>_</xsl:text>
<xsl:value-of
select="translate($ns3, 'abcdefghijklmnopqrstuvwxyz-', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_')"/>
select="translate($ns3, 'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/>
</xsl:if>
</xsl:if>
<xsl:text>_HXX&#xA;</xsl:text>
<xsl:text>#define INCLUDED_OFFICECFG_</xsl:text>
<xsl:value-of
select="translate($ns1, 'abcdefghijklmnopqrstuvwxyz-', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_')"/>
select="translate($ns1, 'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/>
<xsl:if test="$ns2">
<xsl:text>_</xsl:text>
<xsl:value-of
select="translate($ns2, 'abcdefghijklmnopqrstuvwxyz-', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_')"/>
select="translate($ns2, 'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/>
<xsl:if test="$ns3">
<xsl:text>_</xsl:text>
<xsl:value-of
select="translate($ns3, 'abcdefghijklmnopqrstuvwxyz-', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_')"/>
select="translate($ns3, 'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/>
</xsl:if>
</xsl:if>
<xsl:text>_HXX&#xA;</xsl:text>
......@@ -113,13 +113,13 @@
<xsl:text>#include "comphelper/configuration.hxx"&#xA;</xsl:text>
<xsl:text>&#xA;</xsl:text>
<xsl:text>namespace officecfg { namespace </xsl:text>
<xsl:value-of select="translate($ns1, '-', '_')"/>
<xsl:value-of select="$ns1"/>
<xsl:if test="$ns2">
<xsl:text> { namespace </xsl:text>
<xsl:value-of select="translate($ns2, '-', '_')"/>
<xsl:value-of select="$ns2"/>
<xsl:if test="$ns3">
<xsl:text> { namespace </xsl:text>
<xsl:value-of select="translate($ns3, '-', '_')"/>
<xsl:value-of select="$ns3"/>
</xsl:if>
</xsl:if>
<xsl:text> {&#xA;</xsl:text>
......
......@@ -22,7 +22,6 @@ officecfg_FILES := \
Office/FormWizard \
Office/Histories \
Office/Impress \
$(if $(filter YES,$(ENABLE_SDREMOTE)),Office/ImpressSdRemote) \
Office/Java \
Office/Jobs \
Office/Labels \
......
<?xml version="1.0" encoding="UTF-8"?>
<!--***********************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* 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.
*
************************************************************************ -->
<!DOCTYPE oor:component-schema SYSTEM "../../../../component-schema.dtd">
<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="Impress-sdremote" oor:package="org.openoffice.Office" xml:lang="en-US">
<info>
<author>AF</author>
<desc >Contains configuration items related to the Impress application.</desc>
</info>
<import oor:component="org.openoffice.Office.Common"/>
<templates>
<group oor:name="AuthorisedRemote">
<info>
<author>ajrhunt</author>
<desc>
A Remote Control Device that has been authorised for connection.
</desc>
</info>
<prop oor:name="PIN" oor:type="xs:string">
<info>
<desc>The PIN used by the device for authentication.</desc>
</info>
</prop>
</group>
</templates>
<component>
<group oor:name="Content">
<info>
<desc>Contains content related configuration items.</desc>
</info>
<set oor:name="AuthorisedRemotes" oor:node-type="AuthorisedRemote">
<info>
<author>ajrhunt</author>
<desc>Contains a list of remote control devices that can connect without user confirmation.</desc>
</info>
</set>
</group>
</component>
</oor:component-schema>
......@@ -90,6 +90,19 @@
</info>
</prop>
</group>
<group oor:name="AuthorisedRemote">
<info>
<author>ajrhunt</author>
<desc>
A Remote Control Device that has been authorised for connection.
</desc>
</info>
<prop oor:name="PIN" oor:type="xs:string">
<info>
<desc>The PIN used by the device for authentication.</desc>
</info>
</prop>
</group>
</templates>
<component>
<group oor:name="Layout">
......@@ -655,6 +668,12 @@
<value>5000</value>
</prop>
</group>
<set oor:name="AuthorisedRemotes" oor:node-type="AuthorisedRemote">
<info>
<author>ajrhunt</author>
<desc>Contains a list of remote control devices that can connect without user confirmation.</desc>
</info>
</set>
</group>
<group oor:name="Snap">
<info>
......
......@@ -152,7 +152,6 @@ MY_FILES_main = \
$(MY_XCS)/Office/FormWizard.xcs \
$(MY_XCS)/Office/Histories.xcs \
$(MY_XCS)/Office/Impress.xcs \
$(MY_XCS)/Office/ImpressSdRemote.xcs \
$(MY_XCS)/Office/Java.xcs \
$(MY_XCS)/Office/Jobs.xcs \
$(MY_XCS)/Office/Labels.xcs \
......
......@@ -11,7 +11,7 @@
#include <vector>
#include "officecfg/Office/Common.hxx"
#include "officecfg/Office/ImpressSdRemote.hxx"
#include "officecfg/Office/Impress.hxx"
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/container/XNameContainer.hpp>
......@@ -125,8 +125,7 @@ void RemoteServer::execute()
while ( aLine.getLength() > 0 );
// Check if we already have this server.
Reference< XNameAccess > const xConfig = officecfg::Office
::ImpressSdRemote::Content::AuthorisedRemotes::get();
Reference< XNameAccess > const xConfig = officecfg::Office::Impress::Misc::AuthorisedRemotes::get();
Sequence< OUString > aNames = xConfig->getElementNames();
bool aFound = false;
for ( int i = 0; i < aNames.getLength(); i++ )
......@@ -233,8 +232,7 @@ sal_Bool RemoteServer::connectClient( ClientInfo* pClient, rtl::OUString aPin )
{
// Save in settings first
boost::shared_ptr< ConfigurationChanges > aChanges = ConfigurationChanges::create();
Reference< XNameContainer > const xConfig = officecfg::Office
::ImpressSdRemote::Content::AuthorisedRemotes::get( aChanges );
Reference< XNameContainer > const xConfig = officecfg::Office::Impress::Misc::AuthorisedRemotes::get( aChanges );
Reference<XSingleServiceFactory> xChildFactory (
xConfig, UNO_QUERY);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment