[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/lib/kotext
From: David Faure <faure () kde ! org>
Date: 2006-01-30 17:43:30
Message-ID: 1138643010.782070.1827.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 503876 by dfaure:
Allow "multiple linespacing, of value 50%" - letters run into each others, \
but some users seem to like that. Improve debugging for page-break flags in \
Ctrl+Alt+P.
M +15 -1 KoTextParag.cpp
--- trunk/koffice/lib/kotext/KoTextParag.cpp #503875:503876
@@ -1336,7 +1336,7 @@
{
case KoParagLayout::LS_MULTIPLE:
{
- double n = QMAX( m_layout.lineSpacingValue() - 1.0, 0.0 );
+ double n = m_layout.lineSpacingValue() - 1.0; // yes, can be \
negative
return shadow + qRound( n * heightForLineSpacing( startChar, \
lastChar ) ); }
case KoParagLayout::LS_ONEANDHALF:
@@ -2336,6 +2336,20 @@
if ( kwLineSpacingType() != KoParagLayout::LS_SINGLE )
kdDebug(32500) << " linespacing type=" << s_linespacing[ \
-kwLineSpacingType() ] << " value=" << kwLineSpacing() << endl;
+ const int pageBreaking = m_layout.pageBreaking;
+ QStringList pageBreakingFlags;
+ if ( pageBreaking & KoParagLayout::KeepLinesTogether )
+ pageBreakingFlags.append( "KeepLinesTogether" );
+ if ( pageBreaking & KoParagLayout::HardFrameBreakBefore )
+ pageBreakingFlags.append( "HardFrameBreakBefore" );
+ if ( pageBreaking & KoParagLayout::HardFrameBreakAfter )
+ pageBreakingFlags.append( "HardFrameBreakAfter" );
+ if ( pageBreaking & KoParagLayout::KeepWithPrevious )
+ pageBreakingFlags.append( "KeepWithPrevious" );
+ if ( pageBreaking & KoParagLayout::KeepWithNext )
+ pageBreakingFlags.append( "KeepWithNext" );
+ if ( !pageBreakingFlags.isEmpty() )
+ kdDebug(32500) << " page Breaking: " << \
pageBreakingFlags.join(",") << endl;
static const char * const tabtype[] = { "T_LEFT", "T_CENTER", \
"T_RIGHT", "T_DEC_PNT", "error!!!" }; KoTabulatorList tabList = \
m_layout.tabList();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic