|
a/src/qtgui/preview_w.h |
|
b/src/qtgui/preview_w.h |
|
... |
|
... |
49 |
virtual void displayFields();
|
49 |
virtual void displayFields();
|
50 |
virtual void displayText();
|
50 |
virtual void displayText();
|
51 |
virtual void displayImage();
|
51 |
virtual void displayImage();
|
52 |
virtual void print();
|
52 |
virtual void print();
|
53 |
virtual void createPopupMenu(const QPoint& pos);
|
53 |
virtual void createPopupMenu(const QPoint& pos);
|
|
|
54 |
|
54 |
friend class Preview;
|
55 |
friend class Preview;
|
|
|
56 |
|
55 |
protected:
|
57 |
protected:
|
56 |
void mouseDoubleClickEvent(QMouseEvent *);
|
58 |
void mouseDoubleClickEvent(QMouseEvent *);
|
57 |
|
59 |
|
58 |
private:
|
60 |
private:
|
59 |
PlainToRichQtPreview *m_plaintorich;
|
61 |
PlainToRichQtPreview *m_plaintorich;
|
|
... |
|
... |
63 |
string m_ipath; // Internal doc path inside file
|
65 |
string m_ipath; // Internal doc path inside file
|
64 |
int m_docnum; // Index of doc in db search results.
|
66 |
int m_docnum; // Index of doc in db search results.
|
65 |
// doc out of internfile (previous fields come from the index) with
|
67 |
// doc out of internfile (previous fields come from the index) with
|
66 |
// main text erased (for space).
|
68 |
// main text erased (for space).
|
67 |
Rcl::Doc m_fdoc;
|
69 |
Rcl::Doc m_fdoc;
|
|
|
70 |
// The input doc out of the index/query list
|
|
|
71 |
Rcl::Doc m_dbdoc;
|
68 |
// Saved rich (or plain actually) text: the textedit seems to
|
72 |
// Saved rich (or plain actually) text: the textedit seems to
|
69 |
// sometimes (but not always) return its text stripped of tags, so
|
73 |
// sometimes (but not always) return its text stripped of tags, so
|
70 |
// this is needed (for printing for example)
|
74 |
// this is needed (for printing for example)
|
71 |
QString m_richtxt;
|
75 |
QString m_richtxt;
|
72 |
Qt::TextFormat m_format;
|
76 |
Qt::TextFormat m_format;
|
|
... |
|
... |
113 |
bool wo = false);
|
117 |
bool wo = false);
|
114 |
virtual void nextPressed();
|
118 |
virtual void nextPressed();
|
115 |
virtual void prevPressed();
|
119 |
virtual void prevPressed();
|
116 |
virtual void currentChanged(QWidget *tw);
|
120 |
virtual void currentChanged(QWidget *tw);
|
117 |
virtual void closeCurrentTab();
|
121 |
virtual void closeCurrentTab();
|
|
|
122 |
virtual void emitSaveDocToFile();
|
118 |
|
123 |
|
119 |
signals:
|
124 |
signals:
|
120 |
void previewClosed(Preview *);
|
125 |
void previewClosed(Preview *);
|
121 |
void wordSelect(QString);
|
126 |
void wordSelect(QString);
|
122 |
void showNext(Preview *w, int sid, int docnum);
|
127 |
void showNext(Preview *w, int sid, int docnum);
|
123 |
void showPrev(Preview *w, int sid, int docnum);
|
128 |
void showPrev(Preview *w, int sid, int docnum);
|
124 |
void previewExposed(Preview *w, int sid, int docnum);
|
129 |
void previewExposed(Preview *w, int sid, int docnum);
|
125 |
void printCurrentPreviewRequest();
|
130 |
void printCurrentPreviewRequest();
|
|
|
131 |
void saveDocToFile(Rcl::Doc);
|
126 |
|
132 |
|
127 |
private:
|
133 |
private:
|
128 |
// Identifier of search in main window. This is used to check that
|
134 |
// Identifier of search in main window. This is used to check that
|
129 |
// we make sense when requesting the next document when browsing
|
135 |
// we make sense when requesting the next document when browsing
|
130 |
// successive search results in a tab.
|
136 |
// successive search results in a tab.
|