kspread

KSpread::ViewAdaptor Class Reference

The ViewAdaptor class provides access to a view on a KSpread document. More...

#include <ViewAdaptor.h>

Inheritance diagram for KSpread::ViewAdaptor:

List of all members.

Public Slots

virtual void changeNbOfRecentFiles (int _nb)
virtual void copyAsText ()
virtual QString doc () const
virtual void hide ()
virtual QString map () const
virtual void nextSheet ()
virtual void preference ()
virtual void previousSheet ()
virtual QRect selection ()
virtual void setAllBorderColor (const QColor &color)
virtual void setBottomBorderColor (const QColor &color)
virtual void setLeftBorderColor (const QColor &color)
virtual void setOutlineBorderColor (const QColor &color)
virtual void setRightBorderColor (const QColor &color)
virtual void setSelection (const QRect &selection)
virtual void setSelectionBgColor (const QColor &bgColor)
virtual void setSelectionBorderColor (const QColor &bdColor)
virtual void setSelectionComment (const QString &comment)
virtual void setSelectionTextColor (const QColor &txtColor)
virtual void setTopBorderColor (const QColor &color)
virtual QString sheet () const
virtual void show ()
virtual bool showSheet (const QString &sheetName)

Signals

void activated (bool active)
void selected (bool select)
void selectionChanged ()

Public Member Functions

 ViewAdaptor (View *)
 ~ViewAdaptor ()

Detailed Description

The ViewAdaptor class provides access to a view on a KSpread document.

Definition at line 42 of file ViewAdaptor.h.


Constructor & Destructor Documentation

ViewAdaptor::ViewAdaptor ( View t  )  [explicit]

Definition at line 50 of file ViewAdaptor.cpp.

ViewAdaptor::~ViewAdaptor (  ) 

Definition at line 60 of file ViewAdaptor.cpp.


Member Function Documentation

void KSpread::ViewAdaptor::activated ( bool  active  )  [signal]

This signal got emitted if this view got activated or deactivated.

void ViewAdaptor::changeNbOfRecentFiles ( int  _nb  )  [virtual, slot]

Definition at line 79 of file ViewAdaptor.cpp.

void ViewAdaptor::copyAsText (  )  [virtual, slot]

Copy the content of the range of cells that is selected.

Definition at line 296 of file ViewAdaptor.cpp.

QString ViewAdaptor::doc (  )  const [virtual, slot]

Return the name of the document the view looks on.

Definition at line 64 of file ViewAdaptor.cpp.

void ViewAdaptor::hide (  )  [virtual, slot]

Hide the view.

Definition at line 87 of file ViewAdaptor.cpp.

QString ViewAdaptor::map (  )  const [virtual, slot]

Return the name of the map for the document.

An map offers additional functionality to deal with the content of a document.

Definition at line 69 of file ViewAdaptor.cpp.

void ViewAdaptor::nextSheet (  )  [virtual, slot]

Select the next sheet as active sheet.

Definition at line 144 of file ViewAdaptor.cpp.

void ViewAdaptor::preference (  )  [virtual, slot]

Definition at line 139 of file ViewAdaptor.cpp.

void ViewAdaptor::previousSheet (  )  [virtual, slot]

Select the previous sheet as active sheet.

Definition at line 154 of file ViewAdaptor.cpp.

void KSpread::ViewAdaptor::selected ( bool  select  )  [signal]

This signal got emitted if this view got selected or unselected.

QRect ViewAdaptor::selection (  )  [virtual, slot]

Return the range of cells that is selected.

Definition at line 306 of file ViewAdaptor.cpp.

void KSpread::ViewAdaptor::selectionChanged (  )  [signal]

This signal got emitted if the selection changed.

void ViewAdaptor::setAllBorderColor ( const QColor color  )  [virtual, slot]

Set the color of the all borders.

Definition at line 417 of file ViewAdaptor.cpp.

void ViewAdaptor::setBottomBorderColor ( const QColor color  )  [virtual, slot]

Set the color of the bottom border.

Definition at line 412 of file ViewAdaptor.cpp.

void ViewAdaptor::setLeftBorderColor ( const QColor color  )  [virtual, slot]

Set the color of the left border.

Definition at line 397 of file ViewAdaptor.cpp.

void ViewAdaptor::setOutlineBorderColor ( const QColor color  )  [virtual, slot]

Set the color of the outline border.

Definition at line 422 of file ViewAdaptor.cpp.

void ViewAdaptor::setRightBorderColor ( const QColor color  )  [virtual, slot]

Set the color of the right border.

Definition at line 407 of file ViewAdaptor.cpp.

void ViewAdaptor::setSelection ( const QRect selection  )  [virtual, slot]

Set the range of cells that should be selected.

Definition at line 301 of file ViewAdaptor.cpp.

void ViewAdaptor::setSelectionBgColor ( const QColor bgColor  )  [virtual, slot]

Set the background color of all selected cells to the defined color value.

Definition at line 370 of file ViewAdaptor.cpp.

void ViewAdaptor::setSelectionBorderColor ( const QColor bdColor  )  [virtual, slot]

Set the border color of all selected cells to the defined color value.

Definition at line 375 of file ViewAdaptor.cpp.

void ViewAdaptor::setSelectionComment ( const QString comment  )  [virtual, slot]

Set the comment of all selected cells to the defined comment string.

Definition at line 353 of file ViewAdaptor.cpp.

void ViewAdaptor::setSelectionTextColor ( const QColor txtColor  )  [virtual, slot]

Set the text color of all selected cells to the defined color value.

Definition at line 365 of file ViewAdaptor.cpp.

void ViewAdaptor::setTopBorderColor ( const QColor color  )  [virtual, slot]

Set the color of the top border.

Definition at line 402 of file ViewAdaptor.cpp.

QString ViewAdaptor::sheet (  )  const [virtual, slot]

Return the name of the active sheet.

Definition at line 74 of file ViewAdaptor.cpp.

void ViewAdaptor::show (  )  [virtual, slot]

Show the view.

Definition at line 92 of file ViewAdaptor.cpp.

bool ViewAdaptor::showSheet ( const QString sheetName  )  [virtual, slot]

Select the sheet with name sheetName as active sheet.

Definition at line 149 of file ViewAdaptor.cpp.


The documentation for this class was generated from the following files: