summaryrefslogtreecommitdiff
path: root/framework/inc/macros
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2013-09-09 00:27:25 +0300
committerTor Lillqvist <tml@collabora.com>2013-09-09 00:29:23 +0300
commit1817936b282af280b7536ba1f925c58b56e1fbd4 (patch)
treed80f06e848529feb2310304fc9f28927dd423bbf /framework/inc/macros
parent49e9145d71503ba0002e70372677604e5cd03130 (diff)
Bin unused remains of framework's own "debug framework"
Change-Id: I71937debf674ff11173d7d8fa5aa43dc12234ce6
Diffstat (limited to 'framework/inc/macros')
-rw-r--r--framework/inc/macros/debug.hxx53
-rw-r--r--framework/inc/macros/debug/filterdbg.hxx114
-rw-r--r--framework/inc/macros/debug/plugin.hxx183
-rw-r--r--framework/inc/macros/registration.hxx1
4 files changed, 0 insertions, 351 deletions
diff --git a/framework/inc/macros/debug.hxx b/framework/inc/macros/debug.hxx
deleted file mode 100644
index f4567187adcc..000000000000
--- a/framework/inc/macros/debug.hxx
+++ /dev/null
@@ -1,53 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef __FRAMEWORK_MACROS_DEBUG_HXX_
-#define __FRAMEWORK_MACROS_DEBUG_HXX_
-
-//*****************************************************************************************************************
-// Disable all feature of this file in produkt version!
-// But enable normal assertion handling (as messagebox) in normal debug version.
-// User can overwrite these adjustment with his own values! We will do it only if nothing is set.
-//*****************************************************************************************************************
-
-//-----------------------------------------------------------------------------------------------------------------
-// => "personal debug code"
-#if OSL_DEBUG_LEVEL > 1
-
-//-----------------------------------------------------------------------------------------------------------------
-// => "non product"
-// NOTE
-#elif OSL_DEBUG_LEVEL > 0
-
-//-----------------------------------------------------------------------------------------------------------------
-// => "product" (OSL_DEBUG_LEVEL == 0)
-#else
-
- #undef ENABLE_FILTERDBG
-
-#endif
-
-//*****************************************************************************************************************
-// special macros to debug our filter cache!
-//*****************************************************************************************************************
-#include <macros/debug/filterdbg.hxx>
-
-#endif // #ifndef __FRAMEWORK_MACROS_DEBUG_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/framework/inc/macros/debug/filterdbg.hxx b/framework/inc/macros/debug/filterdbg.hxx
deleted file mode 100644
index 064cefca1ace..000000000000
--- a/framework/inc/macros/debug/filterdbg.hxx
+++ /dev/null
@@ -1,114 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef __FRAMEWORK_MACROS_DEBUG_FILTERDBG_HXX_
-#define __FRAMEWORK_MACROS_DEBUG_FILTERDBG_HXX_
-
-//*************************************************************************************************************
-// special macros for time measures
-// 1) LOGFILE_FILTERDBG used it to define log file for this operations (default will be set automaticly)
-// 4) LOG_FILTERDBG write debug info to log file
-//*************************************************************************************************************
-
-#ifdef ENABLE_FILTERDBG
-
- #include <rtl/strbuf.hxx>
-
- /*_____________________________________________________________________________________________________________
- LOGFILE_FILTERDBG
-
- For follow macros we need a special log file. If user forget to specify anyone, we must do it for him!
- _____________________________________________________________________________________________________________*/
-
- #ifndef LOGFILE_FILTERDBG
- #define LOGFILE_FILTERDBG "filterdbg.log"
- #endif
-
- /*_____________________________________________________________________________________________________________
- LOG_FILTERDBG( SOPERATION, SMESSAGE )
-
- Write special debug info to the log file.
- _____________________________________________________________________________________________________________*/
-
- #define LOG_FILTERDBG( SOPERATION, SMESSAGE ) \
- { \
- OStringBuffer _sBuffer( 256 ); \
- _sBuffer.append( SOPERATION ); \
- _sBuffer.append( "\t" ); \
- _sBuffer.append( SMESSAGE ); \
- _sBuffer.append( "\n" ); \
- WRITE_LOGFILE( LOGFILE_FILTERDBG, _sBuffer.makeStringAndClear().getStr() ) \
- }
-
- /*_____________________________________________________________________________________________________________
- LOG_FILTERDBG_1_PARAM( SOPERATION, SPARAM, SMESSAGE )
-
- Write special debug info into the log file and mark SNAME as special parameter before SMESSAGE is printed.
- _____________________________________________________________________________________________________________*/
-
- #define LOG_FILTERDBG_1_PARAM( SOPERATION, SPARAM, SMESSAGE ) \
- { \
- OStringBuffer _sBuffer( 256 ); \
- _sBuffer.append( SOPERATION ); \
- _sBuffer.append( "\t\"" ); \
- _sBuffer.append( SPARAM ); \
- _sBuffer.append( "\" " ); \
- _sBuffer.append( SMESSAGE ); \
- _sBuffer.append( "\n" ); \
- WRITE_LOGFILE( LOGFILE_FILTERDBG, _sBuffer.makeStringAndClear().getStr() ) \
- }
-
- /*_____________________________________________________________________________________________________________
- LOG_COND_FILTERDBG( CONDITION, SOPERATION, SMESSAGE )
-
- Write special debug info to the log file, if given condition returns true.
- _____________________________________________________________________________________________________________*/
-
- #define LOG_COND_FILTERDBG( CONDITION, SOPERATION, SMESSAGE ) \
- if (CONDITION) \
- LOG_FILTERDBG( SOPERATION, SMESSAGE )
-
- /*_____________________________________________________________________________________________________________
- LOG_COND_FILTERDBG_1_PARAM( CONDITION, SOPERATION, SPARAM, SMESSAGE )
-
- Write special debug info into the log file and mark SNAME as special parameter before SMESSAGE is printed.
- But it will be done only, if CONDITION returns true.
- _____________________________________________________________________________________________________________*/
-
- #define LOG_COND_FILTERDBG_1_PARAM( CONDITION, SOPERATION, SPARAM, SMESSAGE ) \
- if (CONDITION) \
- LOG_FILTERDBG_1_PARAM( SOPERATION, SPARAM, SMESSAGE )
-
-#else // #ifdef ENABLE_FILTERDBG
-
- /*_____________________________________________________________________________________________________________
- If right testmode is'nt set - implements these macros empty!
- _____________________________________________________________________________________________________________*/
-
- #undef LOGFILE_FILTERDBG
- #define LOG_FILTERDBG( SOPERATION, SMESSAGE )
- #define LOG_COND_FILTERDBG( CONDITION, SOPERATION, SMESSAGE )
- #define LOG_FILTERDBG_1_PARAM( SOPERATION, SPARAM, SMESSAGE )
- #define LOG_COND_FILTERDBG_1_PARAM( CONDITION, SOPERATION, SPARAM, SMESSAGE )
-
-#endif // #ifdef ENABLE_FILTERDBG
-
-#endif // #ifndef __FRAMEWORK_MACROS_DEBUG_FILTERDBG_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/framework/inc/macros/debug/plugin.hxx b/framework/inc/macros/debug/plugin.hxx
deleted file mode 100644
index 250d92d56bcb..000000000000
--- a/framework/inc/macros/debug/plugin.hxx
+++ /dev/null
@@ -1,183 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef __FRAMEWORK_MACROS_DEBUG_PLUGIN_HXX_
-#define __FRAMEWORK_MACROS_DEBUG_PLUGIN_HXX_
-
-//*****************************************************************************************************************
-// special macros to debug asynchronous methods of plugin frame
-//*****************************************************************************************************************
-
-#ifdef ENABLE_PLUGINDEBUG
-
- #include <rtl/strbuf.hxx>
- #include <rtl/string.hxx>
-
- /*_____________________________________________________________________________________________________________
- LOGFILE_PLUGIN
-
- For follow macros we need a special log file. If user forget to specify anyone, we must do it for him!
- _____________________________________________________________________________________________________________*/
-
- #ifndef LOGFILE_PLUGIN
- #define LOGFILE_PLUGIN \
- "plugin.log"
- #endif
-
- /*_____________________________________________________________________________________________________________
- LOG_URLSEND( SFRAMENAME, SSENDMODE, SINTERNALURL, SEXTERNALURL )
-
- Our plugin forward special url's to plugin dll, browser and webserver.
- We convert internal url's to an external notation.
- With this macro you can log some parameter of this operation.
- _____________________________________________________________________________________________________________*/
-
- #define LOG_URLSEND( SFRAMENAME, SSENDMODE, SINTERNALURL, SEXTERNALURL ) \
- /* Use new scope to declare local private variables! */ \
- { \
- OStringBuffer sBuffer(1024); \
- sBuffer.append( "PlugInFrame [ \"" ); \
- sBuffer.append( SFRAMENAME ); \
- sBuffer.append( "\" ] send " ); \
- sBuffer.append( SSENDMODE ); \
- sBuffer.append( "( internalURL=\"" ); \
- sBuffer.append( U2B( SINTERNALURL ) ); \
- sBuffer.append( "\", externalURL=\""); \
- sBuffer.append( U2B( SEXTERNALURL ) ); \
- sBuffer.append( "\" ) to browser.\n"); \
- WRITE_LOGFILE( LOGFILE_PLUGIN, sBuffer.makeStringAndClear() ) \
- }
-
- /*_____________________________________________________________________________________________________________
- LOG_URLRECEIVE( SFRAMENAME, SRECEIVEMODE, SEXTERNALURL, SINTERNALURL )
-
- A plugin frame can get a url request in two different modes.
- 1) newURL()
- 2) newStream()
- We convert external url's to an internal notation.
- With this macro you can log some parameter of this operations.
- _____________________________________________________________________________________________________________*/
-
- #define LOG_URLRECEIVE( SFRAMENAME, SRECEIVEMODE, SEXTERNALURL, SINTERNALURL ) \
- /* Use new scope to declare local private variables! */ \
- { \
- OStringBuffer sBuffer(1024); \
- sBuffer.append( "PlugInFrame [ \"" ); \
- sBuffer.append( U2B( SFRAMENAME ) ); \
- sBuffer.append( "\" ] receive " ); \
- sBuffer.append( SRECEIVEMODE ); \
- sBuffer.append( "( externalURL=\"" ); \
- sBuffer.append( U2B( SEXTERNALURL ) ); \
- sBuffer.append( "\", internalURL=\"" ); \
- sBuffer.append( U2B( SINTERNALURL ) ); \
- sBuffer.append( "\" ) from browser.\n" ); \
- WRITE_LOGFILE( LOGFILE_PLUGIN, sBuffer.makeStringAndClear() ) \
- }
-
- /*_____________________________________________________________________________________________________________
- LOG_PARAMETER_NEWURL( SFRAMENAME, SMIMETYPE, SURL, AANY )
-
- Log information about parameter of a newURL() at a plugin frame.
- _____________________________________________________________________________________________________________*/
-
- #define LOG_PARAMETER_NEWURL( SFRAMENAME, SMIMETYPE, SURL, sFILTER, AANY ) \
- /* Use new scope to declare local private variables! */ \
- { \
- OStringBuffer sBuffer(1024); \
- sBuffer.append( "PlugInFrame [ \"" ); \
- sBuffer.append( U2B( SFRAMENAME ) ); \
- sBuffer.append( "\" ] called with newURL( \"" ); \
- sBuffer.append( U2B( SMIMETYPE ) ); \
- sBuffer.append( "\", \"" ); \
- sBuffer.append( U2B( SURL ) ); \
- sBuffer.append( "\", \"" ); \
- sBuffer.append( U2B( SFILTER ) ); \
- sBuffer.append( "\", " ); \
- if( AANY.hasValue() == sal_True ) \
- { \
- sBuffer.append( "filled Any )" ); \
- } \
- else \
- { \
- sBuffer.append( "empty Any )" ); \
- } \
- sBuffer.append( "\n" ); \
- WRITE_LOGFILE( LOGFILE_PLUGIN, sBuffer.makeStringAndClear() ) \
- }
-
- /*_____________________________________________________________________________________________________________
- LOG_PARAMETER_NEWSTREAM( SFRAMENAME, SMIMETYPE, SURL, ASTREAM, AANY )
-
- Log information about parameter of a newStream() at a plugin frame.
- _____________________________________________________________________________________________________________*/
-
- #define LOG_PARAMETER_NEWSTREAM( SFRAMENAME, SMIMETYPE, SURL, SFILTER, XSTREAM, AANY ) \
- /* Use new scope to declare local private variables! */ \
- { \
- OStringBuffer sBuffer(1024); \
- sBuffer.append( "PlugInFrame [ \"" ); \
- sBuffer.append( U2B( SFRAMENAME ) ); \
- sBuffer.append( "\" ] called with newStream( \""); \
- sBuffer.append( U2B( SMIMETYPE ) ); \
- sBuffer.append( "\", \"" ); \
- sBuffer.append( U2B( SURL ) ); \
- sBuffer.append( "\", \"" ); \
- sBuffer.append( U2B( SFILTER ) ); \
- sBuffer.append( "\", " ); \
- if( XSTREAM.is() == sal_True ) \
- { \
- sal_Int32 nBytes = XSTREAM->available(); \
- OString sInfo("Stream with "); \
- sInfo += OString::number(nBytes); \
- sInfo += " Bytes, "; \
- sBuffer.append( sInfo ); \
- } \
- else \
- { \
- sBuffer.append( "empty Stream, " ); \
- } \
- if( AANY.hasValue() == sal_True ) \
- { \
- sBuffer.append( "filled Any )" ); \
- } \
- else \
- { \
- sBuffer.append( "empty Any )" ); \
- } \
- sBuffer.append( "\n" ); \
- WRITE_LOGFILE( LOGFILE_PLUGIN, sBuffer.makeStringAndClear() ) \
- }
-
-#else // #ifdef ENABLE_PLUGINDEBUG
-
- /*_____________________________________________________________________________________________________________
- If right testmode is'nt set - implements these macro empty!
- _____________________________________________________________________________________________________________*/
-
- #undef LOGFILE_PLUGIN
- #define LOG_URLSEND( SFRAMENAME, SSENDMODE, SINTERNALURL, SEXTERNALURL )
- #define LOG_URLRECEIVE( SFRAMENAME, SRECEIVEMODE, SEXTERNALURL, SINTERNALURL )
- #define LOG_PARAMETER_NEWURL( SFRAMENAME, SMIMETYPE, SURL, SFILTER, AANY )
- #define LOG_PARAMETER_NEWSTREAM( SFRAMENAME, SMIMETYPE, SURL, SFILTER, XSTREAM, AANY )
-
-#endif // #ifdef ENABLE_PLUGINDEBUG
-
-#endif // #ifndef __FRAMEWORK_MACROS_DEBUG_PLUGIN_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/framework/inc/macros/registration.hxx b/framework/inc/macros/registration.hxx
index 78b1f24c9364..5ebf00d8bd34 100644
--- a/framework/inc/macros/registration.hxx
+++ b/framework/inc/macros/registration.hxx
@@ -20,7 +20,6 @@
#ifndef __FRAMEWORK_MACROS_REGISTRATION_HXX_
#define __FRAMEWORK_MACROS_REGISTRATION_HXX_
-#include <macros/debug.hxx>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>