summaryrefslogtreecommitdiffstats
path: root/tdeprint/rlpr
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-06 15:56:40 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-06 15:56:40 -0600
commite16866e072f94410321d70daedbcb855ea878cac (patch)
treeee3f52eabde7da1a0e6ca845fb9c2813cf1558cf /tdeprint/rlpr
parenta58c20c1a7593631a1b50213c805507ebc16adaf (diff)
downloadtdelibs-e16866e072f94410321d70daedbcb855ea878cac.tar.gz
tdelibs-e16866e072f94410321d70daedbcb855ea878cac.zip
Actually move the kde files that were renamed in the last commit
Diffstat (limited to 'tdeprint/rlpr')
-rw-r--r--tdeprint/rlpr/CMakeLists.txt54
-rw-r--r--tdeprint/rlpr/Makefile.am17
-rw-r--r--tdeprint/rlpr/kmconfigproxy.cpp47
-rw-r--r--tdeprint/rlpr/kmconfigproxy.h40
-rw-r--r--tdeprint/rlpr/kmproprlpr.cpp75
-rw-r--r--tdeprint/rlpr/kmproprlpr.h43
-rw-r--r--tdeprint/rlpr/kmproxywidget.cpp71
-rw-r--r--tdeprint/rlpr/kmproxywidget.h43
-rw-r--r--tdeprint/rlpr/kmrlprfactory.cpp28
-rw-r--r--tdeprint/rlpr/kmrlprmanager.cpp158
-rw-r--r--tdeprint/rlpr/kmrlprmanager.h48
-rw-r--r--tdeprint/rlpr/kmrlpruimanager.cpp55
-rw-r--r--tdeprint/rlpr/kmrlpruimanager.h36
-rw-r--r--tdeprint/rlpr/kmwrlpr.cpp210
-rw-r--r--tdeprint/rlpr/kmwrlpr.h50
-rw-r--r--tdeprint/rlpr/krlprprinterimpl.cpp76
-rw-r--r--tdeprint/rlpr/krlprprinterimpl.h36
-rw-r--r--tdeprint/rlpr/rlpr.print84
18 files changed, 1171 insertions, 0 deletions
diff --git a/tdeprint/rlpr/CMakeLists.txt b/tdeprint/rlpr/CMakeLists.txt
new file mode 100644
index 000000000..f8468a0dc
--- /dev/null
+++ b/tdeprint/rlpr/CMakeLists.txt
@@ -0,0 +1,54 @@
+#################################################
+#
+# (C) 2010 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_definitions(
+ -D_KDEPRINT_COMPILE
+)
+
+include_directories(
+ ${TQT_INCLUDE_DIRS}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}/tdecore
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/dcop
+ ${CMAKE_SOURCE_DIR}/tdecore
+ ${CMAKE_SOURCE_DIR}/tdeui
+ ${CMAKE_SOURCE_DIR}/tdeprint
+ ${CMAKE_SOURCE_DIR}/tdeprint/management
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES rlpr.print DESTINATION ${DATA_INSTALL_DIR}/tdeprint/plugins )
+
+
+##### tdeprint_rlpr #############################
+
+set( target tdeprint_rlpr )
+
+set( ${target}_SRCS
+ kmrlprfactory.cpp kmrlprmanager.cpp krlprprinterimpl.cpp
+ kmrlpruimanager.cpp kmwrlpr.cpp kmproprlpr.cpp
+ kmproxywidget.cpp kmconfigproxy.cpp
+)
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES ${${target}_SRCS}
+ LINK tdeprint_management-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/tdeprint/rlpr/Makefile.am b/tdeprint/rlpr/Makefile.am
new file mode 100644
index 000000000..1946fed94
--- /dev/null
+++ b/tdeprint/rlpr/Makefile.am
@@ -0,0 +1,17 @@
+AM_CPPFLAGS = -D_KDEPRINT_COMPILE
+
+INCLUDES= -I$(top_srcdir) -I$(top_srcdir)/tdeprint -I$(top_srcdir)/tdeprint/management $(all_includes)
+
+kde_module_LTLIBRARIES = tdeprint_rlpr.la
+
+tdeprint_rlpr_la_SOURCES = kmrlprfactory.cpp kmrlprmanager.cpp krlprprinterimpl.cpp kmrlpruimanager.cpp \
+ kmwrlpr.cpp kmproprlpr.cpp kmproxywidget.cpp kmconfigproxy.cpp
+tdeprint_rlpr_la_LDFLAGS = $(all_libraries) -module -avoid-version -no-undefined
+tdeprint_rlpr_la_LIBADD = $(top_builddir)/tdeprint/management/libtdeprint_management.la $(LIB_QT) $(LIB_KDEPRINT) $(LIB_KDECORE) $(LIB_KDEUI)
+tdeprint_rlpr_la_METASOURCES = AUTO
+
+noinst_HEADERS = kmrlprmanager.h krlprprinterimpl.h kmrlpruimanager.h kmwrlpr.h kmproprlpr.h \
+ kmproxywidget.h kmconfigproxy.h
+
+entry_DATA = rlpr.print
+entrydir = $(kde_datadir)/tdeprint/plugins
diff --git a/tdeprint/rlpr/kmconfigproxy.cpp b/tdeprint/rlpr/kmconfigproxy.cpp
new file mode 100644
index 000000000..0f8ca3743
--- /dev/null
+++ b/tdeprint/rlpr/kmconfigproxy.cpp
@@ -0,0 +1,47 @@
+/*
+ * This file is part of the KDE libraries
+ * Copyright (c) 2001 Michael Goffioul <tdeprint@swing.be>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License version 2 as published by the Free Software Foundation.
+ *
+ * This library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ **/
+
+#include "kmconfigproxy.h"
+#include "kmproxywidget.h"
+
+#include <tqlayout.h>
+#include <klocale.h>
+
+KMConfigProxy::KMConfigProxy(TQWidget *parent)
+: KMConfigPage(parent,"Proxy")
+{
+ setPageName(i18n("Proxy"));
+ setPageHeader(i18n("RLPR Proxy Server Settings"));
+ setPagePixmap("proxy");
+
+ m_widget = new KMProxyWidget(this);
+ TQVBoxLayout *lay0 = new TQVBoxLayout(this, 5, 0);
+ lay0->addWidget(m_widget);
+ lay0->addStretch(1);
+}
+
+void KMConfigProxy::loadConfig(KConfig *conf)
+{
+ m_widget->loadConfig(conf);
+}
+
+void KMConfigProxy::saveConfig(KConfig *conf)
+{
+ m_widget->saveConfig(conf);
+}
diff --git a/tdeprint/rlpr/kmconfigproxy.h b/tdeprint/rlpr/kmconfigproxy.h
new file mode 100644
index 000000000..6f3b7ef42
--- /dev/null
+++ b/tdeprint/rlpr/kmconfigproxy.h
@@ -0,0 +1,40 @@
+/*
+ * This file is part of the KDE libraries
+ * Copyright (c) 2001 Michael Goffioul <tdeprint@swing.be>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License version 2 as published by the Free Software Foundation.
+ *
+ * This library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ **/
+
+#ifndef KMCONFIGPROXY_H
+#define KMCONFIGPROXY_H
+
+#include "kmconfigpage.h"
+
+class KMProxyWidget;
+class KConfig;
+
+class KMConfigProxy : public KMConfigPage
+{
+public:
+ KMConfigProxy(TQWidget *parent = 0);
+
+ void loadConfig(KConfig*);
+ void saveConfig(KConfig*);
+
+private:
+ KMProxyWidget *m_widget;
+};
+
+#endif
diff --git a/tdeprint/rlpr/kmproprlpr.cpp b/tdeprint/rlpr/kmproprlpr.cpp
new file mode 100644
index 000000000..62fe97827
--- /dev/null
+++ b/tdeprint/rlpr/kmproprlpr.cpp
@@ -0,0 +1,75 @@
+/*
+ * This file is part of the KDE libraries
+ * Copyright (c) 2001 Michael Goffioul <tdeprint@swing.be>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License version 2 as published by the Free Software Foundation.
+ *
+ * This library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ **/
+
+#include "kmproprlpr.h"
+#include "kmprinter.h"
+#include "kmwizard.h"
+
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <klocale.h>
+
+KMPropRlpr::KMPropRlpr(TQWidget *parent, const char *name)
+: KMPropWidget(parent,name)
+{
+ m_host = new TQLabel("",this);
+ m_queue = new TQLabel("",this);
+
+ TQLabel *l1 = new TQLabel(i18n("Host:"), this);
+ TQLabel *l2 = new TQLabel(i18n("Queue:"), this);
+
+ // layout
+ TQGridLayout *main_ = new TQGridLayout(this, 3, 2, 10, 7);
+ main_->setColStretch(0,0);
+ main_->setColStretch(1,1);
+ main_->setRowStretch(2,1);
+ main_->addWidget(l1,0,0);
+ main_->addWidget(l2,1,0);
+ main_->addWidget(m_host,0,1);
+ main_->addWidget(m_queue,1,1);
+
+ m_pixmap = "connect_established";
+ m_title = i18n("Queue");
+ m_header = i18n("Remote LPD Queue Settings");
+}
+
+KMPropRlpr::~KMPropRlpr()
+{
+}
+
+void KMPropRlpr::setPrinter(KMPrinter *p)
+{
+ if (p && !p->isSpecial())
+ {
+ m_host->setText(p->option("host"));
+ m_queue->setText(p->option("queue"));
+ emit enable(true);
+ }
+ else
+ {
+ emit enable(false);
+ m_host->setText("");
+ m_queue->setText("");
+ }
+}
+
+void KMPropRlpr::configureWizard(KMWizard *w)
+{
+ w->configure(KMWizard::Custom+1,KMWizard::Custom+1,true);
+}
diff --git a/tdeprint/rlpr/kmproprlpr.h b/tdeprint/rlpr/kmproprlpr.h
new file mode 100644
index 000000000..cdf9aef7b
--- /dev/null
+++ b/tdeprint/rlpr/kmproprlpr.h
@@ -0,0 +1,43 @@
+/*
+ * This file is part of the KDE libraries
+ * Copyright (c) 2001 Michael Goffioul <tdeprint@swing.be>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License version 2 as published by the Free Software Foundation.
+ *
+ * This library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ **/
+
+#ifndef KMPROPRLPR_H
+#define KMPROPRLPR_H
+
+#include "kmpropwidget.h"
+
+class TQLabel;
+
+class KMPropRlpr : public KMPropWidget
+{
+public:
+ KMPropRlpr(TQWidget *parent = 0, const char *name = 0);
+ ~KMPropRlpr();
+
+ void setPrinter(KMPrinter*);
+
+protected:
+ void configureWizard(KMWizard*);
+
+private:
+ TQLabel *m_host;
+ TQLabel *m_queue;
+};
+
+#endif
diff --git a/tdeprint/rlpr/kmproxywidget.cpp b/tdeprint/rlpr/kmproxywidget.cpp
new file mode 100644
index 000000000..94ad60340
--- /dev/null
+++ b/tdeprint/rlpr/kmproxywidget.cpp
@@ -0,0 +1,71 @@
+/*
+ * This file is part of the KDE libraries
+ * Copyright (c) 2001 Michael Goffioul <tdeprint@swing.be>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License version 2 as published by the Free Software Foundation.
+ *
+ * This library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ **/
+
+#include "kmproxywidget.h"
+
+#include <tqlineedit.h>
+#include <tqlabel.h>
+#include <tqcheckbox.h>
+#include <tqlayout.h>
+#include <tqvalidator.h>
+#include <klocale.h>
+#include <kconfig.h>
+#include <kcursor.h>
+
+KMProxyWidget::KMProxyWidget(TQWidget *parent, const char *name)
+: TQGroupBox(0, Qt::Vertical, i18n("Proxy Settings"), parent, name)
+{
+ TQLabel *m_hostlabel = new TQLabel(i18n("&Host:"), this);
+ TQLabel *m_portlabel = new TQLabel(i18n("&Port:"), this);
+ m_useproxy = new TQCheckBox(i18n("&Use proxy server"), this);
+ m_useproxy->setCursor(KCursor::handCursor());
+ m_proxyhost = new TQLineEdit(this);
+ m_proxyport = new TQLineEdit(this);
+ m_proxyport->setValidator(new TQIntValidator(TQT_TQOBJECT(m_proxyport)));
+ m_hostlabel->setBuddy(m_proxyhost);
+ m_portlabel->setBuddy(m_proxyport);
+
+ connect(m_useproxy,TQT_SIGNAL(toggled(bool)),m_proxyhost,TQT_SLOT(setEnabled(bool)));
+ connect(m_useproxy,TQT_SIGNAL(toggled(bool)),m_proxyport,TQT_SLOT(setEnabled(bool)));
+ m_proxyhost->setEnabled(false);
+ m_proxyport->setEnabled(false);
+
+ TQGridLayout *lay0 = new TQGridLayout(tqlayout(), 3, 2, 10);
+ lay0->setColStretch(1,1);
+ lay0->addMultiCellWidget(m_useproxy,0,0,0,1);
+ lay0->addWidget(m_hostlabel,1,0);
+ lay0->addWidget(m_portlabel,2,0);
+ lay0->addWidget(m_proxyhost,1,1);
+ lay0->addWidget(m_proxyport,2,1);
+}
+
+void KMProxyWidget::loadConfig(KConfig *conf)
+{
+ conf->setGroup("RLPR");
+ m_proxyhost->setText(conf->readEntry("ProxyHost",TQString::null));
+ m_proxyport->setText(conf->readEntry("ProxyPort",TQString::null));
+ m_useproxy->setChecked(!m_proxyhost->text().isEmpty());
+}
+
+void KMProxyWidget::saveConfig(KConfig *conf)
+{
+ conf->setGroup("RLPR");
+ conf->writeEntry("ProxyHost",(m_useproxy->isChecked() ? m_proxyhost->text() : TQString::null));
+ conf->writeEntry("ProxyPort",(m_useproxy->isChecked() ? m_proxyport->text() : TQString::null));
+}
diff --git a/tdeprint/rlpr/kmproxywidget.h b/tdeprint/rlpr/kmproxywidget.h
new file mode 100644
index 000000000..0c1a5079b
--- /dev/null
+++ b/tdeprint/rlpr/kmproxywidget.h
@@ -0,0 +1,43 @@
+/*
+ * This file is part of the KDE libraries
+ * Copyright (c) 2001 Michael Goffioul <tdeprint@swing.be>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License version 2 as published by the Free Software Foundation.
+ *
+ * This library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ **/
+
+#ifndef KMPROXYWIDGET_H
+#define KMPROXYWIDGET_H
+
+#include <tqgroupbox.h>
+
+class KConfig;
+class TQLineEdit;
+class TQCheckBox;
+
+class KMProxyWidget : public TQGroupBox
+{
+public:
+ KMProxyWidget(TQWidget *parent = 0, const char *name = 0);
+
+ void loadConfig(KConfig*);
+ void saveConfig(KConfig*);
+
+private:
+ TQLineEdit *m_proxyhost;
+ TQLineEdit *m_proxyport;
+ TQCheckBox *m_useproxy;
+};
+
+#endif
diff --git a/tdeprint/rlpr/kmrlprfactory.cpp b/tdeprint/rlpr/kmrlprfactory.cpp
new file mode 100644
index 000000000..f5cabe6bd
--- /dev/null
+++ b/tdeprint/rlpr/kmrlprfactory.cpp
@@ -0,0 +1,28 @@
+/*
+ * This file is part of the KDE libraries
+ * Copyright (c) 2001 Michael Goffioul <tdeprint@swing.be>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License version 2 as published by the Free Software Foundation.
+ *
+ * This library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ **/
+
+#include "kmrlprmanager.h"
+#include "kmrlpruimanager.h"
+#include "krlprprinterimpl.h"
+
+#include <kgenericfactory.h>
+
+typedef K_TYPELIST_3( KMRlprManager, KMRlprUiManager, KRlprPrinterImpl ) Products;
+K_EXPORT_COMPONENT_FACTORY( tdeprint_rlpr, KGenericFactory< Products > )
+
diff --git a/tdeprint/rlpr/kmrlprmanager.cpp b/tdeprint/rlpr/kmrlprmanager.cpp
new file mode 100644
index 000000000..64f6acde1
--- /dev/null
+++ b/tdeprint/rlpr/kmrlprmanager.cpp
@@ -0,0 +1,158 @@
+/*
+ * This file is part of the KDE libraries
+ * Copyright (c) 2001 Michael Goffioul <tdeprint@swing.be>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License version 2 as published by the Free Software Foundation.
+ *
+ * This library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ **/
+
+#include "kmrlprmanager.h"
+#include "kmprinter.h"
+
+#include <tqfile.h>
+#include <tqfileinfo.h>
+#include <tqtextstream.h>
+#include <tqmap.h>
+
+#include <kstandarddirs.h>
+#include <klocale.h>
+
+KMRlprManager::KMRlprManager(TQObject *parent, const char *name, const TQStringList & /*args*/)
+: KMManager(parent,name)
+{
+ setHasManagement(true);
+ setPrinterOperationMask(KMManager::PrinterCreation|KMManager::PrinterRemoval|KMManager::PrinterTesting);
+}
+
+KMRlprManager::~KMRlprManager()
+{
+}
+
+bool KMRlprManager::createPrinter(KMPrinter *p)
+{
+ if (p->name().isEmpty())
+ setErrorMsg(i18n("Empty printer name."));
+ else if (p->option("host").isEmpty())
+ setErrorMsg(i18n("Empty host name."));
+ else if (p->option("queue").isEmpty())
+ setErrorMsg(i18n("Empty queue name."));
+ else
+ {
+ KMPrinter *pr = new KMPrinter(*p);
+ addPrinter(pr);
+ savePrinters();
+ return true;
+ }
+ return false;
+}
+
+bool KMRlprManager::removePrinter(KMPrinter *p)
+{
+ if (m_printers.findRef(p) == -1)
+ setErrorMsg(i18n("Printer not found."));
+ else
+ {
+ m_printers.removeRef(p);
+ savePrinters();
+ return true;
+ }
+ return false;
+}
+
+bool KMRlprManager::testPrinter(KMPrinter *)
+{
+ setErrorMsg(i18n("Not implemented yet."));
+ return false;
+}
+
+void KMRlprManager::listPrinters()
+{
+ TQFileInfo pfi(printerFile());
+ if (pfi.exists() && (!m_checktime.isValid() || m_checktime < pfi.lastModified()))
+ {
+ loadPrintersConf(pfi.absFilePath());
+ m_checktime = pfi.lastModified();
+ }
+ else
+ discardAllPrinters(false);
+}
+
+void KMRlprManager::loadPrintersConf(const TQString& filename)
+{
+ TQFile f(filename);
+ if (f.exists() && f.open(IO_ReadOnly))
+ {
+ TQTextStream t(&f);
+ TQString line;
+ while (!t.eof())
+ {
+ line = t.readLine().stripWhiteSpace();
+ if (line.isEmpty() || line[0] == '#')
+ continue;
+ TQStringList w = TQStringList::split('\t',line,true);
+ if (w.count() < 3)
+ continue;
+
+ KMPrinter *printer = new KMPrinter;
+ printer->setName(w[0]);
+ printer->setPrinterName(w[0]);
+ printer->setType(KMPrinter::Printer);
+ printer->setOption("host",w[1]);
+ printer->setOption("queue",w[2]);
+ if (w.count() > 3)
+ {
+ printer->setDescription(w[3]);
+ if (w.count() > 4) printer->setLocation(w[4]);
+ }
+ printer->setState(KMPrinter::Idle);
+ printer->setDevice(TQString::tqfromLatin1("lpd://%1/%2").arg(w[1]).arg(w[2]));
+
+ addPrinter(printer);
+ }
+ }
+}
+
+void KMRlprManager::savePrinters()
+{
+ savePrintersConf(printerFile());
+}
+
+void KMRlprManager::savePrintersConf(const TQString& filename)
+{
+ TQFile f(filename);
+ if (f.open(IO_WriteOnly))
+ {
+ TQTextStream t(&f);
+ t << "# File generated by KDE print system. Don't edit by hand." << endl;
+ TQPtrListIterator<KMPrinter> it(m_printers);
+ for (;it.current();++it)
+ {
+ if (!it.current()->name().isEmpty() && it.current()->instanceName().isEmpty())
+ {
+ TQString host = it.current()->option("host");
+ TQString queue = it.current()->option("queue");
+ if (!host.isEmpty() && !queue.isEmpty())
+ {
+ t << it.current()->name() << '\t' << host << '\t' << queue;
+ t << '\t' << it.current()->description() << '\t' << it.current()->location() << endl;
+ }
+ }
+ }
+ }
+}
+
+TQString KMRlprManager::printerFile()
+{
+ return locateLocal("data","tdeprint/printers.conf");
+}
diff --git a/tdeprint/rlpr/kmrlprmanager.h b/tdeprint/rlpr/kmrlprmanager.h
new file mode 100644
index 000000000..57af7f99f
--- /dev/null
+++ b/tdeprint/rlpr/kmrlprmanager.h
@@ -0,0 +1,48 @@
+/*
+ * This file is part of the KDE libraries
+ * Copyright (c) 2001 Michael Goffioul <tdeprint@swing.be>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License version 2 as published by the Free Software Foundation.
+ *
+ * This library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ **/
+
+#ifndef KMRLPRMANAGER_H
+#define KMRLPRMANAGER_H
+
+#include "kmmanager.h"
+#include <tqdict.h>
+#include <tqdatetime.h>
+
+class KMRlprManager : public KMManager
+{
+public:
+ KMRlprManager(TQObject *parent, const char *name, const TQStringList & /*args*/);
+ ~KMRlprManager();
+
+ bool createPrinter(KMPrinter*);
+ bool removePrinter(KMPrinter*);
+ bool testPrinter(KMPrinter*);
+
+protected:
+ void listPrinters();
+ void savePrinters();
+ void loadPrintersConf(const TQString& filename);
+ void savePrintersConf(const TQString& filename);
+ TQString printerFile();
+
+private:
+ TQDateTime m_checktime;
+};
+
+#endif
diff --git a/tdeprint/rlpr/kmrlpruimanager.cpp b/tdeprint/rlpr/kmrlpruimanager.cpp
new file mode 100644
index 000000000..9bae2cdc4
--- /dev/null
+++ b/tdeprint/rlpr/kmrlpruimanager.cpp
@@ -0,0 +1,55 @@
+/*
+ * This file is part of the KDE libraries
+ * Copyright (c) 2001 Michael Goffioul <tdeprint@swing.be>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License version 2 as published by the Free Software Foundation.
+ *
+ * This library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ **/
+
+#include "kmrlpruimanager.h"
+#include "kmpropertypage.h"
+#include "kmwizard.h"
+#include "kmconfigdialog.h"
+
+#include "kmwrlpr.h"
+#include "kmproprlpr.h"
+#include "kmconfigproxy.h"
+
+#include <klocale.h>
+
+KMRlprUiManager::KMRlprUiManager(TQObject *parent, const char *name, const TQStringList & /*args*/)
+: KMUiManager(parent,name)
+{
+}
+
+KMRlprUiManager::~KMRlprUiManager()
+{
+}
+
+void KMRlprUiManager::setupPropertyPages(KMPropertyPage *pages)
+{
+ pages->addPropPage(new KMPropRlpr(pages,"RlprPage"));
+}
+
+void KMRlprUiManager::setupWizard(KMWizard *wizard)
+{
+ wizard->setNextPage(KMWizard::Start,KMWizard::Custom+1);
+ // add page
+ wizard->addPage(new KMWRlpr(wizard,"Rlpr"));
+}
+
+void KMRlprUiManager::setupConfigDialog(KMConfigDialog *dlg)
+{
+ dlg->addConfigPage(new KMConfigProxy(dlg));
+}
diff --git a/tdeprint/rlpr/kmrlpruimanager.h b/tdeprint/rlpr/kmrlpruimanager.h
new file mode 100644
index 000000000..e2bc5de73
--- /dev/null
+++ b/tdeprint/rlpr/kmrlpruimanager.h
@@ -0,0 +1,36 @@
+/*
+ * This file is part of the KDE libraries
+ * Copyright (c) 2001 Michael Goffioul <tdeprint@swing.be>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License version 2 as published by the Free Software Foundation.
+ *
+ * This library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ **/
+
+#ifndef KMRLPRUIMANAGER_H
+#define KMRLPRUIMANAGER_H
+
+#include "kmuimanager.h"
+
+class KMRlprUiManager : public KMUiManager
+{
+public:
+ KMRlprUiManager(TQObject *parent, const char *name, const TQStringList & /*args*/);
+ ~KMRlprUiManager();
+
+ void setupPropertyPages(KMPropertyPage*);
+ void setupWizard(KMWizard*);
+ void setupConfigDialog(KMConfigDialog*);
+};
+
+#endif
diff --git a/tdeprint/rlpr/kmwrlpr.cpp b/tdeprint/rlpr/kmwrlpr.cpp
new file mode 100644
index 000000000..70defc27b
--- /dev/null
+++ b/tdeprint/rlpr/kmwrlpr.cpp
@@ -0,0 +1,210 @@
+/*
+ * This file is part of the KDE libraries
+ * Copyright (c) 2001 Michael Goffioul <tdeprint@swing.be>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License version 2 as published by the Free Software Foundation.
+ *
+ * This library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ **/
+
+#include "kmwrlpr.h"
+#include "kmprinter.h"
+#include "kmwizard.h"
+
+#include <tqdir.h>
+#include <tqfile.h>
+#include <tqtextstream.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqlineedit.h>
+#include <tqheader.h>
+#include <klistview.h>
+#include <klocale.h>
+#include <kiconloader.h>
+
+static TQListViewItem* rlpr_findChild(TQListViewItem *c, const TQString& txt)
+{
+ TQListViewItem *item(c);
+ while (item)
+ if (item->text(0) == txt) return item;
+ else item = item->nextSibling();
+ return NULL;
+}
+
+//*****************************************************************************************************
+
+KMWRlpr::KMWRlpr(TQWidget *parent, const char *name)
+: KMWizardPage(parent,name)
+{
+ m_ID = KMWizard::Custom+1;
+ m_title = i18n("Remote LPD Queue Settings");
+ m_nextpage = KMWizard::Name;
+
+ m_view = new KListView(this);
+ m_view->setFrameStyle(TQFrame::WinPanel|TQFrame::Sunken);
+ m_view->setLineWidth(1);
+ m_view->addColumn(TQString::tqfromLatin1(""));
+ m_view->header()->hide();
+ m_view->setRootIsDecorated(true);
+ m_view->setSorting(0);
+ m_host = new TQLineEdit(this);
+ m_queue = new TQLineEdit(this);
+ TQLabel *m_hostlabel = new TQLabel(i18n("Host:"), this);
+ TQLabel *m_queuelabel = new TQLabel(i18n("Queue:"), this);
+ m_hostlabel->setBuddy(m_host);
+ m_queuelabel->setBuddy(m_queue);
+ connect(m_view,TQT_SIGNAL(selectionChanged(TQListViewItem*)),TQT_SLOT(slotPrinterSelected(TQListViewItem*)));
+
+ TQHBoxLayout *lay0 = new TQHBoxLayout(this, 0, 10);
+ TQVBoxLayout *lay1 = new TQVBoxLayout(0, 0, 5);
+ lay0->addWidget(m_view,1);
+ lay0->addLayout(lay1,1);
+ lay1->addWidget(m_hostlabel);
+ lay1->addWidget(m_host);
+ lay1->addSpacing(20);
+ lay1->addWidget(m_queuelabel);
+ lay1->addWidget(m_queue);
+ lay1->addStretch(1);
+
+ initialize();
+}
+
+bool KMWRlpr::isValid(TQString& msg)
+{
+ if (m_host->text().isEmpty())
+ msg = i18n("Empty host name.");
+ else if (m_queue->text().isEmpty())
+ msg = i18n("Empty queue name.");
+ else
+ return true;
+ return false;
+}
+
+void KMWRlpr::initPrinter(KMPrinter *p)
+{
+ m_host->setText(p->option("host"));
+ m_queue->setText(p->option("queue"));
+ TQListViewItem *item = rlpr_findChild(m_view->firstChild(),m_host->text());
+ if (item)
+ {
+ item = rlpr_findChild(item->firstChild(),m_queue->text());
+ if (item)
+ {
+ item->parent()->setOpen(true);
+ m_view->setCurrentItem(item);
+ m_view->ensureItemVisible(item);
+ }
+ }
+}
+
+void KMWRlpr::updatePrinter(KMPrinter *p)
+{
+ TQString uri = TQString::tqfromLatin1("lpd://%1/%2").arg(m_host->text()).arg(m_queue->text());
+ p->setDevice(uri);
+ p->setOption("host",m_host->text());
+ p->setOption("queue",m_queue->text());
+ p->setOption("kde-backend-description",i18n("Remote LPD queue"));
+ // setting default name and description, but only if the "name()" is empty
+ // which is the case on first pass when adding a printer. This prevents from
+ // bad side-effects when simply modifying an existing printer.
+ if (p->name().isEmpty())
+ {
+ p->setName(m_queue->text());
+ p->setPrinterName(p->name());
+ p->setDescription(i18n("Remote queue %1 on %2").arg(m_queue->text()).arg(m_host->text()));
+ }
+}
+
+void KMWRlpr::initialize()
+{
+ m_view->clear();
+ TQFile f(TQDir::homeDirPath()+"/.rlprrc");
+ if (!f.exists()) f.setName("/etc/rlprrc");
+ if (f.exists() && f.open(IO_ReadOnly))
+ {
+ TQTextStream t(&f);
+ TQString line, host;
+ int p(-1);
+ while (!t.eof())
+ {
+ line = t.readLine().stripWhiteSpace();
+ if (line.isEmpty())
+ continue;
+ if ((p=line.find(':')) != -1)
+ {
+ host = line.left(p).stripWhiteSpace();
+ TQListViewItem *hitem = new TQListViewItem(m_view,host);
+ hitem->setPixmap(0,SmallIcon("tdeprint_computer"));
+ TQStringList prs = TQStringList::split(' ',line.right(line.length()-p-1),false);
+ for (TQStringList::ConstIterator it=prs.begin(); it!=prs.end(); ++it)
+ {
+ TQListViewItem *pitem = new TQListViewItem(hitem,*it);
+ pitem->setPixmap(0,SmallIcon("tdeprint_printer"));
+ }
+ }
+ }
+ f.close();
+ }
+
+ // parse printcap file for local printers
+ f.setName("/etc/printcap");
+ if (f.exists() && f.open(IO_ReadOnly))
+ {
+ TQTextStream t(&f);
+ TQString line, buffer;
+ TQListViewItem *hitem(m_view->firstChild());
+ while (hitem) if (hitem->text(0) == "localhost") break; else hitem = hitem->nextSibling();
+ while (!t.eof())
+ {
+ buffer = TQString::null;
+ while (!t.eof())
+ {
+ line = t.readLine().stripWhiteSpace();
+ if (line.isEmpty() || line[0] == '#')
+ continue;
+ buffer.append(line);
+ if (buffer.right(1) == "\\")
+ buffer = buffer.left(buffer.length()-1).stripWhiteSpace();
+ else
+ break;
+ }
+ if (buffer.isEmpty())
+ continue;
+ int p = buffer.find(':');
+ if (p != -1)
+ {
+ TQString name = buffer.left(p);
+ if (!hitem)
+ {
+ hitem = new TQListViewItem(m_view,"localhost");
+ hitem->setPixmap(0,SmallIcon("tdeprint_computer"));
+ }
+ TQListViewItem *pitem = new TQListViewItem(hitem,name);
+ pitem->setPixmap(0,SmallIcon("tdeprint_printer"));
+ }
+ }
+ }
+
+ if (m_view->childCount() == 0)
+ new TQListViewItem(m_view,i18n("No Predefined Printers"));
+}
+
+void KMWRlpr::slotPrinterSelected(TQListViewItem *item)
+{
+ if (item && item->depth() == 1)
+ {
+ m_host->setText(item->parent()->text(0));
+ m_queue->setText(item->text(0));
+ }
+}
+#include "kmwrlpr.moc"
diff --git a/tdeprint/rlpr/kmwrlpr.h b/tdeprint/rlpr/kmwrlpr.h
new file mode 100644
index 000000000..7c1aa74f2
--- /dev/null
+++ b/tdeprint/rlpr/kmwrlpr.h
@@ -0,0 +1,50 @@
+/*
+ * This file is part of the KDE libraries
+ * Copyright (c) 2001 Michael Goffioul <tdeprint@swing.be>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License version 2 as published by the Free Software Foundation.
+ *
+ * This library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ **/
+
+#ifndef KMWRLPR_H
+#define KMWRLPR_H
+
+#include "kmwizardpage.h"
+
+class KListView;
+class TQLineEdit;
+class TQListViewItem;
+
+class KMWRlpr : public KMWizardPage
+{
+ Q_OBJECT
+public:
+ KMWRlpr(TQWidget *parent = 0, const char *name = 0);
+
+ bool isValid(TQString&);
+ void initPrinter(KMPrinter*);
+ void updatePrinter(KMPrinter*);
+
+protected slots:
+ void slotPrinterSelected(TQListViewItem*);
+
+protected:
+ void initialize();
+
+private:
+ KListView *m_view;
+ TQLineEdit *m_host, *m_queue;
+};
+
+#endif
diff --git a/tdeprint/rlpr/krlprprinterimpl.cpp b/tdeprint/rlpr/krlprprinterimpl.cpp
new file mode 100644
index 000000000..a6b0e5986
--- /dev/null
+++ b/tdeprint/rlpr/krlprprinterimpl.cpp
@@ -0,0 +1,76 @@
+/*
+ * This file is part of the KDE libraries
+ * Copyright (c) 2001 Michael Goffioul <tdeprint@swing.be>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License version 2 as published by the Free Software Foundation.
+ *
+ * This library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ **/
+
+#include "krlprprinterimpl.h"
+#include "kprinter.h"
+#include "kmfactory.h"
+#include "kmmanager.h"
+#include "kmprinter.h"
+
+#include <tqfile.h>
+#include <kstandarddirs.h>
+#include <kconfig.h>
+#include <klocale.h>
+
+KRlprPrinterImpl::KRlprPrinterImpl(TQObject *parent, const char *name, const TQStringList & /*args*/)
+: KPrinterImpl(parent,name)
+{
+}
+
+KRlprPrinterImpl::~KRlprPrinterImpl()
+{
+}
+
+bool KRlprPrinterImpl::setupCommand(TQString& cmd, KPrinter *printer)
+{
+ // retrieve the KMPrinter object, to get host and queue name
+ KMPrinter *rpr = KMFactory::self()->manager()->findPrinter(printer->printerName());
+ if (!rpr)
+ return false;
+
+ QString host(rpr->option("host")), queue(rpr->option("queue"));
+ if (!host.isEmpty() && !queue.isEmpty())
+ {
+ QString exestr = KStandardDirs::findExe("rlpr");
+ if (exestr.isEmpty())
+ {
+ printer->setErrorMessage(i18n("The <b>%1</b> executable could not be found in your path. Check your installation.").arg("rlpr"));
+ return false;
+ }
+
+ cmd = TQString::tqfromLatin1("%1 -H %2 -P %3 -\\#%4").arg(exestr).arg(quote(host)).arg(quote(queue)).arg(printer->numCopies());
+
+ // proxy settings
+ KConfig *conf = KMFactory::self()->printConfig();
+ conf->setGroup("RLPR");
+ QString host = conf->readEntry("ProxyHost",TQString::null), port = conf->readEntry("ProxyPort",TQString::null);
+ if (!host.isEmpty())
+ {
+ cmd.append(" -X ").append(quote(host));
+ if (!port.isEmpty()) cmd.append(" --port=").append(port);
+ }
+
+ return true;
+ }
+ else
+ {
+ printer->setErrorMessage(i18n("The printer is incompletely defined. Try to reinstall it."));
+ return false;
+ }
+}
diff --git a/tdeprint/rlpr/krlprprinterimpl.h b/tdeprint/rlpr/krlprprinterimpl.h
new file mode 100644
index 000000000..7af98df0c
--- /dev/null
+++ b/tdeprint/rlpr/krlprprinterimpl.h
@@ -0,0 +1,36 @@
+/*
+ * This file is part of the KDE libraries
+ * Copyright (c) 2001 Michael Goffioul <tdeprint@swing.be>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License version 2 as published by the Free Software Foundation.
+ *
+ * This library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ **/
+
+#ifndef KRLPRPRINTERIMPL_H
+#define KRLPRPRINTERIMPL_H
+
+#include "kprinterimpl.h"
+
+class KProcess;
+
+class KRlprPrinterImpl : public KPrinterImpl
+{
+public:
+ KRlprPrinterImpl(TQObject *parent, const char *name, const TQStringList & /*args*/);
+ ~KRlprPrinterImpl();
+
+ bool setupCommand(TQString&, KPrinter*);
+};
+
+#endif
diff --git a/tdeprint/rlpr/rlpr.print b/tdeprint/rlpr/rlpr.print
new file mode 100644
index 000000000..25f16ee63
--- /dev/null
+++ b/tdeprint/rlpr/rlpr.print
@@ -0,0 +1,84 @@
+[KDE Print Entry]
+PrintSystem=rlpr
+Comment=RLPR Environment (Remote LPD servers)
+Comment[af]=Rlpr Omgewing (Afgeleë Lpd bedieners)
+Comment[ar]=بيئة RLPR (خادمات LPR عن بعد)
+Comment[az]=RLPR Mühiti (Uzaq LPD vericiləri)
+Comment[be]=Асяроддзе RLPR (аддаленыя серверы LPD)
+Comment[bs]=RLPR okolina (udaljeni LPD serveri)
+Comment[ca]=Entorn RLPR (servidors LPD remots)
+Comment[cs]=Prostředí RLPR (Vzdálené LPD servery)
+Comment[csb]=Òkrãże RLPR (daleczi serwerë LPD)
+Comment[cy]=Amgylchedd RLPR (Gweinyddion LPD pell)
+Comment[da]=RLPR-miljø (fjerne LPD-servere)
+Comment[de]=RLPR-Umgebung (LPD-Server auf Fremdrechner)
+Comment[el]=Περιβάλλον RLPR (Απομακρυσμένοι εξυπηρετητές LPD)
+Comment[eo]=RLPR-medio (Foraj LPD-servoj)
+Comment[es]=Entorno RLPR (servidores LPD remotos)
+Comment[et]=RLPR keskkond (LPD võrguserverid)
+Comment[eu]=RLPR ingurunea (urruneko LPD zerbitzariak)
+Comment[fa]=محیط RLPR )کارسازهای LPD دور(
+Comment[fi]=RLPR-tulostus (LPD-palvelin)
+Comment[fr]=Environnement RLPR (serveurs LPD distants)
+Comment[fy]=RLPR-fermidden (LPD-tsjinners op ôfstân)
+Comment[ga]=Timpeallach RLPR (Cianfhreastalaithe LPD)
+Comment[gl]=Entorno RLPR (Servidores Remotos LPD)
+Comment[he]=סביבת RLPR (שרתי LPD מרוחקים)
+Comment[hi]=RLPR वातावरण (रिमोट LPD सर्वर्स)
+Comment[hr]=RLPR okruženje (udaljeni LPD poslužitelji)
+Comment[hu]=RLPR (távoli LPD-kiszolgálón keresztül)
+Comment[id]=Lingkungan RLPR (Server LPD remote)
+Comment[is]=RLPR umhverfi (fjarlægir LPD þjónar)
+Comment[it]=Ambiente RLPR (server LPD remoti)
+Comment[ja]=RLPR 環境 (リモート LPD サーバ)
+Comment[ka]=RLPR გარემო (დაშორებული LPD სერვერები)
+Comment[kk]=RLPR ортасы (Желідегі LPD серверлері)
+Comment[km]=បរិស្ថាន RLPR (ម៉ាស៊ីន​បម្រើ LPD ពី​ចម្ងាយ)
+Comment[ko]=RLPR 환경 (원격지 LPD 서버)
+Comment[lb]=RLPR mfeld(LPD-ServeËren op anere Computeren)
+Comment[lt]=RLPR aplinka (nutolę LPD serveriai)
+Comment[lv]=RLPR vide (Attālināti LPD serveri)
+Comment[mk]=RLPR околина (оддалечени LPD сервери)
+Comment[mn]=RLPR-орчин (алсын LPD-Сервер)
+Comment[ms]=Persekitaran RLPR (Pelayan LPD jauh)
+Comment[mt]=Ambjent RLPR (servers LPD remoti)
+Comment[nb]=RLPR-miljø (LPD-tjenere over nettverk)
+Comment[nds]=RLPR-Ümgeven (LPD-Servers op anner Reekners)
+Comment[ne]=RLPR परिवेश (टाढाको LPD सर्भर)
+Comment[nl]=RLPR-omgeving (LPD-servers op afstand)
+Comment[nn]=RLPR-miljø (LPD-tenarar over nettverk)
+Comment[nso]=Tikologo ya RLPR (Baabi remote ba LPD)
+Comment[pa]=RLPR ਵਾਤਾਵਰਣ(ਰਿਮੋਟ LPD ਸਰਵਰ)
+Comment[pl]=Środowisko RLPR (zdalne serwery LPD)
+Comment[pt]=O ambiente RLPR (servidores remotos de LPD)
+Comment[pt_BR]= Ambiente RLPR (Servidores LPD Remotos)
+Comment[ro]=Mediu RLPR (Servere LPD distante)
+Comment[ru]=Среда RLPR (сетевые принт-серверы LPD)
+Comment[rw]=Ibikikije RLPR (Amaseriveri LPD ya Kure)
+Comment[se]=RLPR-biras (LPD-gáiddusbálvvát)
+Comment[sk]=Prostredie RLPR (Vzdialené LPD servery)
+Comment[sl]=Okolje RLPR (oddaljeni strežniki LPD)
+Comment[sq]=Ambienti RLPR (Shërbyesit e Largët LPD)
+Comment[sr]=RLPR окружење (удаљени LPD сервери)
+Comment[sr@Latn]=RLPR okruženje (udaljeni LPD serveri)
+Comment[ss]=Siminhlalo se RLPR (Susa tigcini teLPD)
+Comment[sv]=RLPR-miljö (LPD-fjärrservrar)
+Comment[ta]=RLPR சூழல் (சேய்மை LPD சேவகன்கள்)
+Comment[te]=ఆర్ ఎల్ పి ఆర్ పర్యావరణం (సుదూర అల్ పి డి సెర్వర్లు)
+Comment[tg]=Муҳити RLPR (серверҳои чопи шабақавии LPD)
+Comment[th]=สภาพแวดล้อม RLPR (เซอร์เวอร์ LPD ระยะไกล)
+Comment[tr]=RLPR Ortamı (Uzak LPD Sunucuları)
+Comment[tt]=RLPR Eşläw Tiräse (Çittäge LPD serverläre)
+Comment[uk]=Оточення RLPR (віддалені сервери LPD)
+Comment[uz]=RLPR muhiti (masofadagi LPD serverlar)
+Comment[uz@cyrillic]=RLPR муҳити (масофадаги LPD серверлар)
+Comment[ven]=Vhupo ha RLPR (dzisiva dza LPD)
+Comment[vi]=Môi trường RLPR (máy phục vụ LPD từ xa)
+Comment[wa]=Evironmint d' imprimaedje RLPR (sierveus LPD å lon)
+Comment[xh]=RLPR Imeko-bume ye RLPR (Abancedisi be LPD ababeka kude)
+Comment[zh_CN]=RLPR 环境(远程 LPD 服务器)
+Comment[zh_HK]=RLPR 環境 (遠端 LPD 伺服器)
+Comment[zh_TW]=RLPR 環境(遠端 LPD 伺服器)
+Comment[zu]=Ezendalo ze-RLPR (abalekeleli abakude be-LPD)
+DetectUris=exec:/rlpr
+DetectPrecedence=0