~ubuntu-branches/ubuntu/precise/koffice/precise

« back to all changes in this revision

Viewing changes to karbon/plugins/flattenpath/flattenpathplugin.cc

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2006-04-20 21:38:53 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060420213853-j5lxluqvymxt2zny
Tags: 1:1.5.0-0ubuntu2
UbuntuĀ uploadĀ 

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
   You should have received a copy of the GNU Library General Public License
15
15
   along with this library; see the file COPYING.LIB.  If not, write to
16
 
   the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
 
   Boston, MA 02111-1307, USA.
 
16
   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
17
 * Boston, MA 02110-1301, USA.
18
18
*/
19
19
 
20
20
#include "flattenpathplugin.h"
21
21
#include "klocale.h"
22
 
#include <karbon_view_base.h>
23
 
#include <karbon_part_base.h>
 
22
#include <karbon_view.h>
 
23
#include <karbon_part.h>
24
24
#include <kgenericfactory.h>
25
25
#include <kdebug.h>
26
26
#include <qgroupbox.h>
30
30
#include <commands/vflattencmd.h>
31
31
 
32
32
 
33
 
typedef KGenericFactory<FlattenPathPlugin, KarbonViewBase> FlattenPathPluginFactory;
 
33
typedef KGenericFactory<FlattenPathPlugin, KarbonView> FlattenPathPluginFactory;
34
34
K_EXPORT_COMPONENT_FACTORY( karbon_flattenpathplugin, FlattenPathPluginFactory( "karbonflattenpathplugin" ) )
35
35
 
36
 
FlattenPathPlugin::FlattenPathPlugin( KarbonViewBase *parent, const char* name, const QStringList & )
 
36
FlattenPathPlugin::FlattenPathPlugin( KarbonView *parent, const char* name, const QStringList & )
37
37
: Plugin( parent, name )
38
38
{
39
39
        new KAction(
47
47
void
48
48
FlattenPathPlugin::slotFlattenPath()
49
49
{
50
 
        KarbonPartBase *part = ((KarbonViewBase *)parent())->part();
 
50
        KarbonPart *part = ((KarbonView *)parent())->part();
51
51
        if( part && m_flattenPathDlg->exec() )
52
52
                part->addCommand( new VFlattenCmd( &part->document(), m_flattenPathDlg->flatness() ), true );
53
53
}