summaryrefslogtreecommitdiff
path: root/sw/source/core/txtnode/swfont.cxx
diff options
context:
space:
mode:
authorPhilipp Riemer <ruderphilipp@gmail.com>2013-08-31 17:50:25 +0200
committerPhilipp Riemer <ruderphilipp@gmail.com>2013-08-31 22:41:10 +0200
commitbf42b6f9f51b4bc66e267ae24c87ac79122825cc (patch)
tree449f642fc53e3d654ae36a39877efc41a8b74fcc /sw/source/core/txtnode/swfont.cxx
parent3f84d81412f123bda0dde57c4e52abe9f49f58af (diff)
fdo#62475 - remove visual noise
This is a follow up commit to - 22d1beb78a475e4846af945afde1c4d6c263b5d6 - 1c7af455ab9345304a7ac48ce2e0310de2ac8a75 Change-Id: I102685391125f3b4f7bdf838f8bd17a2283d558d
Diffstat (limited to 'sw/source/core/txtnode/swfont.cxx')
-rw-r--r--sw/source/core/txtnode/swfont.cxx62
1 files changed, 4 insertions, 58 deletions
diff --git a/sw/source/core/txtnode/swfont.cxx b/sw/source/core/txtnode/swfont.cxx
index 61fdabe99e6b..e2f3bae339f4 100644
--- a/sw/source/core/txtnode/swfont.cxx
+++ b/sw/source/core/txtnode/swfont.cxx
@@ -69,7 +69,6 @@ using namespace ::com::sun::star;
/************************************************************************
* Hintergrundbrush setzen, z.B. bei Zeichenvorlagen
***********************************************************************/
-
void SwFont::SetBackColor( Color* pNewColor )
{
delete pBackColor;
@@ -468,10 +467,6 @@ void SwFont::SetVertical( sal_uInt16 nDir, const sal_Bool bVertFormat )
*************************************************************************/
-/*************************************************************************
- * SwSubFont::CalcEscAscent( const sal_uInt16 nOldAscent )
- *************************************************************************/
-
// nEsc ist der Prozentwert
sal_uInt16 SwSubFont::CalcEscAscent( const sal_uInt16 nOldAscent ) const
{
@@ -486,10 +481,6 @@ sal_uInt16 SwSubFont::CalcEscAscent( const sal_uInt16 nOldAscent ) const
return nOrgAscent;
}
-/*************************************************************************
- * SwFont::SetDiffFnt()
- *************************************************************************/
-
void SwFont::SetDiffFnt( const SfxItemSet *pAttrSet,
const IDocumentSettingAccess *pIDocumentSettingAccess )
{
@@ -712,9 +703,7 @@ void SwFont::SetDiffFnt( const SfxItemSet *pAttrSet,
OSL_ENSURE( aSub[SW_LATIN].IsTransparent(), "SwFont: Transparent revolution" );
}
-/*************************************************************************
- * class SwFont
- *************************************************************************/
+// SwFont
SwFont::SwFont()
: pBackColor(0)
@@ -975,30 +964,18 @@ SwFont& SwFont::operator=( const SwFont &rFont )
return *this;
}
-/*************************************************************************
- * SwFont::GoMagic()
- *************************************************************************/
-
void SwFont::GoMagic( ViewShell *pSh, sal_uInt8 nWhich )
{
SwFntAccess aFntAccess( aSub[nWhich].pMagic, aSub[nWhich].nFntIndex,
&aSub[nWhich], pSh, sal_True );
}
-/*************************************************************************
- * SwSubFont::IsSymbol()
- *************************************************************************/
-
sal_Bool SwSubFont::IsSymbol( ViewShell *pSh )
{
SwFntAccess aFntAccess( pMagic, nFntIndex, this, pSh, sal_False );
return aFntAccess.Get()->IsSymbol();
}
-/*************************************************************************
- * SwSubFont::ChgFnt()
- *************************************************************************/
-
sal_Bool SwSubFont::ChgFnt( ViewShell *pSh, OutputDevice& rOut )
{
if ( pLastFont )
@@ -1016,10 +993,6 @@ sal_Bool SwSubFont::ChgFnt( ViewShell *pSh, OutputDevice& rOut )
STRIKEOUT_NONE != GetStrikeout();
}
-/*************************************************************************
- * SwFont::ChgPhysFnt()
- *************************************************************************/
-
void SwFont::ChgPhysFnt( ViewShell *pSh, OutputDevice& rOut )
{
if( bOrgChg && aSub[nActual].IsEsc() )
@@ -1053,7 +1026,6 @@ void SwFont::ChgPhysFnt( ViewShell *pSh, OutputDevice& rOut )
* MaxDescent = Max (T1_height-T1_ascent,
* T2_height-T2_ascent - (Esc * T1_height)
*************************************************************************/
-
sal_uInt16 SwSubFont::CalcEscHeight( const sal_uInt16 nOldHeight,
const sal_uInt16 nOldAscent ) const
{
@@ -1078,10 +1050,6 @@ short SwSubFont::_CheckKerning( )
return nKernx;
}
-/*************************************************************************
- * SwSubFont::GetAscent()
- *************************************************************************/
-
sal_uInt16 SwSubFont::GetAscent( ViewShell *pSh, const OutputDevice& rOut )
{
sal_uInt16 nAscent;
@@ -1092,10 +1060,6 @@ sal_uInt16 SwSubFont::GetAscent( ViewShell *pSh, const OutputDevice& rOut )
return nAscent;
}
-/*************************************************************************
- * SwSubFont::GetHeight()
- *************************************************************************/
-
sal_uInt16 SwSubFont::GetHeight( ViewShell *pSh, const OutputDevice& rOut )
{
SV_STAT( nGetTextSize );
@@ -1109,9 +1073,6 @@ sal_uInt16 SwSubFont::GetHeight( ViewShell *pSh, const OutputDevice& rOut )
return nHeight; // + nLeading;
}
-/*************************************************************************
- * SwSubFont::_GetTxtSize()
- *************************************************************************/
Size SwSubFont::_GetTxtSize( SwDrawTextInfo& rInf )
{
// Robust: Eigentlich sollte der Font bereits eingestellt sein, aber
@@ -1211,10 +1172,6 @@ Size SwSubFont::_GetTxtSize( SwDrawTextInfo& rInf )
return aTxtSize;
}
-/*************************************************************************
- * SwSubFont::_DrawText()
- *************************************************************************/
-
void SwSubFont::_DrawText( SwDrawTextInfo &rInf, const sal_Bool bGrey )
{
rInf.SetGreyWave( bGrey );
@@ -1431,10 +1388,6 @@ static sal_Char const sDoubleSpace[] = " ";
rInf.SetPos( rOld );
}
-/*************************************************************************
- * SwSubFont::_GetCrsrOfst()
- *************************************************************************/
-
xub_StrLen SwSubFont::_GetCrsrOfst( SwDrawTextInfo& rInf )
{
if ( !pLastFont || pLastFont->GetOwner()!=pMagic )
@@ -1468,10 +1421,6 @@ xub_StrLen SwSubFont::_GetCrsrOfst( SwDrawTextInfo& rInf )
return nCrsr;
}
-/*************************************************************************
- * SwSubFont::CalcEsc()
- *************************************************************************/
-
void SwSubFont::CalcEsc( SwDrawTextInfo& rInf, Point& rPos )
{
long nOfst;
@@ -1570,12 +1519,9 @@ void SwDrawTextInfo::Shift( sal_uInt16 nDir )
}
}
-/*************************************************************************
- * SwUnderlineFont::~SwUnderlineFont
- *
- * Used for the "continuous underline" feature.
- *************************************************************************/
-
+/**
+ * @note Used for the "continuous underline" feature.
+ **/
SwUnderlineFont::SwUnderlineFont( SwFont& rFnt, const Point& rPoint )
: aPos( rPoint ), pFnt( &rFnt )
{