diff options
author | Eike Rathke <erack@redhat.com> | 2015-10-26 20:04:27 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-10-26 20:08:10 +0100 |
commit | cc2ffcad79916ddfb903a60cbc4da946fc272d68 (patch) | |
tree | 7b35087f4f638c0126842b07d089c9b889d2781f | |
parent | f5be64cde53680bbff3ffa4d3b630f4fd2b6bca0 (diff) |
reintroduce TBBase::indent_printf()
This partly reverts a90c6eb99c8c2167c4b1ec75a21a30a344bfea43 which
erroneously removed the method as unused because it is used only with
OSL_DEBUG_LEVEL > 2
Change-Id: I6fa52775b6a013c0086ba9d7ae21720a9ab8aa01
-rw-r--r-- | filter/source/msfilter/mstoolbar.cxx | 12 | ||||
-rw-r--r-- | include/filter/msfilter/mstoolbar.hxx | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/filter/source/msfilter/mstoolbar.cxx b/filter/source/msfilter/mstoolbar.cxx index 6baa8cc4556e..b856b0a765a5 100644 --- a/filter/source/msfilter/mstoolbar.cxx +++ b/filter/source/msfilter/mstoolbar.cxx @@ -161,7 +161,19 @@ CustomToolBarImportHelper::createMenu( const OUString& rName, const uno::Referen return bRes; } +void +TBBase::indent_printf( FILE* fp, const char* format, ... ) +{ + va_list ap; + va_start ( ap, format ); + // indent nIndent spaces + for ( int i=0; i<nIndent; ++i) + fprintf(fp," "); + // append the rest of the message + vfprintf( fp, format, ap ); + va_end( ap ); +} TBCHeader::TBCHeader() : bSignature(0x3) diff --git a/include/filter/msfilter/mstoolbar.hxx b/include/filter/msfilter/mstoolbar.hxx index bfada573c325..205d019bca3c 100644 --- a/include/filter/msfilter/mstoolbar.hxx +++ b/include/filter/msfilter/mstoolbar.hxx @@ -70,6 +70,7 @@ class MSFILTER_DLLPUBLIC TBBase friend class Indent; static int nIndent; // num spaces to indent before printing protected: + static void indent_printf(FILE* fp, const char* format, ... ); sal_uInt32 nOffSet; // usually for debug we can store the offset in the stream to this record public: TBBase() : nOffSet( 0 ) {} |