dcop-support in kdvi

svn path=/trunk/kdegraphics/kdvi/; revision=123322
remotes/origin/kdvi-3.0
Stefan Kebekus 25 years ago
parent 699580c8f7
commit e6705dc9f0
  1. 5
      dviwin.h
  2. 9
      kdvi_multipage.cpp
  3. 5
      kdvi_multipage.h

@ -121,6 +121,8 @@ public:
double paper_width; // paper width in centimeters
double paper_height; // paper height in centimeters
/** Reference part of the URL which describes the filename. */
QString reference;
public slots:
@ -274,9 +276,6 @@ private:
QString export_fileName;
QString export_tmpFileName;
QString export_errorString;
/** Reference part of the URL which describes the filename. */
QString reference;
};

@ -123,6 +123,15 @@ bool KDVIMultiPage::openFile()
}
void KDVIMultiPage::jumpToReference(QString reference)
{
kdError() << "Reference: " << reference << endl;
if (window != 0) {
window->reference = reference;
window->all_fonts_loaded(); // In spite of its name, this method tries to parse the reference.
}
}
void KDVIMultiPage::contents_of_dviwin_changed(void)
{
emit previewChanged(true);

@ -46,7 +46,10 @@ public:
KDVIMultiPage(QWidget *parentWidget, const char *widgetName, QObject *parent, const char *name);
virtual ~KDVIMultiPage();
// Methods which are associated with the DCOP functionality of the
// kmultipage. This method can be implemented by the multipage,
// e.g. to jump to a certain location.
void jumpToReference(QString reference);
// Interface definition start ------------------------------------------------

Loading…
Cancel
Save