24#include "vselection.h"
25#include "vinsertcmd.h"
26#include "vtransformcmd.h"
29VInsertCmd::VInsertCmd( VDocument *doc, const TQString& name,
32 : VCommand( doc, name, "14_insert" ),
33 m_objects( *objects ),
38VInsertCmd::~VInsertCmd()
46 VObjectListIterator itr( m_objects );
48 document()->selection()->clear();
49 for ( ; itr.current() ; ++itr ) {
50 VObject * object = itr.current();
56 document()->append( object );
58 if ( m_offset != 0.0 ) {
59 VTranslateCmd cmd( 0L, m_offset, -m_offset );
64 document()->selection()->append( object );
72VInsertCmd::unexecute()
74 document()->selection()->clear();
76 VObjectListIterator itr( m_objects );
77 for ( ; itr.current() ; ++itr ) {
The base class for all karbon commands.
All non-visual, static doc info is in here.
The base class for all karbon objects.
virtual void setState(const VState state) Sets the state to a specified new state.
@ deleted deleted, nearly dead
@ normal visible, not active
VState state() const Get the state the object is in.
|