KSpread::RenameSheetCommand Class Reference

#include <commands.h>

Inherits KCommand.

Public Member Functions

 RenameSheetCommand (Sheet *sheet, const TQString &name)
 
virtual void execute ()
 
virtual void unexecute ()
 
virtual TQString name () const
 

Protected Attributes

Sheet * sheet
 
TQString oldName
 
TQString newName
 

Detailed Description

Class RenameSheetCommand implements a command for renaming a sheet.

See also
Sheet::setSheetName

Definition at line 151 of file commands.h.

Constructor & Destructor Documentation

◆ RenameSheetCommand()

RenameSheetCommand::RenameSheetCommand ( Sheet *  sheet,
const TQString &  name 
)

Definition at line 127 of file commands.cpp.

Member Function Documentation

◆ execute()

void RenameSheetCommand::execute ( )
virtual

Definition at line 139 of file commands.cpp.

◆ name()

TQString RenameSheetCommand::name ( ) const
virtual

Definition at line 134 of file commands.cpp.

◆ unexecute()

void RenameSheetCommand::unexecute ( )
virtual

Definition at line 145 of file commands.cpp.

Member Data Documentation

◆ newName

TQString KSpread::RenameSheetCommand::newName
protected

Definition at line 163 of file commands.h.

◆ oldName

TQString KSpread::RenameSheetCommand::oldName
protected

Definition at line 162 of file commands.h.

◆ sheet

Sheet* KSpread::RenameSheetCommand::sheet
protected

Definition at line 161 of file commands.h.


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