summaryrefslogtreecommitdiffstats
path: root/kword/KWFrameView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kword/KWFrameView.cpp')
-rw-r--r--kword/KWFrameView.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kword/KWFrameView.cpp b/kword/KWFrameView.cpp
index 927b0f13..cdaa15b2 100644
--- a/kword/KWFrameView.cpp
+++ b/kword/KWFrameView.cpp
@@ -175,14 +175,14 @@ void KWFrameView::paintFrameAttributes(TQPainter *painter, const TQRect &crect,
// *********** Policies *********
FramePolicy::FramePolicy(KWFrameView *view) {
- m_separator = new KActionSeparator();
+ m_separator = new TDEActionSeparator();
m_view = view;
}
-void FramePolicy::addFloatingAction(KWView *view, TQPtrList<KAction> &actionList) {
+void FramePolicy::addFloatingAction(KWView *view, TQPtrList<TDEAction> &actionList) {
if(m_view->frame()->frameSet()->isMainFrameset())
return;
actionList.append(m_separator);
- KToggleAction *action = dynamic_cast<KToggleAction*> (view->actionCollection()->
+ TDEToggleAction *action = dynamic_cast<TDEToggleAction*> (view->actionCollection()->
action("inline_frame"));
Q_ASSERT(action);
KWFrameSet *parentFs = m_view->frame()->frameSet()->groupmanager() ?
@@ -327,12 +327,12 @@ MouseMeaning PartFramePolicy::mouseMeaning( const KoPoint &point, int keyState )
TQPopupMenu* PartFramePolicy::createPopup( const KoPoint &point, KWView *view ) {
Q_UNUSED(point);
KWPartFrameSet *part = static_cast<KWPartFrameSet *>(m_view->frame()->frameSet());
- KActionSeparator *separator=new KActionSeparator();
- KActionCollection *actionCollection = view->actionCollection();
- TQPtrList<KAction> actionList;
+ TDEActionSeparator *separator=new TDEActionSeparator();
+ TDEActionCollection *actionCollection = view->actionCollection();
+ TQPtrList<TDEAction> actionList;
actionList.append(separator);
if( !part->protectContent() ) {
- KToggleAction *action = dynamic_cast<KToggleAction*>(actionCollection->action("embedded_store_internal"));
+ TDEToggleAction *action = dynamic_cast<TDEToggleAction*>(actionCollection->action("embedded_store_internal"));
Q_ASSERT(action);
action->setChecked(part->getChild()->document()->storeInternal());
action->setEnabled(part->getChild()->document()->hasExternURL());
@@ -367,16 +367,16 @@ MouseMeaning TextFramePolicy::mouseMeaning( const KoPoint &point, int keyState )
TQPopupMenu* TextFramePolicy::createPopup( const KoPoint &point, KWView *view ) {
if( m_view->isBorderHit(point) ) {
KWFrameSet *fs = m_view->frame()->frameSet();
- KActionSeparator *separator=new KActionSeparator();
- KActionCollection *actionCollection = view->actionCollection();
- TQPtrList<KAction> actionList;
+ TDEActionSeparator *separator=new TDEActionSeparator();
+ TDEActionCollection *actionCollection = view->actionCollection();
+ TQPtrList<TDEAction> actionList;
if(fs->isHeaderOrFooter()) {
actionList.append(separator);
actionList.append(actionCollection->action("configure_headerfooter"));
}
else if (fs->isFootEndNote()) {
actionList.append(separator);
- KAction *action = actionCollection->action("goto_footendnote");
+ TDEAction *action = actionCollection->action("goto_footendnote");
action->setText( fs->isFootNote() ?
i18n( "Go to Footnote" ) : i18n( "Go to Endnote" ) );
actionList.append(action);
@@ -402,8 +402,8 @@ TQPopupMenu* TextFramePolicy::createPopup( const KoPoint &point, KWView *view )
view->unplugActionList( "datatools_link" );
// Those lists are stored in the KWView. Grab a ref to them.
- TQPtrList<KAction> &actionList = view->dataToolActionList();
- TQPtrList<KAction> &variableList = view->variableActionList();
+ TQPtrList<TDEAction> &actionList = view->dataToolActionList();
+ TQPtrList<TDEAction> &variableList = view->variableActionList();
actionList.clear();
variableList.clear();
@@ -443,7 +443,7 @@ TQPopupMenu* TextFramePolicy::createPopup( const KoPoint &point, KWView *view )
return view->popupMenu("footnote_popup");
}
if ( singleWord ) {
- TQPtrList<KAction> actionCheckSpellList = view->listOfResultOfCheckWord( word );
+ TQPtrList<TDEAction> actionCheckSpellList = view->listOfResultOfCheckWord( word );
if ( !actionCheckSpellList.isEmpty() ) {
view->plugActionList( "spell_result_action", actionCheckSpellList );
return view->popupMenu("text_popup_spell_with_result");
@@ -464,11 +464,11 @@ MouseMeaning ImageFramePolicy::mouseMeaning( const KoPoint &point, int keyState
}
TQPopupMenu* ImageFramePolicy::createPopup( const KoPoint &point, KWView *view ) {
Q_UNUSED(point);
- KActionSeparator *separator=new KActionSeparator();
- KActionCollection *actionCollection = view->actionCollection();
- TQPtrList<KAction> actionList;
+ TDEActionSeparator *separator=new TDEActionSeparator();
+ TDEActionCollection *actionCollection = view->actionCollection();
+ TQPtrList<TDEAction> actionList;
actionList.append(separator);
- KAction *action = actionCollection->action("change_picture");
+ TDEAction *action = actionCollection->action("change_picture");
Q_ASSERT(action);
actionList.append(action);
action = actionCollection->action("save_picture");