diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2006-06-02 11:26:54 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2006-06-02 11:26:54 +0000 |
commit | 4c032dbb44644fcf74aab256286f8c6cc618453c (patch) | |
tree | 14d5b868fd8e87ead11b74b0c72e3c5ec2d562ae /shell/source | |
parent | c37f491885ee2f0b254f49d49f51b449dd63b85d (diff) |
INTEGRATION: CWS kdesettings (1.1.2); FILE ADDED
2006/04/11 12:40:16 ebischoff 1.1.2.1: Issue #63557
Have OOo use KDE system-wide settings
Diffstat (limited to 'shell/source')
-rw-r--r-- | shell/source/backends/kdebe/kdevcllayer.hxx | 72 | ||||
-rw-r--r-- | shell/source/backends/kdebe/makefile.mk | 90 |
2 files changed, 162 insertions, 0 deletions
diff --git a/shell/source/backends/kdebe/kdevcllayer.hxx b/shell/source/backends/kdebe/kdevcllayer.hxx new file mode 100644 index 000000000000..1f63a93471f0 --- /dev/null +++ b/shell/source/backends/kdebe/kdevcllayer.hxx @@ -0,0 +1,72 @@ +#ifndef KDEVCLLAYER_HXX_ +#define KDEVCLLAYER_HXX_ + +#ifndef KDEBACKEND_HXX_ +#include "kdebackend.hxx" +#endif + +#ifndef _COM_SUN_STAR_UNO_XCOMPONENTCONTEXT_HPP_ +#include <com/sun/star/uno/XComponentContext.hpp> +#endif + +#ifndef _COM_SUN_STAR_CONFIGURATION_BACKEND_XLAYER_HPP_ +#include <com/sun/star/configuration/backend/XLayer.hpp> +#endif +#ifndef _COM_SUN_STAR_CONFIGURATION_BACKEND_BACKENDACCESSEXCEPTION_HPP_ +#include <com/sun/star/configuration/backend/BackendAccessException.hpp> +#endif +#ifndef _COM_SUN_STAR_CONFIGURATION_BACKEND_XLAYERCONTENTDESCIBER_HPP_ +#include <com/sun/star/configuration/backend/XLayerContentDescriber.hpp> +#endif + +#ifndef _COM_SUN_STAR_UTIL_XTIMESTAMPED_HPP_ +#include <com/sun/star/util/XTimeStamped.hpp> +#endif + +#ifndef _CPPUHELPER_IMPLBASE2_HXX_ +#include <cppuhelper/implbase2.hxx> +#endif + +namespace css = com::sun::star ; +namespace uno = css::uno ; +namespace lang = css::lang ; +namespace backend = css::configuration::backend ; +namespace util = css::util ; + +/** + Implementation of the XLayer interface for the KDE values mapped into + the org.openoffice.VCL configuration component. + */ +class KDEVCLLayer : public cppu::WeakImplHelper2<backend::XLayer, util::XTimeStamped> +{ +public : + /** + Constructor given the component context + + @param xContext The component context + */ + + KDEVCLLayer(const uno::Reference<uno::XComponentContext>& xContext); + + // XLayer + virtual void SAL_CALL readData( + const uno::Reference<backend::XLayerHandler>& xHandler) + throw ( backend::MalformedDataException, + lang::NullPointerException, + lang::WrappedTargetException, + uno::RuntimeException) ; + + // XTimeStamped + virtual rtl::OUString SAL_CALL getTimestamp(void) + throw (uno::RuntimeException); + + protected: + + /** Destructor */ + ~KDEVCLLayer(void) {} + + private : + uno::Reference<backend::XLayerContentDescriber> m_xLayerContentDescriber ; + } ; + +#endif // KDEVCLLAYER diff --git a/shell/source/backends/kdebe/makefile.mk b/shell/source/backends/kdebe/makefile.mk new file mode 100644 index 000000000000..4cd5e9051b07 --- /dev/null +++ b/shell/source/backends/kdebe/makefile.mk @@ -0,0 +1,90 @@ +#************************************************************************* +# +# OpenOffice.org - a multi-platform office productivity suite +# +# $RCSfile: makefile.mk,v $ +# +# $Revision: 1.2 $ +# +# last change: $Author: vg $ $Date: 2006-06-02 12:26:54 $ +# +# The Contents of this file are made available subject to +# the terms of GNU Lesser General Public License Version 2.1. +# +# +# GNU Lesser General Public License Version 2.1 +# ============================================= +# Copyright 2005 by Sun Microsystems, Inc. +# 901 San Antonio Road, Palo Alto, CA 94303, USA +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License version 2.1, as published by the Free Software Foundation. +# +# This library 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 for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, +# MA 02111-1307 USA +# +#************************************************************************* +PRJ=..$/..$/.. + +PRJNAME=shell +TARGET=kdebe + +LIBTARGET=NO +ENABLE_EXCEPTIONS=TRUE + +COMP1TYPELIST=$(TARGET) +COMPRDB=$(SOLARBINDIR)$/types.rdb +UNOUCROUT=$(OUT)$/inc$/$(TARGET) +INCPRE=$(UNOUCROUT) + +# --- Settings --- + +.INCLUDE : settings.mk + +UNIXTEXT=$(MISC)/$(TARGET)1-ucd.txt + +# no "lib" prefix +DLLPRE = + +.IF "$(ENABLE_KDE)" == "TRUE" + +CFLAGS+=$(KDE_CFLAGS) + +# --- Files --- + +SLOFILES=\ + $(SLO)$/kdebackend.obj \ + $(SLO)$/kdecommonlayer.obj \ + $(SLO)$/kdeinetlayer.obj \ + $(SLO)$/kdevcllayer.obj \ + $(SLO)$/kdebecdef.obj + +SHL1NOCHECK=TRUE +SHL1TARGET=$(TARGET)1.uno +SHL1OBJS=$(SLOFILES) +SHL1DEF=$(MISC)$/$(SHL1TARGET).def + +SHL1IMPLIB=i$(SHL1TARGET) +SHL1STDLIBS= \ + $(CPPUHELPERLIB) \ + $(CPPULIB) \ + $(SALLIB) \ + $(KDE_LIBS) -lkio + +SHL1VERSIONMAP=exports.map +SHL1DEF=$(MISC)$/$(SHL1TARGET).def +DEF1NAME=$(SHL1TARGET) + +.ENDIF # "$(ENABLE_KDE)" == "TRUE" + +# --- Targets --- + +.INCLUDE : target.mk |