Commit e09c765f authored by Thorsten Zachmann's avatar Thorsten Zachmann

o whitespace fixes

svn path=/trunk/koffice/; revision=732533
parent 4f30fc4d
......@@ -56,8 +56,7 @@ void KoPACanvas::updateSize()
{
QSize size;
if ( m_view->activePage() )
{
if ( m_view->activePage() ) {
KoPageLayout pageLayout = m_view->activePage()->pageLayout();
size.setWidth( qRound( m_view->zoomHandler()->zoomItX( pageLayout.width ) ) );
size.setHeight( qRound( m_view->zoomHandler()->zoomItX( pageLayout.height ) ) );
......
......@@ -236,7 +236,7 @@ void KoPADocument::addShape( KoShape * shape )
// the KoShapeController sets the active layer as parent
KoPAPageBase * page( pageByShape( shape ) );
bool isMaster = dynamic_cast<KoPAMasterPage*>( page ) != 0;
bool isMaster = dynamic_cast<KoPAMasterPage*>( page ) != 0;
foreach( KoView *view, views() )
{
......@@ -268,9 +268,9 @@ void KoPADocument::removeShape( KoShape *shape )
KoPAPageBase * page( pageByShape( shape ) );
bool isMaster = dynamic_cast<KoPAMasterPage*>( page ) != 0;
bool isMaster = dynamic_cast<KoPAMasterPage*>( page ) != 0;
foreach( KoView *view, views() )
foreach( KoView *view, views() )
{
KoPAView * kopaView = static_cast<KoPAView*>( view );
KoPAPage * p;
......@@ -306,7 +306,7 @@ KoPAPageBase * KoPADocument::pageByShape( KoShape * shape ) const
void KoPADocument::setActionEnabled( int actions, bool enable )
{
foreach( KoView *view, views() )
foreach( KoView *view, views() )
{
KoPAView * kopaView = static_cast<KoPAView*>( view );
kopaView->setActionEnabled( actions, enable );
......@@ -326,7 +326,7 @@ void KoPADocument::insertPage( KoPAPageBase* page, int index )
}
pages.insert( index, page );
if ( pages.size() == 2 ) {
setActionEnabled( KoPAView::ActionDeletePage, true );
}
......@@ -355,7 +355,7 @@ void KoPADocument::insertPage( KoPAPageBase* page, KoPAPageBase* after )
if ( pages.size() == 2 ) {
setActionEnabled( KoPAView::ActionDeletePage, true );
}
// move active view to new page
}
......
......@@ -71,7 +71,7 @@ void KoPAPageBase::saveOdfShapes( KoShapeSavingContext &context ) const
Q_ASSERT( layer );
if ( layer ) {
QList<KoShape*> layerShapes( layer->iterator() );
QList<KoShape*> layerShapes( layer->iterator() );
foreach( KoShape *layerShape, layerShapes ) {
tlshapes.append( layerShape );
}
......@@ -142,7 +142,7 @@ bool KoPAPageBase::loadOdf( const KoXmlElement &element, KoShapeLoadingContext &
return true;
}
void KoPAPageBase::loadOdfPageTag( const KoXmlElement &element,
void KoPAPageBase::loadOdfPageTag( const KoXmlElement &element,
KoPALoadingContext &loadingContext )
{
Q_UNUSED( element );
......
......@@ -92,7 +92,7 @@ protected:
* @return true on success, false otherwise
*/
virtual bool saveOdfAnimations( KoPASavingContext & paContext ) const { Q_UNUSED( paContext ); return true; }
/**
* @brief Save presentation notes
*
......
......@@ -48,7 +48,7 @@ QString KoPASavingContext::masterPageName( const KoPAMasterPage * masterPage )
return QString();
}
void KoPASavingContext::incrementPage()
void KoPASavingContext::incrementPage()
{
m_page++;
}
......
......@@ -69,7 +69,7 @@ public:
/**
* @brief Increment the page
*/
void incrementPage();
void incrementPage();
/**
* @brief Get the current page number
......
......@@ -22,9 +22,9 @@
#include "KoPACanvas.h"
KoPAViewMode::KoPAViewMode( KoPAView * view, KoPACanvas * canvas )
: m_canvas( canvas )
: m_canvas( canvas )
, m_toolProxy( canvas->toolProxy() )
, m_view( view )
, m_view( view )
{
}
......@@ -32,9 +32,9 @@ KoPAViewMode::~KoPAViewMode()
{
}
void KoPAViewMode::setMasterMode( bool master )
{
Q_UNUSED(master);
void KoPAViewMode::setMasterMode( bool master )
{
Q_UNUSED(master);
}
bool KoPAViewMode::masterMode()
......@@ -42,12 +42,12 @@ bool KoPAViewMode::masterMode()
return false;
}
void KoPAViewMode::activate( KoPAViewMode * previousViewMode )
{
Q_UNUSED( previousViewMode );
void KoPAViewMode::activate( KoPAViewMode * previousViewMode )
{
Q_UNUSED( previousViewMode );
}
void KoPAViewMode::deactivate()
void KoPAViewMode::deactivate()
{
}
......
......@@ -35,7 +35,7 @@ class QPointF;
class KOPAGEAPP_EXPORT KoPAViewMode
{
public:
KoPAViewMode( KoPAView * view, KoPACanvas * canvas );
KoPAViewMode( KoPAView * view, KoPACanvas * canvas );
virtual ~KoPAViewMode();
virtual void paintEvent( QPaintEvent* event ) = 0;
......@@ -97,7 +97,7 @@ public:
* @return view view used by the view mode
*/
KoPAView * view() const;
protected:
KoPACanvas * m_canvas;
KoToolProxy * m_toolProxy;
......
......@@ -34,7 +34,7 @@
KoPAViewModeNormal::KoPAViewModeNormal( KoPAView * view, KoPACanvas * canvas )
: KoPAViewMode( view, canvas )
, m_masterMode( false )
, m_savedPage( 0 )
, m_savedPage( 0 )
{
}
......@@ -100,7 +100,7 @@ void KoPAViewModeNormal::keyPressEvent( QKeyEvent *event )
case Qt::Key_End:
m_view->navigatePage( KoPageApp::PageLast );
break;
default:
default:
event->ignore();
break;
}
......
......@@ -27,7 +27,7 @@ class KoPAPage;
class KOPAGEAPP_EXPORT KoPAViewModeNormal : public KoPAViewMode
{
public:
KoPAViewModeNormal( KoPAView * view, KoPACanvas * m_canvas );
KoPAViewModeNormal( KoPAView * view, KoPACanvas * m_canvas );
~KoPAViewModeNormal();
void paintEvent( QPaintEvent* event );
......
......@@ -25,11 +25,11 @@
#ifndef KOPAGEAPP_EXPORT
# if defined(MAKE_KOPAGEAPP_LIB)
/* We are building this library */
/* We are building this library */
# define KOPAGEAPP_EXPORT KDE_EXPORT
# define KOPAGEAPP_TEST_EXPORT KDE_EXPORT
# else
/* We are using this library */
/* We are using this library */
# define KOPAGEAPP_EXPORT KDE_IMPORT
# define KOPAGEAPP_TEST_EXPORT KDE_IMPORT
# endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment