mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 18:32:53 +00:00
39 lines
1.1 KiB
C++
39 lines
1.1 KiB
C++
/***************************************************************************
|
|
* Copyright (C) 2002 by Wilco Greven <greven@kde.org> *
|
|
* Copyright (C) 2008 by Pino Toscano <pino@kde.org> *
|
|
* *
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
* it under the terms of the GNU General Public License as published by *
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
* (at your option) any later version. *
|
|
***************************************************************************/
|
|
|
|
#include "extensions.h"
|
|
|
|
// local includes
|
|
#include "part.h"
|
|
|
|
namespace Okular
|
|
{
|
|
|
|
/*
|
|
* BrowserExtension class
|
|
*/
|
|
BrowserExtension::BrowserExtension(Part* parent)
|
|
: KParts::BrowserExtension( parent ), m_part( parent )
|
|
{
|
|
emit enableAction("print", true);
|
|
setURLDropHandlingEnabled(true);
|
|
}
|
|
|
|
|
|
void BrowserExtension::print()
|
|
{
|
|
m_part->slotPrint();
|
|
}
|
|
|
|
}
|
|
|
|
#include "moc_extensions.cpp"
|
|
|
|
/* kate: replace-tabs on; indent-width 4; */
|