karbon

vtextcmd.cpp
1/* This file is part of the KDE project
2 Copyright (C) 2001, The Karbon Developers
3 Copyright (C) 2002, The Karbon Developers
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19*/
20
21#include <tdelocale.h>
22
23#include "karbon_view.h"
24
25#include "vpath.h"
26#include "vtext.h"
27#include "vtextcmd.h"
28
29VTextCmd::VTextCmd( KarbonPart* part, const TQFont& font, const TQString& text )
30 : VShapeCmd( part, i18n( "Insert Text" ) ), m_font( font ), m_text( text )
31{
32}
33
35VTextCmd::createPath()
36{
37 return
38 new VText( static_cast<KarbonView*>( m_part->views().getFirst() ), m_font, m_text );
39}
40
Keeps track of visual per document properties.
Definition karbon_part.h:46
The base class for all karbon objects.
Definition vobject.h:50