/usr/include/scribus/search.h is in scribus-dev 1.4.6+dfsg-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 | /*
For general Scribus (>=1.3.2) copyright and licensing information please refer
to the COPYING file provided with the program. Following this notice may exist
a copyright and/or license notice that predates the release of Scribus 1.3.2
for which a new license (GPL+exception) is in place.
*/
#ifndef SEARCHREPLACE_H
#define SEARCHREPLACE_H
#include <QDialog>
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QCheckBox;
class QComboBox;
class QGroupBox;
class QLineEdit;
class QPushButton;
class QLabel;
#include "scribusapi.h"
class ScrSpinBox;
class FontCombo;
class StyleSelect;
class ShadeButton;
class PrefsContext;
class ColorCombo;
class ScribusDoc;
class PageItem;
class SCRIBUS_API SearchReplace : public QDialog
{
Q_OBJECT
public:
SearchReplace( QWidget* parent, ScribusDoc *doc, PageItem* ite, bool mode = true );
~SearchReplace() {};
virtual void slotDoSearch();
virtual void slotDoReplace();
int firstMatchCursorPosition();
QLabel* SText1;
QLabel* RText1;
QGroupBox* Search;
QCheckBox* SStroke;
QCheckBox* SFill;
QCheckBox* SStrokeS;
QCheckBox* SFillS;
QCheckBox* SSize;
QCheckBox* SFont;
QCheckBox* SStyle;
QCheckBox* SAlign;
QCheckBox* SText;
QCheckBox* SEffect;
QCheckBox* REffect;
QLineEdit* STextVal;
QComboBox* SStyleVal;
QComboBox* SAlignVal;
FontCombo* SFontVal;
ScrSpinBox* SSizeVal;
ColorCombo* SFillVal;
ShadeButton *SFillSVal;
ColorCombo* SStrokeVal;
ShadeButton *SStrokeSVal;
QGroupBox* Replace;
QCheckBox* RStroke;
QCheckBox* RStrokeS;
QCheckBox* RFill;
QCheckBox* RFillS;
QCheckBox* RSize;
QCheckBox* RFont;
QCheckBox* RStyle;
QCheckBox* RAlign;
QCheckBox* RText;
QLineEdit* RTextVal;
QComboBox* RStyleVal;
QComboBox* RAlignVal;
FontCombo* RFontVal;
ScrSpinBox* RSizeVal;
ColorCombo* RFillVal;
ShadeButton *RFillSVal;
ColorCombo* RStrokeVal;
ShadeButton *RStrokeSVal;
StyleSelect* SEffVal;
StyleSelect* REffVal;
QCheckBox* Word;
QCheckBox* CaseIgnore;
QPushButton* DoSearch;
QPushButton* DoReplace;
QPushButton* AllReplace;
QPushButton* clearButton;
QPushButton* Leave;
PageItem* Item;
ScribusDoc* Doc;
uint ReplStart;
PrefsContext* prefs;
bool NotFound;
bool SMode;
public slots:
virtual void slotSearch();
virtual void slotReplace();
virtual void slotReplaceAll();
virtual void enableTxSearch();
virtual void enableStyleSearch();
virtual void enableAlignSearch();
virtual void enableFontSearch();
virtual void enableSizeSearch();
virtual void enableEffSearch();
virtual void enableFillSearch();
virtual void enableFillSSearch();
virtual void enableStrokeSearch();
virtual void enableStrokeSSearch();
virtual void enableTxReplace();
virtual void enableStyleReplace();
virtual void enableAlignReplace();
virtual void enableFontReplace();
virtual void enableSizeReplace();
virtual void enableEffReplace();
virtual void enableFillReplace();
virtual void enableFillSReplace();
virtual void enableStrokeReplace();
virtual void enableStrokeSReplace();
virtual void updateReplaceButtonsState();
virtual void updateSearchButtonState();
virtual void writePrefs();
virtual void clear();
signals:
void NewFont(const QString&);
void NewAbs(int);
protected:
QVBoxLayout* SearchReplaceLayout;
QHBoxLayout* SelLayout;
QGridLayout* SearchLayout;
QGridLayout* ReplaceLayout;
QHBoxLayout* OptsLayout;
QHBoxLayout* ButtonsLayout;
virtual void readPrefs();
/// Number of matches found thus far in a search
int matchesFound;
int m_firstMatchPosition;
};
#endif // SEARCHREPLACE_H
|