Kaydet (Commit) 6eb58650 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Add a foodllapi.h file here too and use it

Factor out the DLLPUBLIC dance from bitmapdevice.hxx to a separate
headers as is the normal convention.

Decorate the new debugDump() with BASEBMP_DLLPUBLIC in the header.
Otherwise the definition (which uses SAL_DLLPUBLIC_EXPORT) doesn't
match the declaration.
üst 1d32ee9a
...@@ -28,6 +28,11 @@ ...@@ -28,6 +28,11 @@
$(eval $(call gb_CppunitTest_CppunitTest,basebmp_test)) $(eval $(call gb_CppunitTest_CppunitTest,basebmp_test))
$(eval $(call gb_CppunitTest_set_include,basebmp_test,\
-I$(realpath $(SRCDIR)/basebmp/inc/) \
$$(INCLUDE) \
))
$(eval $(call gb_CppunitTest_add_exception_objects,basebmp_test, \ $(eval $(call gb_CppunitTest_add_exception_objects,basebmp_test, \
basebmp/test/basictest \ basebmp/test/basictest \
basebmp/test/bmpmasktest \ basebmp/test/bmpmasktest \
......
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* 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.
*
************************************************************************/
#ifndef INCLUDED_BASEBMP_BASEBMPDLLAPI_H
#define INCLUDED_BASEBMP_BASEBMPDLLAPI_H
#if defined BASEBMP_DLLIMPLEMENTATION
#define BASEBMP_DLLPUBLIC SAL_DLLPUBLIC_EXPORT
#else
#define BASEBMP_DLLPUBLIC SAL_DLLPUBLIC_IMPORT
#endif
#define BASEBMP_DLLPRIVATE SAL_DLLPRIVATE
#endif /* INCLUDED_BASEBMP_BASEBMPDLLAPI_H */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include <sal/types.h> #include <sal/types.h>
#include <basebmp/drawmodes.hxx> #include <basebmp/drawmodes.hxx>
#include <basebmp/basebmpdllapi.h>
#include <boost/scoped_ptr.hpp> #include <boost/scoped_ptr.hpp>
#include <boost/shared_ptr.hpp> #include <boost/shared_ptr.hpp>
...@@ -39,13 +40,6 @@ ...@@ -39,13 +40,6 @@
#include <boost/noncopyable.hpp> #include <boost/noncopyable.hpp>
#include <vector> #include <vector>
#if defined BASEBMP_DLLIMPLEMENTATION
#define BASEBMP_DLLPUBLIC SAL_DLLPUBLIC_EXPORT
#else
#define BASEBMP_DLLPUBLIC SAL_DLLPUBLIC_IMPORT
#endif
#define BASEBMP_DLLPRIVATE SAL_DLLPRIVATE
namespace basegfx namespace basegfx
{ {
class B2IPoint; class B2IPoint;
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include <iostream> #include <iostream>
#include <boost/shared_ptr.hpp> #include <boost/shared_ptr.hpp>
#include <basebmp/basebmpdllapi.h>
namespace basebmp namespace basebmp
{ {
...@@ -44,8 +45,8 @@ namespace basebmp ...@@ -44,8 +45,8 @@ namespace basebmp
@param rOutputStream @param rOutputStream
Stream to write output to. Stream to write output to.
*/ */
void debugDump( const boost::shared_ptr< BitmapDevice >& rDevice, void BASEBMP_DLLPUBLIC debugDump( const boost::shared_ptr< BitmapDevice >& rDevice,
::std::ostream& rOutputStream ); ::std::ostream& rOutputStream );
} }
#endif /* INCLUDED_BASEBMP_DEBUG_HXX */ #endif /* INCLUDED_BASEBMP_DEBUG_HXX */
......
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