summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2017-11-30 23:01:33 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-12-01 09:10:20 +0100
commit035fad219e1729c9e4fe8a54fd85f23c065de616 (patch)
treeaa7ff1b3ec785d99b61ce7e53302759511748207 /sw/source
parent719f2e8462faf102f780fd2cfa932c84a776bbc6 (diff)
sw: remove SvStream operator<< functions of layout classes
This could be useful debugging functionality, but: - we have a layout dump feature already, which is available in dbglevel<2 (and even non-dbgutil) builds already - for SAL_DEBUG() these functions would have to work with an STL stream, not with an SvStream So there is little value in keeping these. Change-Id: I1d894f79d3e637f5a56d68abda275ea66d5d0635
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/text/itrform2.cxx1
-rw-r--r--sw/source/core/text/pordrop.hxx2
-rw-r--r--sw/source/core/text/porexp.hxx5
-rw-r--r--sw/source/core/text/porfld.hxx9
-rw-r--r--sw/source/core/text/porfly.hxx2
-rw-r--r--sw/source/core/text/porftn.hxx6
-rw-r--r--sw/source/core/text/porglue.hxx4
-rw-r--r--sw/source/core/text/porhyph.hxx7
-rw-r--r--sw/source/core/text/porlay.hxx2
-rw-r--r--sw/source/core/text/porlin.hxx11
-rw-r--r--sw/source/core/text/pormulti.hxx2
-rw-r--r--sw/source/core/text/porref.hxx3
-rw-r--r--sw/source/core/text/porrst.hxx6
-rw-r--r--sw/source/core/text/portab.hxx7
-rw-r--r--sw/source/core/text/portox.hxx3
-rw-r--r--sw/source/core/text/portxt.hxx2
-rw-r--r--sw/source/core/text/txtio.cxx610
17 files changed, 0 insertions, 682 deletions
diff --git a/sw/source/core/text/itrform2.cxx b/sw/source/core/text/itrform2.cxx
index d25fcc2ba0b1..e43cec544a02 100644
--- a/sw/source/core/text/itrform2.cxx
+++ b/sw/source/core/text/itrform2.cxx
@@ -814,7 +814,6 @@ class SwMetaPortion : public SwTextPortion
public:
SwMetaPortion() { SetWhichPor( POR_META ); }
virtual void Paint( const SwTextPaintInfo &rInf ) const override;
-// OUTPUT_OPERATOR
};
void SwMetaPortion::Paint( const SwTextPaintInfo &rInf ) const
diff --git a/sw/source/core/text/pordrop.hxx b/sw/source/core/text/pordrop.hxx
index 030a9b5f2435..e72e22302cd4 100644
--- a/sw/source/core/text/pordrop.hxx
+++ b/sw/source/core/text/pordrop.hxx
@@ -99,8 +99,6 @@ public:
SwFont* GetFnt() const { return pPart ? &pPart->GetFont() : nullptr; }
static void DeleteDropCapCache();
-
- OUTPUT_OPERATOR_OVERRIDE
};
#endif
diff --git a/sw/source/core/text/porexp.hxx b/sw/source/core/text/porexp.hxx
index 2688836509f6..5a18544c2fd8 100644
--- a/sw/source/core/text/porexp.hxx
+++ b/sw/source/core/text/porexp.hxx
@@ -34,8 +34,6 @@ public:
// Accessibility: pass information about this portion to the PortionHandler
virtual void HandlePortion( SwPortionHandler& rPH ) const override;
-
- OUTPUT_OPERATOR_OVERRIDE
};
class SwBlankPortion : public SwExpandPortion
@@ -57,8 +55,6 @@ public:
// Accessibility: pass information about this portion to the PortionHandler
virtual void HandlePortion( SwPortionHandler& rPH ) const override;
-
- OUTPUT_OPERATOR_OVERRIDE
};
class SwPostItsPortion : public SwExpandPortion
@@ -71,7 +67,6 @@ public:
virtual sal_uInt16 GetViewWidth( const SwTextSizeInfo &rInf ) const override;
virtual bool GetExpText( const SwTextSizeInfo &rInf, OUString &rText ) const override;
bool IsScript() const { return bScript; }
- OUTPUT_OPERATOR_OVERRIDE
};
#endif
diff --git a/sw/source/core/text/porfld.hxx b/sw/source/core/text/porfld.hxx
index 38fc08993c0d..16847773a40e 100644
--- a/sw/source/core/text/porfld.hxx
+++ b/sw/source/core/text/porfld.hxx
@@ -99,8 +99,6 @@ public:
// Accessibility: pass information about this portion to the PortionHandler
virtual void HandlePortion( SwPortionHandler& rPH ) const override;
-
- OUTPUT_OPERATOR_OVERRIDE
};
/**
@@ -117,7 +115,6 @@ public:
// Field cloner for SplitGlue
virtual SwFieldPortion *Clone( const OUString &rExpand ) const override;
- OUTPUT_OPERATOR_OVERRIDE
};
class SwNumberPortion : public SwFieldPortion
@@ -141,8 +138,6 @@ public:
// Field cloner for SplitGlue
virtual SwFieldPortion *Clone( const OUString &rExpand ) const override;
virtual void FormatEOL( SwTextFormatInfo &rInf ) override;
-
- OUTPUT_OPERATOR_OVERRIDE
};
class SwBulletPortion : public SwNumberPortion
@@ -155,7 +150,6 @@ public:
const bool bCenter,
const sal_uInt16 nMinDst,
const bool bLabelAlignmentPosAndSpaceModeActive );
- OUTPUT_OPERATOR_OVERRIDE
};
class SwGrfNumPortion : public SwNumberPortion
@@ -191,8 +185,6 @@ public:
SwTwips GetRelPos() const { return nYPos; }
SwTwips GetGrfHeight() const { return nGrfHeight; }
sal_Int16 GetOrient() const { return eOrient; }
-
- OUTPUT_OPERATOR_OVERRIDE
};
/**
@@ -216,7 +208,6 @@ public:
virtual void Paint( const SwTextPaintInfo &rInf ) const override;
virtual bool Format( SwTextFormatInfo &rInf ) override;
virtual sal_uInt16 GetViewWidth( const SwTextSizeInfo &rInf ) const override;
- OUTPUT_OPERATOR_OVERRIDE
};
namespace sw { namespace mark {
diff --git a/sw/source/core/text/porfly.hxx b/sw/source/core/text/porfly.hxx
index fb02a119921d..a38592a1be1e 100644
--- a/sw/source/core/text/porfly.hxx
+++ b/sw/source/core/text/porfly.hxx
@@ -39,7 +39,6 @@ public:
void SetBlankWidth( const sal_uInt16 nNew ) { nBlankWidth = nNew; }
virtual void Paint( const SwTextPaintInfo &rInf ) const override;
virtual bool Format( SwTextFormatInfo &rInf ) override;
- OUTPUT_OPERATOR_OVERRIDE
};
/// This portion represents an as-character anchored fly (shape, frame, etc.)
@@ -60,7 +59,6 @@ public:
void SetMax(bool bMax) { m_bMax = bMax; }
void SetBase(const SwTextFrame& rFrame, const Point& rBase, long nLnAscent, long nLnDescent, long nFlyAscent, long nFlyDescent, AsCharFlags nFlags);
virtual bool Format(SwTextFormatInfo& rInf) override;
- OUTPUT_OPERATOR_OVERRIDE
};
namespace sw
diff --git a/sw/source/core/text/porftn.hxx b/sw/source/core/text/porftn.hxx
index f51fced71be9..fe6be2e291d8 100644
--- a/sw/source/core/text/porftn.hxx
+++ b/sw/source/core/text/porftn.hxx
@@ -45,7 +45,6 @@ public:
void SetPreferredScriptType( SwFontScript nPreferredScriptType );
const SwTextFootnote* GetTextFootnote() const { return pFootnote; };
- OUTPUT_OPERATOR_OVERRIDE
};
class SwFootnoteNumPortion : public SwNumberPortion
@@ -54,8 +53,6 @@ public:
SwFootnoteNumPortion( const OUString &rExpand, SwFont *pFntL )
: SwNumberPortion( rExpand, pFntL, true, false, 0, false )
{ SetWhichPor( POR_FTNNUM ); }
-
- OUTPUT_OPERATOR_OVERRIDE
};
class SwQuoVadisPortion : public SwFieldPortion
@@ -76,8 +73,6 @@ public:
// Accessibility: pass information about this portion to the PortionHandler
virtual void HandlePortion( SwPortionHandler& rPH ) const override;
-
- OUTPUT_OPERATOR_OVERRIDE
};
class SwErgoSumPortion : public SwFieldPortion
@@ -89,7 +84,6 @@ public:
// Field cloner for SplitGlue
virtual SwFieldPortion *Clone( const OUString &rExpand ) const override;
- OUTPUT_OPERATOR_OVERRIDE
};
#endif
diff --git a/sw/source/core/text/porglue.hxx b/sw/source/core/text/porglue.hxx
index 396f2b3fab5e..9ba945c6facc 100644
--- a/sw/source/core/text/porglue.hxx
+++ b/sw/source/core/text/porglue.hxx
@@ -44,8 +44,6 @@ public:
virtual sal_Int32 GetCursorOfst( const sal_uInt16 nOfst ) const override;
virtual SwPosSize GetTextSize( const SwTextSizeInfo &rInfo ) const override;
virtual bool GetExpText( const SwTextSizeInfo &rInf, OUString &rText ) const override;
-
- OUTPUT_OPERATOR_OVERRIDE
};
class SwFixPortion : public SwGluePortion
@@ -56,7 +54,6 @@ public:
SwFixPortion();
void SetFix( const sal_uInt16 nNewFix ) { nFix = nNewFix; }
sal_uInt16 GetFix() const { return nFix; }
- OUTPUT_OPERATOR_OVERRIDE
};
class SwMarginPortion : public SwGluePortion
@@ -64,7 +61,6 @@ class SwMarginPortion : public SwGluePortion
public:
explicit SwMarginPortion();
void AdjustRight( const SwLineLayout* pCurr );
- OUTPUT_OPERATOR_OVERRIDE
};
inline short SwGluePortion::GetPrtGlue() const
diff --git a/sw/source/core/text/porhyph.hxx b/sw/source/core/text/porhyph.hxx
index 1c954224bddc..1df9b1ed6500 100644
--- a/sw/source/core/text/porhyph.hxx
+++ b/sw/source/core/text/porhyph.hxx
@@ -33,8 +33,6 @@ public:
// Accessibility: pass information about this portion to the PortionHandler
virtual void HandlePortion( SwPortionHandler& rPH ) const override;
-
- OUTPUT_OPERATOR_OVERRIDE
};
class SwHyphStrPortion : public SwHyphPortion
@@ -51,8 +49,6 @@ public:
// Accessibility: pass information about this portion to the PortionHandler
virtual void HandlePortion( SwPortionHandler& rPH ) const override;
-
- OUTPUT_OPERATOR_OVERRIDE
};
class SwSoftHyphPortion : public SwHyphPortion
@@ -74,8 +70,6 @@ public:
// Accessibility: pass information about this portion to the PortionHandler
virtual void HandlePortion( SwPortionHandler& rPH ) const override;
-
- OUTPUT_OPERATOR_OVERRIDE
};
class SwSoftHyphStrPortion : public SwHyphStrPortion
@@ -83,7 +77,6 @@ class SwSoftHyphStrPortion : public SwHyphStrPortion
public:
explicit SwSoftHyphStrPortion( const OUString &rStr );
virtual void Paint( const SwTextPaintInfo &rInf ) const override;
- OUTPUT_OPERATOR_OVERRIDE
};
#endif
diff --git a/sw/source/core/text/porlay.hxx b/sw/source/core/text/porlay.hxx
index b7d0f031d0d5..751d69b7ebcb 100644
--- a/sw/source/core/text/porlay.hxx
+++ b/sw/source/core/text/porlay.hxx
@@ -222,7 +222,6 @@ public:
const SwLinePortion* _pDontConsiderPortion = nullptr,
const bool _bNoFlyCntPorAndLinePor = false ) const;
- OUTPUT_OPERATOR_OVERRIDE
DECL_FIXEDMEMPOOL_NEWDEL(SwLineLayout)
};
@@ -305,7 +304,6 @@ public:
const SwDropPortion *FindDropPortion() const;
- OUTPUT_OPERATOR_OVERRIDE
DECL_FIXEDMEMPOOL_NEWDEL(SwParaPortion)
};
diff --git a/sw/source/core/text/porlin.hxx b/sw/source/core/text/porlin.hxx
index e048a36fe3e0..02c590dd8eba 100644
--- a/sw/source/core/text/porlin.hxx
+++ b/sw/source/core/text/porlin.hxx
@@ -31,15 +31,6 @@ class SwTextPaintInfo;
class SwTextFormatInfo;
class SwPortionHandler;
-// The portions output operators are virtual methods of the portion.
-#ifdef DBG_UTIL
-#define OUTPUT_OPERATOR virtual SvStream & operator<<( SvStream & aOs ) const;
-#define OUTPUT_OPERATOR_OVERRIDE virtual SvStream & operator<<( SvStream & aOs ) const override;
-#else
-#define OUTPUT_OPERATOR
-#define OUTPUT_OPERATOR_OVERRIDE
-#endif
-
// Portion groups
#define PORGRP_TXT 0x8000
#define PORGRP_EXP 0x4000
@@ -178,8 +169,6 @@ public:
bool GetJoinBorderWithNext() const { return m_bJoinBorderWithNext; }
void SetJoinBorderWithPrev( const bool bJoinPrev ) { m_bJoinBorderWithPrev = bJoinPrev; }
void SetJoinBorderWithNext( const bool bJoinNext ) { m_bJoinBorderWithNext = bJoinNext; }
-
- OUTPUT_OPERATOR
};
inline SwLinePortion &SwLinePortion::operator=(const SwLinePortion &rPortion)
diff --git a/sw/source/core/text/pormulti.hxx b/sw/source/core/text/pormulti.hxx
index 60d3eddce3a8..2061c035c6e7 100644
--- a/sw/source/core/text/pormulti.hxx
+++ b/sw/source/core/text/pormulti.hxx
@@ -142,8 +142,6 @@ public:
// Accessibility: pass information about this portion to the PortionHandler
virtual void HandlePortion( SwPortionHandler& rPH ) const override;
-
- OUTPUT_OPERATOR_OVERRIDE
};
class SwDoubleLinePortion : public SwMultiPortion
diff --git a/sw/source/core/text/porref.hxx b/sw/source/core/text/porref.hxx
index 37cc7721c627..7d5963a24de5 100644
--- a/sw/source/core/text/porref.hxx
+++ b/sw/source/core/text/porref.hxx
@@ -26,7 +26,6 @@ class SwRefPortion : public SwTextPortion
public:
SwRefPortion(){ SetWhichPor( POR_REF ); }
virtual void Paint( const SwTextPaintInfo &rInf ) const override;
- OUTPUT_OPERATOR_OVERRIDE
};
class SwIsoRefPortion : public SwRefPortion
@@ -42,8 +41,6 @@ public:
// Accessibility: pass information about this portion to the PortionHandler
virtual void HandlePortion( SwPortionHandler& rPH ) const override;
-
- OUTPUT_OPERATOR_OVERRIDE
};
#endif
diff --git a/sw/source/core/text/porrst.hxx b/sw/source/core/text/porrst.hxx
index 9c421d438b0e..ec42b3dab541 100644
--- a/sw/source/core/text/porrst.hxx
+++ b/sw/source/core/text/porrst.hxx
@@ -31,7 +31,6 @@ class SwTmpEndPortion : public SwLinePortion
public:
explicit SwTmpEndPortion( const SwLinePortion &rPortion );
virtual void Paint( const SwTextPaintInfo &rInf ) const override;
- OUTPUT_OPERATOR_OVERRIDE
};
class SwBreakPortion : public SwLinePortion
@@ -47,8 +46,6 @@ public:
// Accessibility: pass information about this portion to the PortionHandler
virtual void HandlePortion( SwPortionHandler& rPH ) const override;
-
- OUTPUT_OPERATOR_OVERRIDE
};
class SwKernPortion : public SwLinePortion
@@ -73,8 +70,6 @@ public:
virtual void FormatEOL( SwTextFormatInfo &rInf ) override;
virtual void Paint( const SwTextPaintInfo &rInf ) const override;
-
- OUTPUT_OPERATOR_OVERRIDE
};
class SwArrowPortion : public SwLinePortion
@@ -88,7 +83,6 @@ public:
virtual SwLinePortion *Compress() override;
bool IsLeft() const { return bLeft; }
const Point& GetPos() const { return aPos; }
- OUTPUT_OPERATOR_OVERRIDE
};
// The characters which are forbidden at the start of a line like the dot and
diff --git a/sw/source/core/text/portab.hxx b/sw/source/core/text/portab.hxx
index 3656f216239e..996743baff14 100644
--- a/sw/source/core/text/portab.hxx
+++ b/sw/source/core/text/portab.hxx
@@ -40,8 +40,6 @@ public:
// Accessibility: pass information about this portion to the PortionHandler
virtual void HandlePortion( SwPortionHandler& rPH ) const override;
-
- OUTPUT_OPERATOR_OVERRIDE
};
class SwTabLeftPortion : public SwTabPortion
@@ -50,7 +48,6 @@ public:
SwTabLeftPortion( const sal_uInt16 nTabPosVal, const sal_Unicode cFillChar, bool bAutoTab )
: SwTabPortion( nTabPosVal, cFillChar, bAutoTab )
{ SetWhichPor( POR_TABLEFT ); }
- OUTPUT_OPERATOR_OVERRIDE
};
class SwTabRightPortion : public SwTabPortion
@@ -59,7 +56,6 @@ public:
SwTabRightPortion( const sal_uInt16 nTabPosVal, const sal_Unicode cFillChar )
: SwTabPortion( nTabPosVal, cFillChar )
{ SetWhichPor( POR_TABRIGHT ); }
- OUTPUT_OPERATOR_OVERRIDE
};
class SwTabCenterPortion : public SwTabPortion
@@ -68,7 +64,6 @@ public:
SwTabCenterPortion( const sal_uInt16 nTabPosVal, const sal_Unicode cFillChar )
: SwTabPortion( nTabPosVal, cFillChar )
{ SetWhichPor( POR_TABCENTER ); }
- OUTPUT_OPERATOR_OVERRIDE
};
class SwTabDecimalPortion : public SwTabPortion
@@ -100,8 +95,6 @@ public:
{
return mnWidthOfPortionsUpTpDecimalPosition;
}
-
- OUTPUT_OPERATOR_OVERRIDE
};
class SwAutoTabDecimalPortion : public SwTabDecimalPortion
diff --git a/sw/source/core/text/portox.hxx b/sw/source/core/text/portox.hxx
index cb3ebc321171..f854b1adc4e1 100644
--- a/sw/source/core/text/portox.hxx
+++ b/sw/source/core/text/portox.hxx
@@ -27,7 +27,6 @@ class SwToxPortion : public SwTextPortion
public:
SwToxPortion(){ SetWhichPor( POR_TOX ); }
virtual void Paint( const SwTextPaintInfo &rInf ) const override;
- OUTPUT_OPERATOR_OVERRIDE
};
class SwIsoToxPortion : public SwToxPortion
@@ -43,8 +42,6 @@ public:
// Accessibility: pass information about this portion to the PortionHandler
virtual void HandlePortion( SwPortionHandler& rPH ) const override;
-
- OUTPUT_OPERATOR_OVERRIDE
};
#endif
diff --git a/sw/source/core/text/portxt.hxx b/sw/source/core/text/portxt.hxx
index 6764ef5cd31b..bee6e4c19412 100644
--- a/sw/source/core/text/portxt.hxx
+++ b/sw/source/core/text/portxt.hxx
@@ -51,7 +51,6 @@ public:
// Accessibility: pass information about this portion to the PortionHandler
virtual void HandlePortion( SwPortionHandler& rPH ) const override;
- OUTPUT_OPERATOR_OVERRIDE
DECL_FIXEDMEMPOOL_NEWDEL(SwTextPortion)
};
@@ -80,7 +79,6 @@ public:
// Accessibility: pass information about this portion to the PortionHandler
virtual void HandlePortion( SwPortionHandler& rPH ) const override;
- OUTPUT_OPERATOR_OVERRIDE
DECL_FIXEDMEMPOOL_NEWDEL(SwHolePortion)
};
diff --git a/sw/source/core/text/txtio.cxx b/sw/source/core/text/txtio.cxx
deleted file mode 100644
index 64e0bd3dea9d..000000000000
--- a/sw/source/core/text/txtio.cxx
+++ /dev/null
@@ -1,610 +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 .
- */
-
-#ifdef DBG_UTIL
-
-#include <viewsh.hxx>
-#include <viewopt.hxx>
-#include <txtatr.hxx>
-#include <txtfrm.hxx>
-#include <rootfrm.hxx>
-#include <flyfrms.hxx>
-#include "inftxt.hxx"
-#include "porexp.hxx"
-#include "porfld.hxx"
-#include "porfly.hxx"
-#include "porftn.hxx"
-#include "porglue.hxx"
-#include "porhyph.hxx"
-#include "porlay.hxx"
-#include "porlin.hxx"
-#include "porref.hxx"
-#include "porrst.hxx"
-#include "portab.hxx"
-#include "portox.hxx"
-#include "portxt.hxx"
-#include "pordrop.hxx"
-#include "pormulti.hxx"
-#include <ndhints.hxx>
-
-#if OSL_DEBUG_LEVEL < 2
-
-static void Error()
-{
- SAL_WARN( "sw", "txtio: No debug version" );
-}
-
-#define IMPL_OUTOP(class) \
- SvStream &class::operator<<( SvStream &rOs ) const /*$ostream*/\
- { \
- Error(); \
- return rOs; \
- }
-
-IMPL_OUTOP( SwTextPortion )
-IMPL_OUTOP( SwLinePortion )
-IMPL_OUTOP( SwBreakPortion )
-IMPL_OUTOP( SwGluePortion )
-IMPL_OUTOP( SwFieldPortion )
-IMPL_OUTOP( SwHiddenPortion )
-IMPL_OUTOP( SwHyphPortion )
-IMPL_OUTOP( SwFixPortion )
-IMPL_OUTOP( SwFlyPortion )
-IMPL_OUTOP( SwFlyCntPortion )
-IMPL_OUTOP( SwMarginPortion )
-IMPL_OUTOP( SwNumberPortion )
-IMPL_OUTOP( SwBulletPortion )
-IMPL_OUTOP( SwGrfNumPortion )
-IMPL_OUTOP( SwLineLayout )
-IMPL_OUTOP( SwParaPortion )
-IMPL_OUTOP( SwFootnotePortion )
-IMPL_OUTOP( SwFootnoteNumPortion )
-IMPL_OUTOP( SwTmpEndPortion )
-IMPL_OUTOP( SwHyphStrPortion )
-IMPL_OUTOP( SwExpandPortion )
-IMPL_OUTOP( SwBlankPortion )
-IMPL_OUTOP( SwToxPortion )
-IMPL_OUTOP( SwRefPortion )
-IMPL_OUTOP( SwIsoToxPortion )
-IMPL_OUTOP( SwIsoRefPortion )
-IMPL_OUTOP( SwSoftHyphPortion )
-IMPL_OUTOP( SwSoftHyphStrPortion )
-IMPL_OUTOP( SwTabPortion )
-IMPL_OUTOP( SwTabLeftPortion )
-IMPL_OUTOP( SwTabRightPortion )
-IMPL_OUTOP( SwTabCenterPortion )
-IMPL_OUTOP( SwTabDecimalPortion )
-IMPL_OUTOP( SwPostItsPortion )
-IMPL_OUTOP( SwQuoVadisPortion )
-IMPL_OUTOP( SwErgoSumPortion )
-IMPL_OUTOP( SwHolePortion )
-IMPL_OUTOP( SwDropPortion )
-IMPL_OUTOP( SwKernPortion )
-IMPL_OUTOP( SwArrowPortion )
-IMPL_OUTOP( SwMultiPortion )
-IMPL_OUTOP( SwCombinedPortion )
-
-#else
-#include <limits.h>
-#include <stdlib.h>
-#include "swtypes.hxx"
-#include "swfont.hxx"
-
-#define CONSTCHAR( name, string ) static const sal_Char name[] = string
-
-CONSTCHAR( pClose, "} " );
-
-CONSTCHAR( pPOR_LIN, "LIN" );
-CONSTCHAR( pPOR_TXT, "TXT" );
-CONSTCHAR( pPOR_SHADOW, "SHADOW" );
-CONSTCHAR( pPOR_TAB, "TAB" );
-CONSTCHAR( pPOR_TABLEFT, "TABLEFT" );
-CONSTCHAR( pPOR_TABRIGHT, "TABRIGHT" );
-CONSTCHAR( pPOR_TABCENTER, "TABCENTER" );
-CONSTCHAR( pPOR_TABDECIMAL, "TABDECIMAL" );
-CONSTCHAR( pPOR_EXP, "EXP" );
-CONSTCHAR( pPOR_HYPH, "HYPH" );
-CONSTCHAR( pPOR_HYPHSTR, "HYPHSTR" );
-CONSTCHAR( pPOR_FLD, "FLD" );
-CONSTCHAR( pPOR_FIX, "FIX" );
-CONSTCHAR( pPOR_FLY, "FLY" );
-CONSTCHAR( pPOR_FLYCNT, "FLYCNT" );
-CONSTCHAR( pPOR_MARGIN, "MARGIN" );
-CONSTCHAR( pPOR_GLUE, "GLUE" );
-CONSTCHAR( pPOR_HOLE, "HOLE" );
-CONSTCHAR( pPOR_END, "END" );
-CONSTCHAR( pPOR_BRK, "BRK" );
-CONSTCHAR( pPOR_LAY, "LAY" );
-CONSTCHAR( pPOR_BLANK, "BLANK" );
-CONSTCHAR( pPOR_FTN, "FTN" );
-CONSTCHAR( pPOR_FTNNUM, "FTNNUM" );
-CONSTCHAR( pPOR_POSTITS, "POSTITS" );
-CONSTCHAR( pPOR_SOFTHYPH, "SOFTHYPH" );
-CONSTCHAR( pPOR_SOFTHYPHSTR, "SOFTHYPHSTR" );
-CONSTCHAR( pPOR_TOX, "TOX" );
-CONSTCHAR( pPOR_REF, "REF" );
-
-CONSTCHAR( pPOR_ISOTOX, "ISOTOX" );
-CONSTCHAR( pPOR_ISOREF, "ISOREF" );
-CONSTCHAR( pPOR_HIDDEN, "Hidden" );
-CONSTCHAR( pPOR_QUOVADIS, "QuoVadis" );
-CONSTCHAR( pPOR_ERGOSUM, "ErgoSum" );
-CONSTCHAR( pPOR_NUMBER, "NUMBER" );
-CONSTCHAR( pPOR_BULLET, "BULLET" );
-CONSTCHAR( pPOR_UNKW, "UNKW" );
-CONSTCHAR( pPOR_PAR, "PAR" );
-
-CONSTCHAR( pPREP_CLEAR, "CLEAR" );
-CONSTCHAR( pPREP_WIDOWS_ORPHANS, "WIDOWS_ORPHANS" );
-CONSTCHAR( pPREP_FIXSIZE_CHG, "FIXSIZE_CHG" );
-CONSTCHAR( pPREP_FOLLOW_FOLLOWS, "FOLLOW_FOLLOWS" );
-CONSTCHAR( pPREP_ADJUST_FRM, "ADJUST_FRM" );
-CONSTCHAR( pPREP_FREE_SPACE, "FREE_SPACE" );
-CONSTCHAR( pPREP_FLY_CHGD, "FLY_CHGD" );
-CONSTCHAR( pPREP_FLY_ATTR_CHG, "FLY_ATTR_CHG" );
-CONSTCHAR( pPREP_FLY_ARRIVE, "FLY_ARRIVE" );
-CONSTCHAR( pPREP_FLY_LEAVE, "FLY_LEAVE" );
-CONSTCHAR( pPREP_VIEWOPT, "VIEWOPT" );
-CONSTCHAR( pPREP_FTN, "FTN" );
-CONSTCHAR( pPREP_POS_CHGD, "POS" );
-CONSTCHAR( pPREP_UL_SPACE, "UL_SPACE" );
-CONSTCHAR( pPREP_MUST_FIT, "MUST_FIT" );
-CONSTCHAR( pPREP_WIDOWS, "ORPHANS" );
-CONSTCHAR( pPREP_QUOVADIS, "QUOVADIS" );
-CONSTCHAR( pPREP_PAGE, "PAGE" );
-
-SvStream &SwLinePortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- rOs.WriteCharPtr(" {");
- rOs.WriteCharPtr("L:").WriteInt32(nLineLength);
- rOs.WriteCharPtr(" H:").WriteUInt16(Height());
- rOs.WriteCharPtr(" W:").WriteUInt16(PrtWidth());
- rOs.WriteCharPtr(" A:").WriteUInt32(nAscent);
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwTextPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {TXT:" );
- rOs.WriteCharPtr(pText);
- SwLinePortion::operator<<( rOs );
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwTmpEndPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {END:" );
- rOs.WriteCharPtr(pText);
- SwLinePortion::operator<<( rOs );
- if( PrtWidth() )
- rOs.WriteCharPtr("(view)");
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwBreakPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {BREAK:" );
- rOs.WriteCharPtr(pText);
- SwLinePortion::operator<<( rOs );
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwKernPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {KERN:" );
- rOs.WriteCharPtr(pText);
- SwLinePortion::operator<<( rOs );
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwArrowPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {ARROW:" );
- rOs.WriteCharPtr(pText);
- SwLinePortion::operator<<( rOs );
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwMultiPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {MULTI:" );
- rOs.WriteCharPtr(pText);
- SwLinePortion::operator<<( rOs );
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwCombinedPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {COMBINED:" );
- rOs.WriteCharPtr(pText);
- SwLinePortion::operator<<( rOs );
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwLineLayout::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {LINE:" );
- rOs.WriteCharPtr(pText);
- SwLinePortion::operator<<( rOs );
- SwLinePortion *pPos = GetPortion();
- while( pPos )
- {
- rOs.WriteCharPtr("\t");
- pPos->operator<<( rOs );
- pPos = pPos->GetPortion();
- }
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwGluePortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {GLUE:" );
- rOs.WriteCharPtr(pText);
- SwLinePortion::operator<<( rOs );
- rOs.WriteCharPtr(" F:").WriteUInt16(GetFixWidth());
- rOs.WriteCharPtr(" G:").WriteInt16(GetPrtGlue());
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwFixPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {FIX:" );
- rOs.WriteCharPtr(pText);
- SwGluePortion::operator<<( rOs );
- rOs.WriteCharPtr(" Fix:").WriteUInt16(nFix);
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwFlyPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {FLY:" );
- rOs.WriteCharPtr(pText);
- SwFixPortion::operator<<( rOs );
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwMarginPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {MAR:" );
- rOs.WriteCharPtr(pText);
- SwGluePortion::operator<<( rOs );
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwFlyCntPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {FLYCNT:" );
- rOs.WriteCharPtr(pText);
- SwLinePortion::operator<<( rOs );
- if( bDraw )
- {
- CONSTCHAR( pText2, " {DRAWINCNT" );
- rOs.WriteCharPtr(pText2);
- rOs.WriteCharPtr(pClose);
- }
- else
- {
- CONSTCHAR( pText2, " {FRM:" );
- rOs.WriteCharPtr(pText2);
- rOs.WriteCharPtr(" {FRM:");
- WriteSwRect(rOs, GetFlyFrame()->getFrameArea()).WriteCharPtr(pClose);
- rOs.WriteCharPtr(" {PRT:");
- WriteSwRect(rOs, GetFlyFrame()->getFramePrintArea()).WriteCharPtr(pClose);
- rOs.WriteCharPtr(pClose);
- }
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwExpandPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {EXP:" );
- rOs.WriteCharPtr(pText);
- SwLinePortion::operator<<( rOs );
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwFootnotePortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {FTN:" );
- rOs.WriteCharPtr(pText);
- SwExpandPortion::operator<<( rOs );
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwFootnoteNumPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {FTNNUM:" );
- rOs.WriteCharPtr(pText);
- SwNumberPortion::operator<<( rOs );
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwNumberPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {NUMBER:" );
- rOs.WriteCharPtr(pText);
- SwExpandPortion::operator<<( rOs );
- rOs.WriteCharPtr(" Exp:\"").WriteChar('\"');
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwBulletPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {BULLET:" );
- rOs.WriteCharPtr(pText);
- SwNumberPortion::operator<<( rOs );
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwGrfNumPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {GRFNUM:" );
- rOs.WriteCharPtr(pText);
- SwNumberPortion::operator<<( rOs );
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwHiddenPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {Hidden:" );
- rOs.WriteCharPtr(pText);
- SwFieldPortion::operator<<( rOs );
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwToxPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {TOX:" );
- rOs.WriteCharPtr(pText);
- SwTextPortion::operator<<( rOs );
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwRefPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {Ref:" );
- rOs.WriteCharPtr(pText);
- SwTextPortion::operator<<( rOs );
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwIsoToxPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {ISOTOX:" );
- rOs.WriteCharPtr(pText);
- SwToxPortion::operator<<( rOs );
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwIsoRefPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {ISOREF:" );
- rOs.WriteCharPtr(pText);
- SwRefPortion::operator<<( rOs );
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwHyphPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {HYPH:" );
- rOs.WriteCharPtr(pText);
- SwExpandPortion::operator<<( rOs );
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwHyphStrPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {HYPHSTR:" );
- rOs.WriteCharPtr(pText);
- SwExpandPortion::operator<<( rOs );
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwSoftHyphPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {SOFTHYPH:" );
- rOs.WriteCharPtr(pText);
- SwHyphPortion::operator<<( rOs );
- rOs.WriteCharPtr(IsExpand() ? " on" : " off");
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwSoftHyphStrPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {SOFTHYPHSTR:" );
- rOs.WriteCharPtr(pText);
- SwHyphStrPortion::operator<<( rOs );
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwBlankPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {BLANK:" );
- rOs.WriteCharPtr(pText);
- SwExpandPortion::operator<<( rOs );
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwFieldPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {FLD:" );
- rOs.WriteCharPtr(pText);
- SwLinePortion::operator<<( rOs );
- if( IsFollow() )
- rOs.WriteCharPtr(" F!");
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwPostItsPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {POSTITS" );
- rOs.WriteCharPtr(pText);
- SwLinePortion::operator<<( rOs );
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwTabPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {TAB" );
- rOs.WriteCharPtr(pText);
- SwFixPortion::operator<<( rOs );
- rOs.WriteCharPtr(" T:").WriteUInt16(nTabPos);
- if( IsFilled() )
- rOs.WriteCharPtr(" \"").WriteChar(cFill).WriteChar('\"');
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwTabLeftPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {TABLEFT" );
- rOs.WriteCharPtr(pText);
- SwTabPortion::operator<<( rOs );
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwTabRightPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {TABRIGHT" );
- rOs.WriteCharPtr(pText);
- SwTabPortion::operator<<( rOs );
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwTabCenterPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {TABCENTER" );
- rOs.WriteCharPtr(pText);
- SwTabPortion::operator<<( rOs );
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwTabDecimalPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {TABDECIMAL" );
- rOs.WriteCharPtr(pText);
- SwTabPortion::operator<<( rOs );
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwParaPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {PAR" );
- rOs.WriteCharPtr(pText);
- SwLineLayout::operator<<( rOs );
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwHolePortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {HOLE" );
- rOs.WriteCharPtr(pText);
- SwLinePortion::operator<<( rOs );
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwQuoVadisPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {QUOVADIS" );
- rOs.WriteCharPtr(pText);
- SwFieldPortion::operator<<( rOs );
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwErgoSumPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {ERGOSUM" );
- rOs.WriteCharPtr(pText);
- SwFieldPortion::operator<<( rOs );
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &operator<<( SvStream &rOs, const SwTextSizeInfo &rInf ) //$ ostream
-{
- CONSTCHAR( pText, " {SIZEINFO:" );
- rOs.WriteCharPtr(pText);
- rOs.WriteChar(' ').WriteCharPtr(rInf.OnWin() ? "WIN:" : "PRT:");
- rOs.WriteCharPtr(" Idx:").WriteInt32(rInf.GetIdx());
- rOs.WriteCharPtr(" Len:").WriteInt32(rInf.GetLen());
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-SvStream &SwDropPortion::operator<<( SvStream &rOs ) const //$ ostream
-{
- CONSTCHAR( pText, " {DROP:" );
- rOs.WriteCharPtr(pText);
- SwTextPortion::operator<<( rOs );
- if( pPart && nDropHeight )
- {
- rOs.WriteCharPtr(" H:").WriteUInt16(nDropHeight);
- rOs.WriteCharPtr(" L:").WriteUInt16(nLines);
- rOs.WriteCharPtr(" Fnt:").WriteInt32(pPart->GetFont().GetHeight());
- if( nX || nY )
- rOs.WriteCharPtr(" [").WriteInt16(nX).WriteChar('/').WriteInt16(nY).WriteChar(']');
- }
- rOs.WriteCharPtr(pClose);
- return rOs;
-}
-
-#endif
-
-#endif /* DBG_UTIL */
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */