]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/FindAndReplace.h
Make a string translatable
[lyx.git] / src / frontends / qt4 / FindAndReplace.h
index d2eaf4c1a166c3fcdf83ca498bdd19faad0c54d8..93af5357029f7107a5ebc74ac0e23cc6f029dd73 100644 (file)
 #ifndef QSEARCHADV_H
 #define QSEARCHADV_H
 
-#include "GuiWorkArea.h"
-
 #include "DockView.h"
 // This is needed so that ui_FindAndReplaceUi.h can find qt_()
 #include "qt_helpers.h"
 #include "ui_FindAndReplaceUi.h"
 
-#include "BufferView.h"
-#include "Buffer.h"
-#include "LyX.h"
-#include "Text.h"
 #include "lyxfind.h"
 
-#include <QDialog>
-
 #include <string>
 
 namespace lyx {
@@ -41,6 +33,10 @@ public:
        bool initialiseParams(std::string const & params);
        void updateGUI();
 
+public Q_SLOTS:
+       ///
+       void dockLocationChanged(Qt::DockWidgetArea area);
+
 private:
        ///
        GuiView & view_;
@@ -87,7 +83,8 @@ public:
        bool initialiseParams(std::string const &);
        void clearParams() {}
        void dispatchParams() {}
-       bool isBufferDependent() const { return true; }
+       bool isBufferDependent() const { return false; }
+       bool canApplyToReadOnly() const { return true; }
        void selectAll();
 
        /// update