diff options
author | Jan Holesovsky <kendy@collabora.com> | 2014-04-14 15:39:46 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-04-14 15:46:22 +0200 |
commit | 893590f16e9ac10e61f2c1b37e27a11fe2205f42 (patch) | |
tree | da6aa7926c3178eb3a5100eb586b4a14d04bcc48 /sw/source/filter/ww8 | |
parent | 2188a7ac2eb37aee89f8f305bdf99db9b05b20bf (diff) |
The entry points for these are hidden behind OSL_DEBUG_LEVEL > 1 too.
Change-Id: I728e808ac897aa1be184fb4a8bbbf781eb816cf0
Diffstat (limited to 'sw/source/filter/ww8')
-rw-r--r-- | sw/source/filter/ww8/ww8par.cxx | 6 | ||||
-rw-r--r-- | sw/source/filter/ww8/ww8toolbar.cxx | 46 | ||||
-rw-r--r-- | sw/source/filter/ww8/ww8toolbar.hxx | 76 |
3 files changed, 101 insertions, 27 deletions
diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx index 0a8dc0434e73..aa3c81a8f625 100644 --- a/sw/source/filter/ww8/ww8par.cxx +++ b/sw/source/filter/ww8/ww8par.cxx @@ -442,7 +442,9 @@ public: Sttb(); virtual ~Sttb(); bool Read(SvStream &rS) SAL_OVERRIDE; - void Print( FILE* fp ) SAL_OVERRIDE; +#if OSL_DEBUG_LEVEL > 1 + virtual void Print( FILE* fp ) SAL_OVERRIDE; +#endif OUString getStringAtIndex( sal_uInt32 ); }; @@ -474,6 +476,7 @@ bool Sttb::Read( SvStream& rS ) return true; } +#if OSL_DEBUG_LEVEL > 1 void Sttb::Print( FILE* fp ) { fprintf( fp, "[ 0x%" SAL_PRIxUINT32 " ] Sttb - dump\n", nOffSet); @@ -486,6 +489,7 @@ void Sttb::Print( FILE* fp ) fprintf(fp," string dataItem[ %d(0x%x) ] has name %s\n", static_cast< int >( index ), static_cast< unsigned int >( index ), OUStringToOString( dataItems[ index ].data, RTL_TEXTENCODING_UTF8 ).getStr() ); } } +#endif OUString Sttb::getStringAtIndex( sal_uInt32 index ) diff --git a/sw/source/filter/ww8/ww8toolbar.cxx b/sw/source/filter/ww8/ww8toolbar.cxx index f4298dac1767..557fa782234b 100644 --- a/sw/source/filter/ww8/ww8toolbar.cxx +++ b/sw/source/filter/ww8/ww8toolbar.cxx @@ -176,6 +176,7 @@ SwTBC* SwCTBWrapper::GetTBCAtOffset( sal_uInt32 nStreamOffset ) return NULL; } +#if OSL_DEBUG_LEVEL > 1 void SwCTBWrapper::Print( FILE* fp ) { Indent a; @@ -215,6 +216,7 @@ void SwCTBWrapper::Print( FILE* fp ) it->Print(fp); } } +#endif bool SwCTBWrapper::ImportCustomToolBar( SfxObjectShell& rDocSh ) { @@ -277,6 +279,7 @@ bool Customization::Read( SvStream &rS) return true; } +#if OSL_DEBUG_LEVEL > 1 void Customization::Print( FILE* fp ) { Indent a; @@ -307,8 +310,8 @@ void Customization::Print( FILE* fp ) for ( sal_Int32 index = 0; index < ctbds; ++it,++index ) it->Print( fp ); } - } +#endif bool Customization::ImportMenu( SwCTBWrapper& rWrapper, CustomToolBarImportHelper& helper ) { @@ -452,6 +455,7 @@ bool TBDelta::Read(SvStream &rS) return true; } +#if OSL_DEBUG_LEVEL > 1 void TBDelta::Print( FILE* fp ) { // Like most of the debug output, it's raw and little ( no ) @@ -471,6 +475,7 @@ void TBDelta::Print( FILE* fp ) indent_printf( fp, " the menu toolbar drops the toolbar defined at index[%d] in the rCustomizations array of the CTBWRAPPER that contains this TBDelta\n", CustomizationIndex() ); } } +#endif SwCTB::SwCTB() : cbTBData( 0 ) ,iWCTBl( 0 ) @@ -520,6 +525,7 @@ bool SwCTB::Read( SvStream &rS) return true; } +#if OSL_DEBUG_LEVEL > 1 void SwCTB::Print( FILE* fp ) { @@ -546,6 +552,7 @@ SwCTB::Print( FILE* fp ) } } } +#endif bool SwCTB::ImportCustomToolBar( SwCTBWrapper& rWrapper, CustomToolBarImportHelper& helper ) { @@ -632,6 +639,7 @@ bool SwTBC::Read( SvStream &rS ) return true; } +#if OSL_DEBUG_LEVEL > 1 void SwTBC::Print( FILE* fp ) { Indent a; @@ -646,6 +654,7 @@ void SwTBC::Print( FILE* fp ) tbcd->Print(fp); } } +#endif bool SwTBC::ImportToolBarControl( SwCTBWrapper& rWrapper, const css::uno::Reference< css::container::XIndexContainer >& toolbarcontainer, CustomToolBarImportHelper& helper, bool bIsMenuBar ) @@ -771,6 +780,7 @@ Xst::Read( SvStream& rS ) return true; } +#if OSL_DEBUG_LEVEL > 1 void Xst::Print( FILE* fp ) { @@ -778,6 +788,7 @@ Xst::Print( FILE* fp ) indent_printf( fp, "[ 0x%x ] Xst -- dump\n", nOffSet ); indent_printf( fp, " %s", OUStringToOString( sString, RTL_TEXTENCODING_UTF8 ).getStr() ); } +#endif Tcg::Tcg() : nTcgVer( -1 ) { @@ -794,6 +805,7 @@ bool Tcg::Read(SvStream &rS) return tcg->Read( rS ); } +#if OSL_DEBUG_LEVEL > 1 void Tcg::Print( FILE* fp ) { Indent a(true); @@ -802,6 +814,7 @@ void Tcg::Print( FILE* fp ) if ( tcg.get() ) tcg->Print( fp ); } +#endif bool Tcg::ImportCustomToolBar( SfxObjectShell& rDocSh ) { @@ -904,6 +917,7 @@ bool Tcg255::Read(SvStream &rS) // Peek at } +#if OSL_DEBUG_LEVEL > 1 void Tcg255::Print( FILE* fp) { Indent a; @@ -919,6 +933,7 @@ void Tcg255::Print( FILE* fp) (*it)->Print(fp); } } +#endif Tcg255SubStruct::Tcg255SubStruct( bool bReadId ) : mbReadId( bReadId ), ch(0) { @@ -957,6 +972,7 @@ bool PlfMcd::Read(SvStream &rS) return true; } +#if OSL_DEBUG_LEVEL > 1 void PlfMcd::Print( FILE* fp ) { Indent a; @@ -968,8 +984,8 @@ void PlfMcd::Print( FILE* fp ) indent_printf(fp, "[%d] MCD\n", static_cast< int >( count ) ); rgmcd[ count ].Print( fp ); } - } +#endif PlfAcd::PlfAcd( bool bReadId ) : Tcg255SubStruct( bReadId ) ,iMac(0) @@ -1000,6 +1016,7 @@ bool PlfAcd::Read( SvStream &rS) return true; } +#if OSL_DEBUG_LEVEL > 1 void PlfAcd::Print( FILE* fp ) { Indent a; @@ -1011,8 +1028,8 @@ void PlfAcd::Print( FILE* fp ) indent_printf(fp, "[%d] ACD\n", static_cast< int >( count ) ); rgacd[ count ].Print( fp ); } - } +#endif PlfKme::PlfKme( bool bReadId ) : Tcg255SubStruct( bReadId ) ,iMac( 0 ) @@ -1043,6 +1060,7 @@ bool PlfKme::Read(SvStream &rS) return true; } +#if OSL_DEBUG_LEVEL > 1 void PlfKme::Print( FILE* fp ) { Indent a; @@ -1054,8 +1072,8 @@ void PlfKme::Print( FILE* fp ) indent_printf(fp, "[%d] Kme\n", static_cast< int >( count ) ); rgkme[ count ].Print( fp ); } - } +#endif TcgSttbf::TcgSttbf( bool bReadId ) : Tcg255SubStruct( bReadId ) { @@ -1069,12 +1087,14 @@ bool TcgSttbf::Read( SvStream &rS) return sttbf.Read( rS ); } +#if OSL_DEBUG_LEVEL > 1 void TcgSttbf::Print( FILE* fp ) { Indent a; indent_printf(fp,"[ 0x%x ] TcgSttbf - dump\n", nOffSet ); sttbf.Print( fp ); } +#endif TcgSttbfCore::TcgSttbfCore() : fExtend( 0 ) ,cData( 0 ) @@ -1106,6 +1126,7 @@ bool TcgSttbfCore::Read( SvStream& rS ) return true; } +#if OSL_DEBUG_LEVEL > 1 void TcgSttbfCore::Print( FILE* fp ) { Indent a; @@ -1119,8 +1140,8 @@ void TcgSttbfCore::Print( FILE* fp ) for ( sal_Int32 index = 0; index < cData; ++index ) indent_printf(fp," string dataItem[ %d(0x%x) ] has name %s and if referenced %d times.\n", static_cast< int >( index ), static_cast< unsigned int >( index ), OUStringToOString( dataItems[ index ].data, RTL_TEXTENCODING_UTF8 ).getStr(), dataItems[ index ].extraData ); } - } +#endif MacroNames::MacroNames( bool bReadId ) : Tcg255SubStruct( bReadId ) ,iMac( 0 ) @@ -1151,6 +1172,7 @@ bool MacroNames::Read( SvStream &rS) return true; } +#if OSL_DEBUG_LEVEL > 1 void MacroNames::Print( FILE* fp ) { Indent a; @@ -1162,8 +1184,8 @@ void MacroNames::Print( FILE* fp ) indent_printf(fp, "[%d] MacroName\n", static_cast<int>( count ) ); rgNames[ count ].Print( fp ); } - } +#endif MacroName::MacroName():ibst(0) { @@ -1177,6 +1199,7 @@ bool MacroName::Read(SvStream &rS) return xstz.Read( rS ); } +#if OSL_DEBUG_LEVEL > 1 void MacroName::Print( FILE* fp ) { Indent a; @@ -1184,6 +1207,7 @@ void MacroName::Print( FILE* fp ) indent_printf( fp," index - 0x%x has associated following record\n", ibst ); xstz.Print( fp ); } +#endif Xstz::Xstz():chTerm(0) { @@ -1202,6 +1226,7 @@ Xstz::Read(SvStream &rS) return true; } +#if OSL_DEBUG_LEVEL > 1 void Xstz::Print( FILE* fp ) { Indent a; @@ -1210,6 +1235,7 @@ void Xstz::Print( FILE* fp ) xst.Print( fp ); indent_printf(fp," chterm 0x%x ( should be zero )\n", chTerm); } +#endif Kme::Kme() : reserved1(0) ,reserved2(0) @@ -1233,9 +1259,10 @@ Kme::Read(SvStream &rS) return true; } +#if OSL_DEBUG_LEVEL > 1 void Kme::Print( FILE* fp ) { - Indent a; + Indent a; indent_printf( fp, "[ 0x%x ] Kme - dump\n", nOffSet ); indent_printf( fp, " reserved1 0x%x [expected 0x0 ]\n", reserved1 ); @@ -1245,6 +1272,7 @@ void Kme::Print( FILE* fp ) indent_printf( fp, " kt 0x%x \n", kt ); indent_printf( fp, " param 0x%x \n", static_cast< unsigned int >( param ) ); } +#endif Acd::Acd() : ibst( 0 ) , fciBasedOnABC( 0 ) @@ -1259,6 +1287,7 @@ bool Acd::Read(SvStream &rS) return true; } +#if OSL_DEBUG_LEVEL > 1 void Acd::Print( FILE* fp ) { Indent a; @@ -1267,6 +1296,7 @@ void Acd::Print( FILE* fp ) indent_printf( fp," ibst 0x%x\n", ibst); indent_printf( fp," fciBaseObABC 0x%x\n", fciBasedOnABC); } +#endif MCD::MCD() : reserved1(0x56) ,reserved2( 0 ) @@ -1320,6 +1350,7 @@ bool MCD::Read(SvStream &rS) return true; } +#if OSL_DEBUG_LEVEL > 1 void MCD::Print( FILE* fp ) { Indent a; @@ -1335,5 +1366,6 @@ void MCD::Print( FILE* fp ) indent_printf( fp, " reserved6 0x%x\n", static_cast< unsigned int >( reserved6 ) ); indent_printf( fp, " reserved7 0x%x\n", static_cast< unsigned int >( reserved7 ) ); } +#endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/filter/ww8/ww8toolbar.hxx b/sw/source/filter/ww8/ww8toolbar.hxx index aa4dedf2667b..4695f083d6cf 100644 --- a/sw/source/filter/ww8/ww8toolbar.hxx +++ b/sw/source/filter/ww8/ww8toolbar.hxx @@ -19,7 +19,9 @@ public: Xst(){} bool Read(SvStream &rS) SAL_OVERRIDE; OUString getString() { return sString; } - void Print( FILE* fp ) SAL_OVERRIDE; +#if OSL_DEBUG_LEVEL > 1 + virtual void Print( FILE* fp ) SAL_OVERRIDE; +#endif }; class SwCTBWrapper; @@ -34,7 +36,9 @@ public: SwTBC(); virtual ~SwTBC(); bool Read(SvStream &rS) SAL_OVERRIDE; - void Print( FILE* ) SAL_OVERRIDE; +#if OSL_DEBUG_LEVEL > 1 + virtual void Print( FILE* ) SAL_OVERRIDE; +#endif bool ImportToolBarControl( SwCTBWrapper&, const css::uno::Reference< css::container::XIndexContainer >&, CustomToolBarImportHelper&, bool ); OUString GetCustomText(); }; @@ -58,7 +62,9 @@ public: SwCTB(); virtual ~SwCTB(); bool Read(SvStream &rS) SAL_OVERRIDE; - void Print( FILE* fp ) SAL_OVERRIDE; +#if OSL_DEBUG_LEVEL > 1 + virtual void Print( FILE* fp ) SAL_OVERRIDE; +#endif bool IsMenuToolbar(); bool ImportCustomToolBar( SwCTBWrapper&, CustomToolBarImportHelper& ); bool ImportMenuTB( SwCTBWrapper&, const css::uno::Reference< css::container::XIndexContainer >&, CustomToolBarImportHelper& ); @@ -80,7 +86,9 @@ public: TBDelta(); virtual ~TBDelta(){} bool Read(SvStream &rS) SAL_OVERRIDE; - void Print( FILE* ) SAL_OVERRIDE; +#if OSL_DEBUG_LEVEL > 1 + virtual void Print( FILE* ) SAL_OVERRIDE; +#endif bool ControlIsModified(); bool ControlIsInserted(); bool ControlIsChanged(); @@ -129,7 +137,9 @@ public: bool Read(SvStream &rS) SAL_OVERRIDE; bool ImportCustomToolBar( SwCTBWrapper&, CustomToolBarImportHelper& ); bool ImportMenu( SwCTBWrapper&, CustomToolBarImportHelper& ); - void Print( FILE* ) SAL_OVERRIDE; +#if OSL_DEBUG_LEVEL > 1 + virtual void Print( FILE* ) SAL_OVERRIDE; +#endif sal_Int32 GetTBIDForTB(){ return tbidForTBD; } SwCTB* GetCustomizationData() { return customizationDataCTB.get(); }; }; @@ -165,7 +175,9 @@ public: Customization* GetCustomizaton( sal_Int16 index ); SwCTB* GetCustomizationData( const OUString& name ); - void Print( FILE* ) SAL_OVERRIDE; +#if OSL_DEBUG_LEVEL > 1 + virtual void Print( FILE* ) SAL_OVERRIDE; +#endif }; class MCD : public TBBase @@ -185,7 +197,9 @@ public: MCD(const MCD&); MCD& operator = ( const MCD&); bool Read(SvStream &rS) SAL_OVERRIDE; - void Print( FILE* ) SAL_OVERRIDE; +#if OSL_DEBUG_LEVEL > 1 + virtual void Print( FILE* ) SAL_OVERRIDE; +#endif }; class PlfMcd : public Tcg255SubStruct @@ -198,7 +212,9 @@ class PlfMcd : public Tcg255SubStruct public: PlfMcd( bool bReadId = true ); bool Read(SvStream &rS) SAL_OVERRIDE; - void Print( FILE* ) SAL_OVERRIDE; +#if OSL_DEBUG_LEVEL > 1 + virtual void Print( FILE* ) SAL_OVERRIDE; +#endif }; class Acd : public TBBase @@ -212,7 +228,9 @@ public: Acd(); virtual ~Acd(){} bool Read(SvStream &rS) SAL_OVERRIDE; - void Print( FILE* ) SAL_OVERRIDE; +#if OSL_DEBUG_LEVEL > 1 + virtual void Print( FILE* ) SAL_OVERRIDE; +#endif }; class PlfAcd: public Tcg255SubStruct @@ -226,7 +244,9 @@ public: PlfAcd( bool bReadId = true ); virtual ~PlfAcd(); bool Read(SvStream &rS) SAL_OVERRIDE; - void Print(FILE*) SAL_OVERRIDE; +#if OSL_DEBUG_LEVEL > 1 + virtual void Print(FILE*) SAL_OVERRIDE; +#endif }; class Kme : public TBBase @@ -245,7 +265,9 @@ public: Kme(); virtual ~Kme(); bool Read(SvStream &rS) SAL_OVERRIDE; - void Print( FILE* ) SAL_OVERRIDE; +#if OSL_DEBUG_LEVEL > 1 + virtual void Print( FILE* ) SAL_OVERRIDE; +#endif }; class PlfKme : public Tcg255SubStruct @@ -259,7 +281,9 @@ public: PlfKme( bool bReadId = true ); virtual ~PlfKme(); bool Read(SvStream &rS) SAL_OVERRIDE; - void Print( FILE* ) SAL_OVERRIDE; +#if OSL_DEBUG_LEVEL > 1 + virtual void Print( FILE* ) SAL_OVERRIDE; +#endif }; class TcgSttbfCore : public TBBase @@ -283,7 +307,9 @@ public: TcgSttbfCore(); virtual ~TcgSttbfCore(); bool Read(SvStream &rS) SAL_OVERRIDE; - void Print( FILE* fp ) SAL_OVERRIDE; +#if OSL_DEBUG_LEVEL > 1 + virtual void Print( FILE* fp ) SAL_OVERRIDE; +#endif }; class TcgSttbf : public Tcg255SubStruct @@ -296,7 +322,9 @@ public: TcgSttbf( bool bReadId = true ); virtual ~TcgSttbf(){} bool Read(SvStream &rS) SAL_OVERRIDE; - void Print( FILE* fp ) SAL_OVERRIDE; +#if OSL_DEBUG_LEVEL > 1 + virtual void Print( FILE* fp ) SAL_OVERRIDE; +#endif }; class Xstz : public TBBase @@ -311,7 +339,9 @@ public: Xstz(); virtual ~Xstz(){} bool Read(SvStream &rS) SAL_OVERRIDE; - void Print( FILE* fp ) SAL_OVERRIDE; +#if OSL_DEBUG_LEVEL > 1 + virtual void Print( FILE* fp ) SAL_OVERRIDE; +#endif }; class MacroName : public TBBase @@ -325,7 +355,9 @@ public: MacroName(); virtual ~MacroName(){} bool Read(SvStream &rS) SAL_OVERRIDE; - void Print( FILE* ) SAL_OVERRIDE; +#if OSL_DEBUG_LEVEL > 1 + virtual void Print( FILE* ) SAL_OVERRIDE; +#endif }; class MacroNames : public Tcg255SubStruct @@ -340,7 +372,9 @@ public: MacroNames( bool bReadId = true ); virtual ~MacroNames(); bool Read(SvStream &rS) SAL_OVERRIDE; - void Print( FILE* ) SAL_OVERRIDE; +#if OSL_DEBUG_LEVEL > 1 + virtual void Print( FILE* ) SAL_OVERRIDE; +#endif }; class Tcg255 : public TBBase @@ -354,7 +388,9 @@ public: Tcg255(); virtual ~Tcg255(); bool Read(SvStream &rS) SAL_OVERRIDE; - void Print( FILE* ) SAL_OVERRIDE; +#if OSL_DEBUG_LEVEL > 1 + virtual void Print( FILE* ) SAL_OVERRIDE; +#endif bool ImportCustomToolBar( SfxObjectShell& rDocSh ); }; @@ -370,7 +406,9 @@ public: virtual ~Tcg(){} bool Read(SvStream &rS) SAL_OVERRIDE; bool ImportCustomToolBar( SfxObjectShell& rDocSh ); - void Print( FILE* ) SAL_OVERRIDE; +#if OSL_DEBUG_LEVEL > 1 + virtual void Print( FILE* ) SAL_OVERRIDE; +#endif }; #endif |