Kaydet (Commit) 0909f448 authored tarafından David Tardon's avatar David Tardon

convert presenter console to passive registration

üst abd74a8e
......@@ -494,7 +494,6 @@ $(eval $(call gb_Helper_register_libraries,UNOLIBS_OOO, \
nullcanvas \
OGLTrans \
passwordcontainer \
PresenterScreen \
simplecanvas \
slideshow \
stringresource \
......@@ -559,6 +558,7 @@ $(eval $(call gb_Helper_register_libraries,UNOVERLIBS, \
$(eval $(call gb_Helper_register_libraries,EXTENSIONLIBS, \
pdfimport \
PresenterScreen \
SunPresentationMinimizer \
))
......
......@@ -35,6 +35,8 @@ $(eval $(call gb_Extension_add_files,presenter-screen,,\
$(call gb_Library_get_target,PresenterScreen) \
))
$(eval $(call gb_Extension_add_file,presenter-screen,components.rdb,$(call gb_Rdb_get_target,presenter)))
$(eval $(call gb_Extension_add_files,presenter-screen,bitmaps,\
$(SRCDIR)/icon-themes/galaxy/desktop/res/extension_32.png \
$(SRCDIR)/sdext/source/presenter/bitmaps/Background.png \
......
......@@ -27,6 +27,8 @@
$(eval $(call gb_Library_Library,PresenterScreen))
$(eval $(call gb_Library_set_componentfile,PresenterScreen,sdext/source/presenter/presenter))
$(eval $(call gb_Library_use_api,PresenterScreen,\
offapi \
udkapi \
......
......@@ -60,6 +60,7 @@ $(eval $(call gb_Module_add_targets,sdext,\
CustomTarget_presenter \
Extension_presenter \
Library_presenter \
Rdb_presenter \
Zip_presenter \
))
endif
......
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
# Version: MPL 1.1 / GPLv3+ / LGPLv3+
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License or as specified alternatively below. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# Major Contributor(s):
# Copyright (C) 2012 Red Hat, Inc., David Tardon <dtardon@redhat.com>
# (initial developer)
#
# All Rights Reserved.
#
# For minor contributions see the git repository.
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 3 or later (the "GPLv3+"), or
# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
# instead of those above.
$(eval $(call gb_Rdb_Rdb,presenter))
$(eval $(call gb_Rdb_add_components,presenter,\
sdext/source/presenter/presenter \
))
# vim:set shiftwidth=4 softtabstop=4 expandtab:
......@@ -42,42 +42,6 @@ using namespace ::com::sun::star::registry;
extern "C"
{
SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL component_writeInfo(
SAL_UNUSED_PARAMETER void* /*pServiceManager*/, void* pRegistryKey )
{
if (pRegistryKey)
{
try
{
Reference< XRegistryKey > xNewKey;
sal_Int32 nPos;
xNewKey = reinterpret_cast< XRegistryKey * >( pRegistryKey )->createKey( PPPOptimizer_getImplementationName() );
xNewKey = xNewKey->createKey( OUString(RTL_CONSTASCII_USTRINGPARAM("/UNO/SERVICES")) );
const Sequence< OUString > & rSNL1 = PPPOptimizer_getSupportedServiceNames();
const OUString * pArray1 = rSNL1.getConstArray();
for ( nPos = rSNL1.getLength(); nPos--; )
xNewKey->createKey( pArray1[nPos] );
xNewKey = reinterpret_cast< XRegistryKey * >( pRegistryKey )->createKey( PPPOptimizerDialog_getImplementationName() );
xNewKey = xNewKey->createKey( OUString(RTL_CONSTASCII_USTRINGPARAM("/UNO/SERVICES")) );
const Sequence< OUString > & rSNL2 = PPPOptimizerDialog_getSupportedServiceNames();
const OUString * pArray2 = rSNL2.getConstArray();
for ( nPos = rSNL2.getLength(); nPos--; )
xNewKey->createKey( pArray2[nPos] );
return sal_True;
}
catch (InvalidRegistryException &)
{
OSL_FAIL( "### InvalidRegistryException!" );
}
}
return sal_False;
}
// -------------------------------------------------------------------------
SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory(
const sal_Char * pImplName, void * pServiceManager,
SAL_UNUSED_PARAMETER void * /*pRegistryKey*/ )
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE manifest:manifest PUBLIC "-//OpenOffice.org//DTD Manifest 1.0//EN" "Manifest.dtd">
<manifest:manifest xmlns:manifest="http://openoffice.org/2001/manifest">
<manifest:file-entry manifest:media-type="application/vnd.sun.star.uno-component;type=native"
manifest:full-path="PresenterScreen.uno@SHARED_EXTENSION@"/>
<manifest:file-entry manifest:media-type="application/vnd.sun.star.uno-components;platform=@PLATFORM@"
manifest:full-path="components.rdb"/>
<manifest:file-entry manifest:media-type="application/vnd.sun.star.configuration-data"
manifest:full-path="registry/data/org/openoffice/Office/Jobs.xcu"/>
<manifest:file-entry manifest:media-type="application/vnd.sun.star.configuration-data"
......
<?xml version="1.0"?>
<component xmlns="http://openoffice.org/2010/uno-components"
loader="com.sun.star.loader.SharedLibrary">
<implementation name="com.sun.star.comp.Draw.framework.PresenterScreenJob">
<service name="com.sun.star.drawing.framework.PresenterScreenJob"/>
</implementation>
<implementation name="vnd.sun.star.sdext.presenter.PresenterProtocolHandler">
<service name="com.sun.star.frame.ProtocolHandler"/>
</implementation>
</component>
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