21 #include "katedocumenthelpers.h"
22 #include "katedocumenthelpers.moc"
24 #include "katedocument.h"
27 #include <tdepopupmenu.h>
31 : KParts::BrowserExtension( doc,
"katepartbrowserextension" ),
34 connect( doc, TQ_SIGNAL( selectionChanged() ),
41 if (m_doc->activeView())
42 m_doc->activeView()->copy();
52 if (m_doc->activeView())
53 emit
enableAction(
"copy", m_doc->activeView()->hasSelection() );
void enableAction(const char *name, bool enabled)
KateBrowserExtension(KateDocument *doc)
Constructor.
void copy()
copy text to clipboard
void slotSelectionChanged()
selection has changed
void print()
print the current file