Logo Search packages:      
Sourcecode: koffice version File versions

void KoTextObject::setFormat ( KoTextCursor *  cursor,
KoTextFormat **  currentFormat,
KoTextFormat format,
int  flags,
bool  zoomFont = false 

Set format changes on selection or current cursor. Creates a command if the format was applied to a selection

Definition at line 1036 of file kotextobject.cc.

References newCommand(), and setFormatCommand().

    if ( protectContent() )
    KCommand *cmd = setFormatCommand( cursor, currentFormat, format, flags, zoomFont );
    if (cmd)
        emit newCommand( cmd );

Generated by  Doxygen 1.6.0   Back to index