/usr/include/scribus/scrapbookpalette.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 | /*
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 BIBLIO_H
#define BIBLIO_H
#include <QDropEvent>
#include <QDragMoveEvent>
#include <QDragEnterEvent>
#include <QListWidget>
class QEvent;
#include "scribusapi.h"
#include "scrpalettebase.h"
#include "scribusstructs.h"
class QHBoxLayout;
class QToolButton;
class QVBoxLayout;
class QToolBox;
class QPixmap;
class QListWidgetItem;
class SCRIBUS_API BibView : public QListWidget
{
Q_OBJECT
public:
BibView( QWidget* parent);
~BibView() {};
void AddObj(QString name, QString daten, QPixmap Bild);
void checkAndChange(QString &text, QString nam, QString dir);
void SaveContents(QString name, QString oldName);
void ReadOldContents(QString, QString newName);
void ReadContents(QString name);
struct Elem
{
QString Data;
QPixmap Preview;
};
QMap<QString,Elem> objectMap;
QString ScFilename;
QString visibleName;
bool canWrite;
signals:
void ToggleAllPalettes();
void Schliessen();
void CloseMpal();
void CloseTpal();
void objDropped(QString text);
protected:
void dragEnterEvent(QDragEnterEvent *e);
void dragMoveEvent(QDragMoveEvent *e);
void dropEvent(QDropEvent *e);
void startDrag(Qt::DropActions supportedActions);
};
class SCRIBUS_API Biblio : public ScrPaletteBase
{
Q_OBJECT
public:
Biblio( QWidget* parent);
~Biblio() {};
virtual void changeEvent(QEvent *e);
void ObjFromCopyAction(QString text, QString name);
void adjustReferences(QString nam);
void CleanUpTemp();
void setScrapbookFileName(QString);
const QString getScrapbookFileName();
const int objectCount();
void readContents(QString);
void readTempContents(QString);
void readOldContents(QString, QString);
void installEventFilter(QObject *);
void setOpenScrapbooks(QStringList &fileNames);
QStringList getOpenScrapbooks();
QStringList getOpenScrapbooksNames();
QString getObjectName(QString &text);
BibView* tempBView;
BibView* activeBView;
QListWidgetItem *actItem;
public slots:
void languageChange();
void ObjFromMenu(QString text);
void ObjFromMainMenu(QString text, int scrapID);
private slots:
void handleDoubleClick(QListWidgetItem *ite);
void handlePasteToPage();
void HandleMouse(QPoint p);
bool copyObj(int id);
void moveObj(int id);
void deleteObj();
void deleteAllObj();
void renameObj();
void NewLib();
void Load();
void SaveAs();
void closeLib();
void libChanged(int index);
void Import();
signals:
void updateRecentMenue();
void pasteToActualPage(QString);
protected:
QToolBox* Frame3;
QVBoxLayout* BiblioLayout;
int tempCount;
QString OldName;
QHBoxLayout* buttonLayout;
QToolButton* newButton;
QToolButton* loadButton;
QToolButton* saveAsButton;
QToolButton* importButton;
QToolButton* closeButton;
};
#endif // BIBLIO_H
|