From e6b4345c7f4026cb9b3e8dee6ecc84b3531e1950 Mon Sep 17 00:00:00 2001 From: Mathias Bauer Date: Thu, 8 Oct 2009 12:20:11 +0200 Subject: #i103496#: split svtools in two libs, depending on whether the code needs vcl or not --- svl/unx/inc/convert.hxx | 66 ++++++++ svl/unx/source/svdde/ddedummy.cxx | 341 ++++++++++++++++++++++++++++++++++++++ svl/unx/source/svdde/makefile.mk | 50 ++++++ 3 files changed, 457 insertions(+) create mode 100644 svl/unx/inc/convert.hxx create mode 100644 svl/unx/source/svdde/ddedummy.cxx create mode 100644 svl/unx/source/svdde/makefile.mk (limited to 'svl/unx') diff --git a/svl/unx/inc/convert.hxx b/svl/unx/inc/convert.hxx new file mode 100644 index 000000000000..e91ee4ed2791 --- /dev/null +++ b/svl/unx/inc/convert.hxx @@ -0,0 +1,66 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2008 by Sun Microsystems, Inc. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: convert.hxx,v $ + * $Revision: 1.3 $ + * + * 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 + * + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef _CONVERT_HXX +#define _CONVERT_HXX + +/* +#define _SWAPSHORT(x) ((((x) & 0xFF00)>>8) | (((x) & 0x00FF)<<8)) +#define _SWAPLONG(x) ((((x) & 0xFF000000)>>24) | (((x) & 0x00FF0000)>>8) | \ + (((x) & 0x0000FF00)<<8) | (((x) & 0x000000FF)<<24)) +*/ +class Convert +{ +public: + static void Swap( long & nValue ) + { nValue = SWAPLONG( nValue ); } + static void Swap( ULONG & nValue ) + { nValue = SWAPLONG( nValue ); } + static void Swap( short & nValue ) + { nValue = SWAPSHORT( nValue ); } + static void Swap( USHORT & nValue ) + { nValue = SWAPSHORT( nValue ); } + static void Swap( Point & aPtr ) + { Swap( aPtr.X() ); Swap( aPtr.Y() ); } + static void Swap( Size & aSize ) + { Swap( aSize.Width() ); Swap( aSize.Height() ); } + static void Swap( Rectangle & rRect ) + { Swap( rRect.Top() ); Swap( rRect.Bottom() ); + Swap( rRect.Left() ); Swap( rRect.Right() ); } +/* + static USHORT AnsiFloatSize() const { return 6; } + static float AnsiToFloat( void * pAnsiFloat ) + { return 0; } + static USHORT AnsiDoubleSize() const { return 12; } + static double AnsiToDouble( void * pAnsiDouble ) + { return 0; } +*/ +}; + +#endif // _CONVERT_HXX diff --git a/svl/unx/source/svdde/ddedummy.cxx b/svl/unx/source/svdde/ddedummy.cxx new file mode 100644 index 000000000000..6f627807bfd3 --- /dev/null +++ b/svl/unx/source/svdde/ddedummy.cxx @@ -0,0 +1,341 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2008 by Sun Microsystems, Inc. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: ddedummy.cxx,v $ + * $Revision: 1.7 $ + * + * 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 + * + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +// MARKER(update_precomp.py): autogen include statement, do not remove +#include "precompiled_svtools.hxx" +#include +#include + +DdeData::DdeData() +{ +} + +DdeData::DdeData( const String& ) +{ +} + +DdeData::DdeData( const DdeData& ) +{ +} + +DdeData::DdeData( const void*, long, ULONG) +{ +} + +DdeData::~DdeData( void ) +{ +} + +void DdeData::SetFormat( ULONG ) +{ +} + +ULONG DdeData::GetFormat() const +{ + return 0L; +} + +DdeData& DdeData::operator = ( const DdeData& ) +{ + return *this; +} + +DdeData::operator long() const +{ + return 0L; +} + +DdeData::operator const void*() const +{ + return NULL; +} + +long DdeConnection::GetError() +{ + return 0L; +} + +DdeConnection::DdeConnection( const String&, const String& ) +{ +} + +DdeConnection::~DdeConnection( void ) +{ +} + +const String& DdeConnection::GetServiceName() +{ + return String::EmptyString(); +} + +const String& DdeConnection::GetTopicName() +{ + return String::EmptyString(); +} + +DdeTransaction::DdeTransaction( DdeConnection& rConnection, const String&, long ) : + rDde( rConnection ) +{ +} + +DdeTransaction::DdeTransaction( const DdeTransaction& rTransaction ) : + rDde( rTransaction.rDde ) +{ +} + +void DdeTransaction::Execute(void) +{ +} + +void DdeTransaction::Done( BOOL ) +{ +} + +void DdeTransaction::Data( const DdeData* ) +{ +} + +DdeTransaction::~DdeTransaction(void) +{ +} + +DdeRequest::DdeRequest(DdeConnection& rConnection, const String& rString, long lLong ) : + DdeTransaction( rConnection, rString, lLong ) +{ +} + +DdeExecute::DdeExecute( DdeConnection& rConnection, const String& rString, long lLong ) : + DdeTransaction( rConnection, rString, lLong ) +{ +} + +DdePoke::DdePoke( DdeConnection& rConnection, const String& rString, const DdeData&, long lLong ) : + DdeTransaction( rConnection, rString, lLong ) +{ +} + + +DdeTopic::DdeTopic( const String& ) +{ +} + +DdeTopic::~DdeTopic() +{ +} + +void DdeTopic::Connect (long ) +{ +} + +void DdeTopic::Disconnect( long ) +{ +} + +void DdeTopic::InsertItem( DdeItem* ) +{ +} + +DdeItem* DdeTopic::AddItem( const DdeItem& rDdeItem ) +{ + return (DdeItem*) &rDdeItem; +} + +void DdeTopic::RemoveItem( const DdeItem& ) +{ +} + +DdeData* DdeTopic::Get( ULONG ) +{ + return NULL; +} + +BOOL DdeTopic::MakeItem( const String& ) +{ + return FALSE; +} + +BOOL DdeTopic::StartAdviseLoop() +{ + return FALSE; +} + +BOOL DdeTopic::StopAdviseLoop() +{ + return FALSE; +} + +BOOL DdeTopic::Execute( const String* ) +{ + return FALSE; +} + +BOOL DdeTopic::Put( const DdeData* ) +{ + return FALSE; +} + +const String& DdeTopic::GetName() const +{ + return String::EmptyString(); +} + +DdeService::DdeService( const String& ) +{ + nStatus = 0; +} + +String DdeService::Topics() { + return String(); +} + +String DdeService::Formats() { + return String(); +} + +String DdeService::SysItems() { + return String(); +} + +String DdeService::Status() { + return String(); +} + +String DdeService::SysTopicGet(const String& rString) { + return rString; +} + +BOOL DdeService::SysTopicExecute(const String*) { + return FALSE; +} + +DdeService::~DdeService() +{ +} + +BOOL DdeService::IsBusy() +{ + return FALSE; +} + +String DdeService::GetHelp() +{ + return String::EmptyString(); +} + +void DdeService::AddFormat( ULONG ) +{ +} + +void DdeService::AddTopic( const DdeTopic& ) +{ +} + +void DdeService::RemoveTopic( const DdeTopic& ) +{ +} + +BOOL DdeService::MakeTopic( const String& ) +{ + return FALSE; +} + +const String& DdeService::GetName() const +{ + return String::EmptyString(); +} + +namespace +{ + struct theDdeServices + : public rtl::Static< DdeServices, theDdeServices > {}; +} + +DdeServices& DdeService::GetServices() +{ + return theDdeServices::get(); +} + +DdeItem::DdeItem( const String& ) +{ +} + +DdeItem::DdeItem( const DdeItem& ) +{ +} + +DdeItem::~DdeItem() +{ +} + +void DdeItem::NotifyClient() +{ +} + +DdeGetPutItem::DdeGetPutItem( const String& rStr ) : +DdeItem( rStr ) +{ +} + +DdeGetPutItem::DdeGetPutItem( const DdeItem& rItem ) : +DdeItem( rItem ) +{ +} + +DdeData* DdeGetPutItem::Get( ULONG ) +{ + return NULL; +} + +BOOL DdeGetPutItem::Put( const DdeData* ) +{ + return FALSE; +} + +void DdeGetPutItem::AdviseLoop( BOOL ) +{ +} + +DdeLink::DdeLink( DdeConnection& rConnection, const String& rString, long l ) : +DdeTransaction( rConnection, rString, l ) +{ +} + +DdeLink::~DdeLink() +{ +} + +void DdeLink::Notify() +{ +} + +DdeHotLink::DdeHotLink( DdeConnection& rConnection, const String& rString, long l ) : +DdeLink( rConnection, rString, l ) +{ +} diff --git a/svl/unx/source/svdde/makefile.mk b/svl/unx/source/svdde/makefile.mk new file mode 100644 index 000000000000..d0203fd6378b --- /dev/null +++ b/svl/unx/source/svdde/makefile.mk @@ -0,0 +1,50 @@ +#************************************************************************* +# +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. +# +# Copyright 2008 by Sun Microsystems, Inc. +# +# OpenOffice.org - a multi-platform office productivity suite +# +# $RCSfile: makefile.mk,v $ +# +# $Revision: 1.7 $ +# +# 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 +# +# for a copy of the LGPLv3 License. +# +#************************************************************************* + +PRJ=..$/..$/.. + +PRJNAME=svtools +TARGET=svdde + +# --- Settings ----------------------------------------------------- + +.INCLUDE : settings.mk +.INCLUDE : $(PRJ)$/util$/svt.pmk + +# --- Files -------------------------------------------------------- + +SLOFILES = \ + $(SLO)$/ddedummy.obj + +# --- Tagets ------------------------------------------------------- + +.INCLUDE : target.mk + -- cgit