aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Cullmann <[email protected]>2015-07-31 10:30:49 +0200
committerChristoph Cullmann <[email protected]>2015-07-31 10:30:49 +0200
commit965e9274e3ec89cc8745bffc1330c5b34fcafbc5 (patch)
treec67f779f63b49de26a1d89efb79454a47bc039a1
parent3a471da232b5b23e3d29ac9127d00cb4bddb9f27 (diff)
remove some unmaintained and not ported plugins to avoid confusion
-rw-r--r--addons/CMakeLists.txt4
-rw-r--r--addons/kttsd/CMakeLists.txt14
-rw-r--r--addons/kttsd/Messages.sh3
-rw-r--r--addons/kttsd/kate_kttsd.desktop116
-rw-r--r--addons/kttsd/katekttsd.cpp105
-rw-r--r--addons/kttsd/katekttsd.h51
-rw-r--r--addons/kttsd/ui.rc15
-rw-r--r--addons/xmlcheck/CMakeLists.txt17
-rw-r--r--addons/xmlcheck/Messages.sh3
-rw-r--r--addons/xmlcheck/katexmlcheck.desktop117
-rw-r--r--addons/xmlcheck/plugin_katexmlcheck.cpp342
-rw-r--r--addons/xmlcheck/plugin_katexmlcheck.h82
-rw-r--r--addons/xmlcheck/ui.rc11
13 files changed, 0 insertions, 880 deletions
diff --git a/addons/CMakeLists.txt b/addons/CMakeLists.txt
index d8b95af..390301e 100644
--- a/addons/CMakeLists.txt
+++ b/addons/CMakeLists.txt
@@ -76,10 +76,6 @@ ecm_optional_add_subdirectory( textfilter )
#add_subdirectory( filetemplates )
-#add_subdirectory( kttsd )
-
-#add_subdirectory( xmlcheck )
-
if (KF5Plasma_FOUND AND KF5Service_FOUND)
ecm_optional_add_subdirectory(sessionapplet)
endif()
diff --git a/addons/kttsd/CMakeLists.txt b/addons/kttsd/CMakeLists.txt
deleted file mode 100644
index 91095c7..0000000
--- a/addons/kttsd/CMakeLists.txt
+++ /dev/null
@@ -1,14 +0,0 @@
-add_definitions(-DTRANSLATION_DOMAIN=\"kate_kttsd\")
-set(kate_kttsd_PART_SRCS katekttsd.cpp )
-
-kde4_add_plugin(kate_kttsd ${kate_kttsd_PART_SRCS})
-
-target_link_libraries(kate_kttsd ${KDE4_KDECORE_LIBS} ktexteditor ${KDE4_KPARTS_LIBS} kateinterfaces )
-
-
-install(TARGETS kate_kttsd DESTINATION ${PLUGIN_INSTALL_DIR}/ktexteditor )
-
-
-########### install files ###############
-
-install( FILES ui.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/kate/plugins/kate_kttsd)
diff --git a/addons/kttsd/Messages.sh b/addons/kttsd/Messages.sh
deleted file mode 100644
index 28688d0..0000000
--- a/addons/kttsd/Messages.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#! /bin/sh
-$EXTRACTRC *.rc >> rc.cpp
-$XGETTEXT *.cpp -o $podir/kate_kttsd.pot
diff --git a/addons/kttsd/kate_kttsd.desktop b/addons/kttsd/kate_kttsd.desktop
deleted file mode 100644
index 4f6bf10..0000000
--- a/addons/kttsd/kate_kttsd.desktop
+++ /dev/null
@@ -1,116 +0,0 @@
-[Desktop Entry]
-Type=Service
-ServiceTypes=Kate/Plugin
-X-KDE-Library=kate_kttsd
-X-Kate-Version=3.0
-Icon=kttsd
-Name=Jovie Text-to-Speech
-Name[ast]=Testu a voz Jovie
-Name[bg]=Jovie - четене на текст
-Name[bs]=Jovie (tekst‑u‑govor)
-Name[ca]=Text a veu Jovie
-Name[[email protected]]=Text a veu Jovie
-Name[cs]=Hlasová syntéza Jovie
-Name[da]=Jovie tekst-til-tale
-Name[de]=Jovie-Sprachausgabe
-Name[el]=Jovie Text-to-Speech
-Name[en_GB]=Jovie Text-to-Speech
-Name[es]=Complemento de texto hablado Jovie para KTextEditor
-Name[et]=Jovie teksti ettelugemine
-Name[eu]=Jovie testutik-hizketara
-Name[fi]=Jovie-puhesyntetisaattori
-Name[fr]=Synthèse vocale « Jovie »
-Name[ga]=Téacs-go-Caint Jovie
-Name[gl]=Texto-para-fala mediante Jovie
-Name[he]=מנוע טקסט לדיבור Jovie
-Name[hu]=Jovie szövegfelolvasó
-Name[ia]=Texto-a-Discurso (TextToSpeech) Jovie
-Name[is]=Jovie texti-í-tal
-Name[it]=Pronuncia di Jovie
-Name[ja]=Jovie 読み上げプラグイン
-Name[kk]=Jovie - мәтінді дауыстап оқу
-Name[km]=អត្ថបទ​ត្រូវ​និយាយ​របស់​ Jovie
-Name[ko]=Jovie 텍스트 음성 변환
-Name[lt]=Jovie teksto vertimas į kalbą
-Name[lv]=Jovie no teksta uz runu
-Name[mr]=जोव्ही मजकुर बोलून दाखवणारा
-Name[nb]=Jovie tekst til tale
-Name[nds]=Vörlesermoduul "Jovie"
-Name[nl]=Jovie tekst-naar-spraak
-Name[nn]=Jovie tekst-til-tale
-Name[pa]=ਜੋਵੀ ਟੈਕਸਟ ਤੋਂ ਬੋਲੀ
-Name[pl]=Tekst-na-mowę Jovie
-Name[pt]=Texto-para-Fala do Jovie
-Name[pt_BR]=Texto-para-fala Jovie
-Name[ro]=Text-în-vorbire Jovi
-Name[ru]=Служба синтеза речи Jovie
-Name[si]=Jovie පෙල-කියවීමට
-Name[sk]=Jovie Text-na-Reč
-Name[sl]=Besedilo-v-govor Jovie
-Name[sr]=Џови (текст‑у‑говор)
-Name[[email protected]]=Џови (текст‑у‑говор)
-Name[[email protected]]=Džovi (tekst‑u‑govor)
-Name[[email protected]]=Džovi (tekst‑u‑govor)
-Name[sv]=Jovie text-till-tal
-Name[tg]=Барномаи талаффузи матни Jovie
-Name[tr]=Jovie Metin Okuma
-Name[ug]=Jovie تېكىستتىن ئاۋازغا
-Name[uk]=Синтез мовлення з тексту Jovie
-Name[x-test]=xxJovie Text-to-Speechxx
-Name[zh_CN]=Jovie 语音合成
-Name[zh_TW]=Jovie 文字轉語音
-Comment=Adds a menu entry for speaking the text
-Comment[ast]=Amiesta una entrada de menú pa lleer testu
-Comment[bg]=Добавяне на запис в менюто за изговаряне на текст
-Comment[bs]=Dodaje stavku menija za izgovaranje teksta
-Comment[ca]=Afegeix una entrada al menú per parlar el text
-Comment[[email protected]]=Afig una entrada al menú per parlar el text
-Comment[cs]=Přidá položku v nabídce pro čtení textu
-Comment[da]=Tilføjer en menu til oplæsning af tekst
-Comment[de]=Fügt einen Menüeintrag zum Vorlesen des Textes hinzu
-Comment[el]=Προσθέτει μία καταχώρηση στο μενού για τη φωνητική απόδοση κειμένου
-Comment[en_GB]=Adds a menu entry for speaking the text
-Comment[es]=Añade una entrada de menú para leer el texto
-Comment[et]=Lisab menüükirje teksti kõnelemiseks
-Comment[eu]=Menuko sarrera gehitzen du testua hitzegiteko
-Comment[fi]=Lisää tekstin puhumismahdollisuuden valikkoon
-Comment[fr]=Ajoute une ligne de menu pour énoncer le texte
-Comment[ga]=Cuir iontráil sa roghchlár chun an téacs a léamh
-Comment[gl]=Engade unha entrada no menú para falar o texto
-Comment[he]=מוסיף תפריט להקראת הטקסט
-Comment[hu]=Menübejegyzés szövegfelolvasáshoz
-Comment[ia]=Adde un entrata de menu pro pronunciar le texto
-Comment[it]=Aggiunge una voce del menu per pronunciare il testo
-Comment[ja]=メニューにテキストを読み上げるための項目を追加します
-Comment[kk]=Мәзірге мәтінді дауыстау жолын қосу
-Comment[km]=បន្ថែម​ធាតុ​​ម៉ឺនុយ​សម្រាប់​ការ​អាន​អត្ថបទ
-Comment[ko]=텍스트를 말하는 메뉴 항목 추가
-Comment[lt]=Prideda meniu elementą teksto skaitymui
-Comment[lv]=Pievieno izvēlnes komandu, kas izrunā tekstu
-Comment[mr]=पाठ्य बोलण्याकरिता मेन्यू नोंद जोडतो
-Comment[nb]=Legger til en menyoppføring for å si teksten høyt
-Comment[nds]=Föögt en Menüindrag för't Vörlesen vun Text to
-Comment[nl]=Voegt een menuoptie toe voor het uitspreken van de tekst
-Comment[nn]=Legg til ei menyoppføring for opplesing av tekst
-Comment[pl]=Dodaje element menu, który powoduje wypowiedzenie tekstu
-Comment[pt]=Adiciona um item de menu para sintetizar o texto
-Comment[pt_BR]=Adiciona um item no menu para ler o texto
-Comment[ro]=Adaugă un element de meniu pentru vorbirea textului
-Comment[ru]=Добавляет меню синтеза речи
-Comment[si]=පෙළ කතා කරවීමට මෙනු ඇතුළත්කිරීමක් එක් කරයි
-Comment[sk]=Pridá položku ponuky pre hovorenie textu
-Comment[sl]=V meni doda vnos za izgovorjavo besedila
-Comment[sr]=Додаје ставку менија за изговарање текста
-Comment[[email protected]]=Додаје ставку менија за изговарање текста
-Comment[[email protected]]=Dodaje stavku menija za izgovaranje teksta
-Comment[[email protected]]=Dodaje stavku menija za izgovaranje teksta
-Comment[sv]=Lägger till ett menyalternativ för att läsa upp texten
-Comment[tg]=Вориди менюро барои талаффузи матн илова мекунад
-Comment[tr]=Metni okumak için bir menü girdisi oluşturur
-Comment[ug]=تېكىست ئوقۇش ئۈچۈن تىزىملىككە بىر تۈر قوشىدۇ
-Comment[uk]=Додає елемент меню для декламування тексту
-Comment[wa]=Radjoute ene intrêye el dressêye po lére li tecse
-Comment[x-test]=xxAdds a menu entry for speaking the textxx
-Comment[zh_CN]=添加一个菜单条目用来朗读文本
-Comment[zh_TW]=新增選單項目以唸出文字
-author=Olaf Jan Schmidt, [email protected]
diff --git a/addons/kttsd/katekttsd.cpp b/addons/kttsd/katekttsd.cpp
deleted file mode 100644
index 1d82252..0000000
--- a/addons/kttsd/katekttsd.cpp
+++ /dev/null
@@ -1,105 +0,0 @@
-/***************************************************************************
- A KTextEditor (Kate Part) plugin for speaking text.
-
- Copyright:
- (C) 2003-2004 by Olaf Schmidt <[email protected]>
- (C) 2005 by Gary Cramblitt <[email protected]>
- (C) 2009 by Laurent Montel <[email protected]>
-
- Original Author: Olaf Schmidt <[email protected]>
- ***************************************************************************/
-
-/***************************************************************************
- * *
- * 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. *
- * *
- ***************************************************************************/
-
-// KateKttsdPlugin includes.
-#include "katekttsd.h"
-#include "katekttsd.moc"
-#include <ktexteditor/document.h>
-// Qt includes.
-#include <QtCore/QTimer>
-#include <QtDBus/QtDBus>
-
-// KDE includes.
-#include <kmessagebox.h>
-#include <QAction>
-#include <klocalizedstring.h>
-#include <kstandarddirs.h>
-#include <ktoolinvocation.h>
-#include <KActionCollection>
-#include <KAboutData>
-#include <kate/mainwindow.h>
-
-K_PLUGIN_FACTORY(KateKttsdFactory, registerPlugin<KateKttsdPlugin>();)
-K_EXPORT_PLUGIN(KateKttsdFactory(KAboutData("kate_kttsd","kate_kttsd",ki18n("Jovie Text-to-Speech Plugin"), "0.1", ki18n("Jovie Text-to-Speech Plugin"), KAboutData::License_LGPL_V2)) )
-
-KateKttsdPlugin::KateKttsdPlugin(QObject* parent, const QList<QVariant>&)
- : Kate::Plugin ((Kate::Application*)parent)
-{
-}
-
-Kate::PluginView *KateKttsdPlugin::createView (Kate::MainWindow *mainWindow)
-{
- return new KateKttsdPluginView(mainWindow);
-}
-
-KateKttsdPluginView::KateKttsdPluginView( Kate::MainWindow *mw )
- : Kate::PluginView (mw),
- Kate::XMLGUIClient(KateKttsdFactory::componentData())
-{
- KGlobal::locale()->insertCatalog("kttsd");
- KAction *a = actionCollection()->addAction("tools_kttsd");
- a->setText(i18n("Speak Text"));
- a->setIcon(KIcon("preferences-desktop-text-to-speech"));
- connect( a, SIGNAL(triggered(bool)), this, SLOT(slotReadOut()) );
-
- mainWindow()->guiFactory()->addClient(this);
-}
-
-KateKttsdPluginView::~KateKttsdPluginView()
-{
- mainWindow()->guiFactory()->removeClient( this );
-}
-
-
-void KateKttsdPluginView::slotReadOut()
-{
- KTextEditor::View *v = mainWindow()->activeView();
- if ( !v )
- return;
- KTextEditor::Document *doc = v->document();
- QString text;
- if ( v->selection() )
- {
- text = v->selectionText();
- }
- else
- text = doc->text();
- if ( text.isEmpty() )
- return;
-
- // If KTTSD not running, start it.
- if (!QDBusConnection::sessionBus().interface()->isServiceRegistered("org.kde.kttsd"))
- {
- QString error;
- if (KToolInvocation::startServiceByDesktopName("kttsd", QStringList(), &error))
- {
- KMessageBox::error(0, i18n( "Starting Jovie Text-to-Speech Service Failed"), error );
- return;
- }
- }
-
- QDBusInterface kttsd( "org.kde.kttsd", "/KSpeech", "org.kde.KSpeech" );
-
- QDBusReply<int> reply = kttsd.call("say", text,0);
- if ( !reply.isValid())
- KMessageBox::error( 0, i18n( "D-Bus Call Failed" ),
- i18n( "The D-Bus call say failed." ));
-}
-
diff --git a/addons/kttsd/katekttsd.h b/addons/kttsd/katekttsd.h
deleted file mode 100644
index 1ee7783..0000000
--- a/addons/kttsd/katekttsd.h
+++ /dev/null
@@ -1,51 +0,0 @@
-/***************************************************************************
- A KTextEditor (Kate Part) plugin for speaking text.
-
- Copyright:
- (C) 2003-2004 by Olaf Schmidt <[email protected]>
- (C) 2005 by Gary Cramblitt <[email protected]>
-
- Original Author: Olaf Schmidt <[email protected]>
- ***************************************************************************/
-
-/***************************************************************************
- * *
- * 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. *
- * *
- ***************************************************************************/
-
-#ifndef _KATEKTTSD_H_
-#define _KATEKTTSD_H_
-
-#include <ktexteditor/plugin.h>
-#include <ktexteditor/view.h>
-#include <kate/plugin.h>
-
-#include <QtCore/QObject>
-
-class KateKttsdPlugin : public Kate::Plugin
-{
- Q_OBJECT
-
- public:
- explicit KateKttsdPlugin( QObject* parent = 0, const QList<QVariant>& = QList<QVariant>() );
- virtual ~KateKttsdPlugin() {};
- Kate::PluginView *createView(Kate::MainWindow *mainWindow);
-};
-
-class KateKttsdPluginView : public Kate::PluginView, public Kate::XMLGUIClient
-{
- Q_OBJECT
-
- public:
- explicit KateKttsdPluginView(Kate::MainWindow *mw );
- ~KateKttsdPluginView();
-
- public Q_SLOTS:
- void slotReadOut();
-};
-
-#endif // _KATEKTTSD_H_
diff --git a/addons/kttsd/ui.rc b/addons/kttsd/ui.rc
deleted file mode 100644
index 08129dc..0000000
--- a/addons/kttsd/ui.rc
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE kpartgui>
-<gui name="kate_kttsd" library="kate_kttsd" version="4" translationDomain="kate_kttsd">
- <MenuBar>
- <Menu name="tools">
- <text>&amp;Tools</text>
- <Action name="tools_kttsd"/>
- </Menu>
- </MenuBar>
- <ToolBar name="mainToolBar">
- <text>Main Toolbar</text>
- <Action name="tools_kttsd"/>
- </ToolBar>
-</gui>
-<!-- kate: space-indent on; indent-width 4; replace-tabs on; -->
diff --git a/addons/xmlcheck/CMakeLists.txt b/addons/xmlcheck/CMakeLists.txt
deleted file mode 100644
index eb26da0..0000000
--- a/addons/xmlcheck/CMakeLists.txt
+++ /dev/null
@@ -1,17 +0,0 @@
-########### next target ###############
-
-add_definitions(-DTRANSLATION_DOMAIN=\"katexmlcheck\")
-
-set(katexmlcheckplugin_PART_SRCS plugin_katexmlcheck.cpp )
-
-
-
-kde4_add_plugin(katexmlcheckplugin ${katexmlcheckplugin_PART_SRCS})
-
-target_link_libraries(katexmlcheckplugin ${KDE4_KDEUI_LIBS} ktexteditor kateinterfaces )
-
-install(TARGETS katexmlcheckplugin DESTINATION ${PLUGIN_INSTALL_DIR}/ktexteditor )
-
-########### install files ###############
-
-install( FILES ui.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/kate/plugins/katexmlcheck )
diff --git a/addons/xmlcheck/Messages.sh b/addons/xmlcheck/Messages.sh
deleted file mode 100644
index fca2ad6..0000000
--- a/addons/xmlcheck/Messages.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#! /bin/sh
-$EXTRACTRC *.rc >> rc.cpp
-$XGETTEXT *.cpp -o $podir/katexmlcheck.pot
diff --git a/addons/xmlcheck/katexmlcheck.desktop b/addons/xmlcheck/katexmlcheck.desktop
deleted file mode 100644
index 55b9c97..0000000
--- a/addons/xmlcheck/katexmlcheck.desktop
+++ /dev/null
@@ -1,117 +0,0 @@
-[Desktop Entry]
-Type=Service
-ServiceTypes=Kate/Plugin
-X-KDE-Library=katexmlcheckplugin
-X-Kate-Version=2.9
-Name=XML Validation
-Name[ast]=Validación XML
-Name[bg]=Валидиране на XML
-Name[bs]=Ovjera XML‑a
-Name[ca]=Validació de l'XML
-Name[[email protected]]=Validació d'XML
-Name[cs]=Validace XML
-Name[da]=XML-validering
-Name[de]=XML-Überprüfung
-Name[el]=Έλεγχος εγκυρότητας XML
-Name[en_GB]=XML Validation
-Name[es]=Validación XML
-Name[et]=XML-i kontrollija
-Name[eu]=XMLren balioztatzea
-Name[fa]=اعتبارسنجی Kate XML
-Name[fi]=XML-validointi
-Name[fr]=Validation du XML
-Name[ga]=Bailíochtú XML
-Name[gl]=Validación de XML
-Name[he]=אימות XML
-Name[hu]=XML-ellenőrző
-Name[ia]=Validation XML
-Name[it]=Validazione XML
-Name[ja]=XML 検証
-Name[kk]=XML-ды тексеруі
-Name[km]=សុពលកម្ម​ XML
-Name[ko]=XML 검사기
-Name[lt]=XML patikra
-Name[lv]=XML validācija
-Name[mr]=XML व्हेलिडेशन
-Name[nb]=XML-validator
-Name[nds]=XML-Prööv
-Name[nl]=XML-validatie
-Name[nn]=XML-validator
-Name[pa]=XML ਵੈਧਤਾ
-Name[pl]=Sprawdzenie XML
-Name[pt]=Validação de XML
-Name[pt_BR]=Validação de XML
-Name[ro]=Validare XML
-Name[ru]=Проверка XML
-Name[si]=XML වලංගුකරණය
-Name[sk]=XML kontrola
-Name[sl]=Potrjevanje veljavnosti XML-ja
-Name[sr]=Овера ИксМЛ‑а
-Name[[email protected]]=Овјера ИксМЛ‑а
-Name[[email protected]]=Ovjera XML‑a
-Name[[email protected]]=Overa XML‑a
-Name[sv]=XML-validering
-Name[tg]=Муайянкунии XML
-Name[tr]=XML Doğrulama
-Name[ug]=XML دەلىللەش
-Name[uk]=Перевірка XML
-Name[vi]=Xác nhận XML
-Name[wa]=Validåcion XML
-Name[x-test]=xxXML Validationxx
-Name[zh_CN]=XML 校验
-Name[zh_TW]=XML 檢查器
-Comment=Validates XML files using xmllint
-Comment[ast]=Valida ficheros XML usando xmllint
-Comment[bg]=Валидиране на XML-файлове с помощта на xmllint
-Comment[bs]=Overava XML datoteke naredbom xmllint
-Comment[ca]=Valida els fitxers XML usant el «xmllint»
-Comment[[email protected]]=Valida els fitxers XML usant el xmllint
-Comment[cs]=Ověřuje soubory XML pomocí xmllint
-Comment[da]=Validerer XML-filer ved brug af xmllint
-Comment[de]=Überprüft XML-Dateien mit xmllint
-Comment[el]=Ελέγχει την εγκυρότητα XML αρχείων με χρήση του xmllint
-Comment[en_GB]=Validates XML files using xmllint
-Comment[es]=Valida archivos XML usando xmllint
-Comment[et]=Kontrollib XML-faile xmllint'i abil
-Comment[eu]=XML fitxategiak balioztatzen ditu xmllint erabiliz
-Comment[fi]=Validoi XML-tiedostot xmllintiä käyttäen
-Comment[fr]= Valide les fichiers XML à l'aide de « xmllint »
-Comment[ga]=Bailíochtaigh comhaid XML le xmllint
-Comment[gl]=Valida ficheiros XML usando xmllint
-Comment[he]=מאמת קבצי XML בעזרת xmllint
-Comment[hu]=XML-fájlok ellenőrzése az xmllint programmal
-Comment[ia]=Valida files XML per usar xmllint
-Comment[it]=Convalida i file XML usando xmllint
-Comment[ja]=xmllint で XML ファイルを検証します
-Comment[kk]=xmllint көмегімен XML файлдарды тексеру
-Comment[km]=ធ្វើ​ឲ្យ​ឯកសារ XML មាន​សុពលភាព​ដោយ​ប្រើ xmllint
-Comment[ko]=xmllint로 XML 파일 검사하기
-Comment[lt]=Tikrina XML failus naudojant xmllint
-Comment[lv]=Pārbauda XML datnes izmantojot xmllint
-Comment[mr]=XML फाईल्स xmllint वापरून व्हेलिडेट करतो
-Comment[nb]=Validerer XML-filer med xmllint
-Comment[nds]=Pröövt XML-Dateien mit "xmllint"
-Comment[ne]=xmllint प्रयोग गरेर एक्सएमएल फाइलहरू प्रमाणीकरण गर्दछ
-Comment[nl]=Valideert XML-bestanden met behulp van xmllint
-Comment[nn]=Validerer XML-filer med xmllint
-Comment[pl]=Sprawdza poprawność składni XML za pomocą xmllint
-Comment[pt]=Valida os ficheiros XML com o 'xmllint'
-Comment[pt_BR]=Valida arquivos em XML com o xmllint
-Comment[ro]=Validează fișiere XML utilizînd xmllint
-Comment[ru]=Проверка правильности XML с использованием xmllint
-Comment[si]=mllint භාවිතයෙන් XML වලංගු කරන්න
-Comment[sk]=Skontroluje XML pomovou xmlint
-Comment[sl]=Potrdi veljavnost datotek XML z xmllint
-Comment[sr]=Оверава ИксМЛ фајлове наредбом xmllint
-Comment[[email protected]]=Овјерава ИксМЛ фајлове наредбом xmllint
-Comment[[email protected]]=Ovjerava XML fajlove naredbom xmllint
-Comment[[email protected]]=Overava XML fajlove naredbom xmllint
-Comment[sv]=Validerar XML-filer med XMLlint
-Comment[tg]=Файлҳои XML тавассути xmllint муайян мекунад
-Comment[tr]=XML dosyalarını xmllint kullanarak doğrular
-Comment[ug]=xmllint پروگرامما ئىشلىتىپ XML ھۆججەت دەلىللەيدۇ
-Comment[uk]=Перевіряє файли XML за допомогою xmllint
-Comment[vi]=Xác nhận các tập tin XML sử dụng xmllint
-Comment[x-test]=xxValidates XML files using xmllintxx
-Comment[zh_CN]=使用 xmllint 程序校验 XML 文件
-Comment[zh_TW]=用 xmllint 來確認 XML 檔
diff --git a/addons/xmlcheck/plugin_katexmlcheck.cpp b/addons/xmlcheck/plugin_katexmlcheck.cpp
deleted file mode 100644
index b0769d7..0000000
--- a/addons/xmlcheck/plugin_katexmlcheck.cpp
+++ /dev/null
@@ -1,342 +0,0 @@
-/***************************************************************************
- plugin_katexmlcheck.cpp - checks XML files using xmllint
- -------------------
- begin : 2002-07-06
- copyright : (C) 2002 by Daniel Naber
- ***************************************************************************/
-
-/***************************************************************************
- 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.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- ***************************************************************************/
-
-/*
--fixme: show dock if "Validate XML" is selected (doesn't currently work when Kate
- was just started and the dockwidget isn't yet visible)
--fixme(?): doesn't correctly disappear when deactivated in config
-*/
-
-#include "plugin_katexmlcheck.h"
-#include <QHBoxLayout>
-#include "plugin_katexmlcheck.moc"
-
-#include <qfile.h>
-#include <qinputdialog.h>
-#include <qregexp.h>
-#include <qstring.h>
-#include <qtextstream.h>
-#include <kactioncollection.h>
-#include <QApplication>
-#include <QTreeWidget>
-#include <QHeaderView>
-
-#include <kdefakes.h> // for setenv
-#include <QAction>
-#include <kcursor.h>
-#include <kcomponentdata.h>
-#include <klocalizedstring.h>
-#include <kmessagebox.h>
-#include <kstandarddirs.h>
-#include <ktemporaryfile.h>
-#include <kpluginfactory.h>
-#include <kprocess.h>
-
-K_PLUGIN_FACTORY(PluginKateXMLCheckFactory, registerPlugin<PluginKateXMLCheck>();)
-K_EXPORT_PLUGIN(PluginKateXMLCheckFactory("katexmlcheck"))
-
-PluginKateXMLCheck::PluginKateXMLCheck( QObject* parent, const QVariantList& )
- : Kate::Plugin ( (Kate::Application *)parent )
-{
-}
-
-
-PluginKateXMLCheck::~PluginKateXMLCheck()
-{
-}
-
-
-Kate::PluginView *PluginKateXMLCheck::createView(Kate::MainWindow *mainWindow)
-{
- return new PluginKateXMLCheckView(mainWindow);
-}
-
-
-//---------------------------------
-PluginKateXMLCheckView::PluginKateXMLCheckView(Kate::MainWindow *mainwin)
- : Kate::PluginView (mainwin), Kate::XMLGUIClient(PluginKateXMLCheckFactory::componentData()),win(mainwin)
-{
- dock = win->createToolView("kate_plugin_xmlcheck_ouputview", Kate::MainWindow::Bottom, QIcon::fromTheme("misc"), i18n("XML Checker Output"));
- listview = new QTreeWidget( dock );
- m_tmp_file=0;
- m_proc=0;
- QAction *a = actionCollection()->addAction("xml_check");
- a->setText(i18n("Validate XML"));
- connect(a, SIGNAL(triggered()), this, SLOT(slotValidate()));
- // TODO?:
- //(void) new KAction ( i18n("Indent XML"), KShortcut(), this,
- // SLOT(slotIndent()), actionCollection(), "xml_indent" );
-
- listview->setFocusPolicy(Qt::NoFocus);
- QStringList headers;
- headers << i18n("#");
- headers << i18n("Line");
- headers << i18n("Column");
- headers << i18n("Message");
- listview->setHeaderLabels(headers);
- listview->setRootIsDecorated(false);
- connect(listview, SIGNAL(itemClicked(QTreeWidgetItem*,int)), SLOT(slotClicked(QTreeWidgetItem*,int)));
-
- QHeaderView *header = listview->header();
- header->setResizeMode(0, QHeaderView::ResizeToContents);
- header->setResizeMode(1, QHeaderView::ResizeToContents);
- header->setResizeMode(2, QHeaderView::ResizeToContents);
-
-/* TODO?: invalidate the listview when document has changed
- Kate::View *kv = application()->activeMainWindow()->activeView();
- if( ! kv ) {
- qDebug() << "Warning: no Kate::View";
- return;
- }
- connect(kv, SIGNAL(modifiedChanged()), this, SLOT(slotUpdate()));
-*/
-
- m_proc = new KProcess();
- connect(m_proc, SIGNAL(finished(int,QProcess::ExitStatus)), this, SLOT(slotProcExited(int,QProcess::ExitStatus)));
- // we currently only want errors:
- m_proc->setOutputChannelMode(KProcess::OnlyStderrChannel);
-
- mainWindow()->guiFactory()->addClient(this);
-}
-
-PluginKateXMLCheckView::~PluginKateXMLCheckView()
-{
- mainWindow()->guiFactory()->removeClient( this );
- delete m_proc;
- delete m_tmp_file;
- delete dock;
-}
-
-void PluginKateXMLCheckView::slotProcExited(int exitCode, QProcess::ExitStatus exitStatus)
-{
- Q_UNUSED(exitCode);
-
- // FIXME: doesn't work correct the first time:
- //if( m_dockwidget->isDockBackPossible() ) {
- // m_dockwidget->dockBack();
-// }
-
- if (exitStatus != QProcess::NormalExit) {
- QTreeWidgetItem *item = new QTreeWidgetItem();
- item->setText(0, QString("1").rightJustified(4,' '));
- item->setText(3, "Validate process crashed.");
- listview->addTopLevelItem(item);
- return;
- }
-
- qDebug() << "slotProcExited()";
- QApplication::restoreOverrideCursor();
- delete m_tmp_file;
- QString proc_stderr = QString::fromLocal8Bit(m_proc->readAllStandardError());
- m_tmp_file=0;
- listview->clear();
- uint list_count = 0;
- uint err_count = 0;
- if( ! m_validating ) {
- // no i18n here, so we don't get an ugly English<->Non-english mixup:
- QString msg;
- if( m_dtdname.isEmpty() ) {
- msg = "No DOCTYPE found, will only check well-formedness.";
- } else {
- msg = '\'' + m_dtdname + "' not found, will only check well-formedness.";
- }
- QTreeWidgetItem *item = new QTreeWidgetItem();
- item->setText(0, QString("1").rightJustified(4,' '));
- item->setText(3, msg);
- listview->addTopLevelItem(item);
- list_count++;
- }
- if( ! proc_stderr.isEmpty() ) {
- QStringList lines = proc_stderr.split("\n", QString::SkipEmptyParts);
- QString linenumber, msg;
- int line_count = 0;
- for(QStringList::Iterator it = lines.begin(); it != lines.end(); ++it) {
- QString line = *it;
- line_count++;
- int semicolon_1 = line.indexOf(':');
- int semicolon_2 = line.indexOf(':', semicolon_1+1);
- int semicolon_3 = line.indexOf(':', semicolon_2+2);
- int caret_pos = line.indexOf('^');
- if( semicolon_1 != -1 && semicolon_2 != -1 && semicolon_3 != -1 ) {
- linenumber = line.mid(semicolon_1+1, semicolon_2-semicolon_1-1).trimmed();
- linenumber = linenumber.rightJustified(6, ' '); // for sorting numbers
- msg = line.mid(semicolon_3+1, line.length()-semicolon_3-1).trimmed();
- } else if( caret_pos != -1 || line_count == lines.size() ) {
- // TODO: this fails if "^" occurs in the real text?!
- if( line_count == lines.size() && caret_pos == -1 ) {
- msg = msg+'\n'+line;
- }
- QString col = QString::number(caret_pos);
- if( col == "-1" ) {
- col = "";
- }
- err_count++;
- list_count++;
- QTreeWidgetItem *item = new QTreeWidgetItem();
- item->setText(0, QString::number(list_count).rightJustified(4,' '));
- item->setText(1, linenumber);
- item->setTextAlignment(1, (item->textAlignment(1) & ~Qt::AlignHorizontal_Mask) | Qt::AlignRight);
- item->setText(2, col);
- item->setTextAlignment(2, (item->textAlignment(2) & ~Qt::AlignHorizontal_Mask) | Qt::AlignRight);
- item->setText(3, msg);
- listview->addTopLevelItem(item);
- } else {
- msg = msg+'\n'+line;
- }
- }
- }
- if( err_count == 0 ) {
- QString msg;
- if( m_validating ) {
- msg = "No errors found, document is valid."; // no i18n here
- } else {
- msg = "No errors found, document is well-formed."; // no i18n here
- }
- QTreeWidgetItem *item = new QTreeWidgetItem();
- item->setText(0, QString::number(list_count+1).rightJustified(4,' '));
- item->setText(3, msg);
- listview->addTopLevelItem(item);
- }
-}
-
-
-void PluginKateXMLCheckView::slotClicked(QTreeWidgetItem *item, int column)
-{
- Q_UNUSED(column);
- qDebug() << "slotClicked";
- if( item ) {
- bool ok = true;
- uint line = item->text(1).toUInt(&ok);
- bool ok2 = true;
- uint column = item->text(2).toUInt(&ok);
- if( ok && ok2 ) {
- KTextEditor::View *kv = win->activeView();
- if( ! kv )
- return;
-
- kv->setCursorPosition(KTextEditor::Cursor (line-1, column));
- }
- }
-}
-
-
-void PluginKateXMLCheckView::slotUpdate()
-{
- qDebug() << "slotUpdate() (not implemented yet)";
-}
-
-
-bool PluginKateXMLCheckView::slotValidate()
-{
- qDebug() << "slotValidate()";
-
- win->showToolView (dock);
-
- m_proc->clearProgram();
- m_validating = false;
- m_dtdname = "";
-
- KTextEditor::View *kv = win->activeView();
- if( ! kv )
- return false;
- delete m_tmp_file;
- m_tmp_file = new KTemporaryFile();
- if( !m_tmp_file->open() ) {
- qDebug() << "Error (slotValidate()): could not create '" << m_tmp_file->fileName() << "': " << m_tmp_file->errorString();
- KMessageBox::error(0, i18n("<b>Error:</b> Could not create "
- "temporary file '%1'.", m_tmp_file->fileName()));
- delete m_tmp_file;
- m_tmp_file=0L;
- return false;
- }
- QTextStream s ( m_tmp_file );
- s << kv->document()->text();
- s.flush();
-
- QString exe = KStandardDirs::findExe("xmllint");
- if( exe.isEmpty() ) {
- exe = KStandardDirs::locate("exe", "xmllint");
- }
-
- // use catalogs for KDE docbook:
- if( ! getenv("XML_CATALOG_FILES") ) {
- KComponentData ins("katexmlcheckplugin");
- QString catalogs;
- catalogs += ins.dirs()->findResource("data", "ksgmltools2/customization/catalog.xml");
- qDebug() << "catalogs: " << catalogs;
- setenv("XML_CATALOG_FILES", QFile::encodeName( catalogs ).data(), 1);
- }
- //qDebug() << "**catalogs: " << getenv("XML_CATALOG_FILES");
-
- *m_proc << exe << "--noout";
-
- // tell xmllint the working path of the document's file, if possible.
- // otherweise it will not find relative DTDs
- QString path = kv->document()->url().directory();
- qDebug() << path;
- if (!path.isEmpty()) {
- *m_proc << "--path" << path;
- }
-
- // heuristic: assume that the doctype is in the first 10,000 bytes:
- QString text_start = kv->document()->text().left(10000);
- // remove comments before looking for doctype (as a doctype might be commented out
- // and needs to be ignored then):
- QRegExp re("<!--.*-->");
- re.setMinimal(true);
- text_start.remove(re);
- QRegExp re_doctype("<!DOCTYPE\\s+(.*)\\s+(?:PUBLIC\\s+[\"'].*[\"']\\s+[\"'](.*)[\"']|SYSTEM\\s+[\"'](.*)[\"'])", Qt::CaseInsensitive);
- re_doctype.setMinimal(true);
-
- if( re_doctype.indexIn(text_start) != -1 ) {
- QString dtdname;
- if( ! re_doctype.cap(2).isEmpty() ) {
- dtdname = re_doctype.cap(2);
- } else {
- dtdname = re_doctype.cap(3);
- }
- if( !dtdname.startsWith("http:") ) { // todo: u_dtd.isLocalFile() doesn't work :-(
- // a local DTD is used
- m_validating = true;
- *m_proc << "--valid";
- } else {
- m_validating = true;
- *m_proc << "--valid";
- }
- } else if( text_start.indexOf("<!DOCTYPE") != -1 ) {
- // DTD is inside the XML file
- m_validating = true;
- *m_proc << "--valid";
- }
- *m_proc << m_tmp_file->fileName();
-
- m_proc->start();
- if( ! m_proc->waitForStarted(-1) ) {
- KMessageBox::error(0, i18n("<b>Error:</b> Failed to execute xmllint. Please make "
- "sure that xmllint is installed. It is part of libxml2."));
- return false;
- }
- QApplication::setOverrideCursor(Qt::WaitCursor);
- return true;
-}
diff --git a/addons/xmlcheck/plugin_katexmlcheck.h b/addons/xmlcheck/plugin_katexmlcheck.h
deleted file mode 100644
index 648f28c..0000000
--- a/addons/xmlcheck/plugin_katexmlcheck.h
+++ /dev/null
@@ -1,82 +0,0 @@
- /***************************************************************************
- plugin_katexmlcheck.h
- -------------------
- begin : 2002-07-06
- copyright : (C) 2002 by Daniel Naber
- ***************************************************************************/
-
-/***************************************************************************
- 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.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- ***************************************************************************/
-
-#ifndef PLUGIN_KATEXMLCHECK_H
-#define PLUGIN_KATEXMLCHECK_H
-
-#include <QProcess>
-
-#include <kate/plugin.h>
-#include <kate/application.h>
-#include <kate/documentmanager.h>
-#include <kate/mainwindow.h>
-
-#include <ktexteditor/view.h>
-#include <ktexteditor/document.h>
-
-class QTreeWidget;
-class QTreeWidgetItem;
-class KTemporaryFile;
-class KProcess;
-
-class PluginKateXMLCheckView : public Kate::PluginView, public Kate::XMLGUIClient
-{
- Q_OBJECT
-
-public:
- PluginKateXMLCheckView(Kate::MainWindow *mainwin);
- virtual ~PluginKateXMLCheckView();
-
- Kate::MainWindow *win;
- QWidget *dock;
-
-public Q_SLOTS:
- bool slotValidate();
- void slotClicked(QTreeWidgetItem *item, int column);
- void slotProcExited(int exitCode, QProcess::ExitStatus exitStatus);
- void slotUpdate();
-
-private:
- KTemporaryFile *m_tmp_file;
- KParts::ReadOnlyPart *part;
- bool m_validating;
- KProcess *m_proc;
- QString m_proc_stderr;
- QString m_dtdname;
- QTreeWidget *listview;
-};
-
-
-class PluginKateXMLCheck : public Kate::Plugin
-{
- Q_OBJECT
-
-public:
- explicit PluginKateXMLCheck( QObject* parent = 0, const QVariantList& = QVariantList() );
-
- virtual ~PluginKateXMLCheck();
- Kate::PluginView *createView(Kate::MainWindow *mainWindow);
-};
-
-#endif // PLUGIN_KATEXMLCHECK_H
diff --git a/addons/xmlcheck/ui.rc b/addons/xmlcheck/ui.rc
deleted file mode 100644
index a100c71..0000000
--- a/addons/xmlcheck/ui.rc
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE kpartgui>
-<gui name="katexmlcheck" library="libkatexmlcheckplugin" version="5" translationDomain="katexmlcheck">
- <MenuBar>
- <Menu name="xml">
- <text>&amp;XML</text>
- <Action name="xml_check"/>
- </Menu>
- </MenuBar>
-</gui>
-<!-- kate: space-indent on; indent-width 4; replace-tabs on; -->