~ubuntu-branches/ubuntu/precise/koffice/precise

« back to all changes in this revision

Viewing changes to kspread/interfaces/ViewAdaptor.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-09-21 15:36:35 UTC
  • mfrom: (1.4.1 upstream) (60.2.11 maverick)
  • Revision ID: james.westby@ubuntu.com-20100921153635-6tejqkiro2u21ydi
Tags: 1:2.2.2-0ubuntu3
Add kubuntu_03_fix-crash-on-closing-sqlite-connection-2.2.2.diff and
kubuntu_04_support-large-memo-values-for-msaccess-2.2.2.diff as
recommended by upstream http://kexi-
project.org/wiki/wikiview/index.php@Kexi2.2_Patches.html#sqlite_stab
ility

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* This file is part of the KDE project
2
 
   
 
2
 
3
3
   Copyright (C) 2006 Fredrik Edemar <f_edemar@linux.se>
4
4
   Copyright 2004 Ariya Hidayat <ariya@kde.org>
5
5
   Copyright 2002-2003 Joseph Wenninger <jowenn@kde.org>
47
47
 *
48
48
 ************************************************/
49
49
 
50
 
ViewAdaptor::ViewAdaptor( View* t )
51
 
    : QDBusAbstractAdaptor( t )
 
50
ViewAdaptor::ViewAdaptor(View* t)
 
51
        : QDBusAbstractAdaptor(t)
52
52
{
53
53
    setAutoRelaySignals(true);
54
54
    m_view = t;
78
78
 
79
79
void ViewAdaptor::changeNbOfRecentFiles(int _nb)
80
80
{
81
 
    if(_nb<0)
 
81
    if (_nb < 0)
82
82
        return;
83
83
    m_view->changeNbOfRecentFiles(_nb);
84
84
}
148
148
 
149
149
bool ViewAdaptor::showSheet(const QString& sheetName)
150
150
{
151
 
   return m_view->showSheet(sheetName);
 
151
    return m_view->showSheet(sheetName);
152
152
}
153
153
 
154
154
void ViewAdaptor::previousSheet()
300
300
 
301
301
void ViewAdaptor::setSelection(const QRect& selection)
302
302
{
303
 
  m_view->selection()->initialize(selection);//,m_view->activeSheet());
 
303
    m_view->selection()->initialize(selection);//,m_view->activeSheet());
304
304
}
305
305
 
306
306
QRect ViewAdaptor::selection()
307
307
{
308
 
  return m_view->selection()->lastRange();
 
308
    return m_view->selection()->lastRange();
309
309
}
310
310
 
311
311
#if 0 // -> cell tool
312
 
void ViewAdaptor::setSelectionMoneyFormat( bool b )
313
 
{
314
 
  m_view->moneyFormat(b);
315
 
}
316
 
 
317
 
void ViewAdaptor::setSelectionPercent( bool b )
318
 
{
319
 
  m_view->percent(b);
320
 
}
321
 
 
322
 
void ViewAdaptor::setSelectionMultiRow( bool enable )
323
 
{
324
 
  m_view->wrapText(enable);
 
312
void ViewAdaptor::setSelectionMoneyFormat(bool b)
 
313
{
 
314
    m_view->moneyFormat(b);
 
315
}
 
316
 
 
317
void ViewAdaptor::setSelectionPercent(bool b)
 
318
{
 
319
    m_view->percent(b);
 
320
}
 
321
 
 
322
void ViewAdaptor::setSelectionMultiRow(bool enable)
 
323
{
 
324
    m_view->wrapText(enable);
325
325
}
326
326
 
327
327
void ViewAdaptor::setSelectionSize(int size)
328
328
{
329
 
  m_view->setSelectionFontSize(size);
 
329
    m_view->setSelectionFontSize(size);
330
330
}
331
331
 
332
332
void ViewAdaptor::setSelectionUpper()
333
333
{
334
 
  m_view->upper();
 
334
    m_view->upper();
335
335
}
336
336
 
337
337
void ViewAdaptor::setSelectionLower()
338
338
{
339
 
  m_view->lower();
 
339
    m_view->lower();
340
340
}
341
341
 
342
342
void ViewAdaptor::setSelectionFirstLetterUpper()
343
343
{
344
 
  m_view->firstLetterUpper();
 
344
    m_view->firstLetterUpper();
345
345
}
346
346
 
347
347
void ViewAdaptor::setSelectionVerticalText(bool enable)
348
348
{
349
 
  m_view->verticalText(enable);
 
349
    m_view->verticalText(enable);
350
350
}
351
351
#endif
352
352
 
353
353
void ViewAdaptor::setSelectionComment(const QString& comment)
354
354
{
355
 
  m_view->setSelectionComment(comment);
 
355
    m_view->setSelectionComment(comment);
356
356
}
357
357
 
358
358
#if 0 // -> cell tool
359
359
void ViewAdaptor::setSelectionAngle(int value)
360
360
{
361
 
  m_view->setSelectionAngle(value);
 
361
    m_view->setSelectionAngle(value);
362
362
}
363
363
#endif
364
364
 
365
 
void ViewAdaptor::setSelectionTextColor( const QColor& txtColor )
366
 
{
367
 
  m_view->setSelectionTextColor(txtColor);
368
 
}
369
 
 
370
 
void ViewAdaptor::setSelectionBgColor( const QColor& bgColor )
371
 
{
372
 
  m_view->setSelectionBackgroundColor(bgColor);
373
 
}
374
 
 
375
 
void ViewAdaptor::setSelectionBorderColor( const QColor& bdColor )
376
 
{
377
 
  m_view->setSelectionBorderColor(bdColor);
 
365
void ViewAdaptor::setSelectionTextColor(const QColor& txtColor)
 
366
{
 
367
    m_view->setSelectionTextColor(txtColor);
 
368
}
 
369
 
 
370
void ViewAdaptor::setSelectionBgColor(const QColor& bgColor)
 
371
{
 
372
    m_view->setSelectionBackgroundColor(bgColor);
 
373
}
 
374
 
 
375
void ViewAdaptor::setSelectionBorderColor(const QColor& bdColor)
 
376
{
 
377
    m_view->setSelectionBorderColor(bdColor);
378
378
}
379
379
 
380
380
#if 0 // -> cell tool
385
385
 
386
386
void ViewAdaptor::copySelection()
387
387
{
388
 
  m_view->copySelection();
 
388
    m_view->copySelection();
389
389
}
390
390
 
391
391
void ViewAdaptor::cutSelection()
392
392
{
393
 
  m_view->cutSelection();
 
393
    m_view->cutSelection();
394
394
}
395
395
#endif
396
396
 
397
397
void ViewAdaptor::setLeftBorderColor(const QColor& color)
398
398
{
399
 
  m_view->setSelectionLeftBorderColor(color);
 
399
    m_view->setSelectionLeftBorderColor(color);
400
400
}
401
401
 
402
402
void ViewAdaptor::setTopBorderColor(const QColor& color)
403
403
{
404
 
  m_view->setSelectionTopBorderColor(color);
 
404
    m_view->setSelectionTopBorderColor(color);
405
405
}
406
406
 
407
407
void ViewAdaptor::setRightBorderColor(const QColor& color)
408
408
{
409
 
  m_view->setSelectionRightBorderColor(color);
 
409
    m_view->setSelectionRightBorderColor(color);
410
410
}
411
411
 
412
412
void ViewAdaptor::setBottomBorderColor(const QColor& color)
413
413
{
414
 
  m_view->setSelectionBottomBorderColor(color);
 
414
    m_view->setSelectionBottomBorderColor(color);
415
415
}
416
416
 
417
417
void ViewAdaptor::setAllBorderColor(const QColor& color)
418
418
{
419
 
  m_view->setSelectionAllBorderColor(color);
 
419
    m_view->setSelectionAllBorderColor(color);
420
420
}
421
421
 
422
422
void ViewAdaptor::setOutlineBorderColor(const QColor& color)
423
423
{
424
 
  m_view->setSelectionOutlineBorderColor(color);
 
424
    m_view->setSelectionOutlineBorderColor(color);
425
425
}
426
426
 
427
427
#if 0 // -> cell tool
428
428
void ViewAdaptor::removeBorder()
429
429
{
430
 
  m_view->borderRemove();
 
430
    m_view->borderRemove();
431
431
}
432
432
 
433
433
void ViewAdaptor::increaseIndent()
434
434
{
435
 
  m_view->increaseIndent();
 
435
    m_view->increaseIndent();
436
436
}
437
437
 
438
438
void ViewAdaptor::decreaseIndent()
439
439
{
440
 
  m_view->increaseIndent();
 
440
    m_view->increaseIndent();
441
441
}
442
442
 
443
443
void ViewAdaptor::increasePrecision()
444
444
{
445
 
  m_view->increasePrecision();
 
445
    m_view->increasePrecision();
446
446
}
447
447
 
448
448
void ViewAdaptor::decreasePrecision()
449
449
{
450
 
  m_view->decreasePrecision();
 
450
    m_view->decreasePrecision();
451
451
}
452
452
 
453
453
void ViewAdaptor::subtotals()