]> git.lyx.org Git - lyx.git/blobdiff - src/lyx_gui_misc.h
Fix small bug in reading \set_color in lyxrc
[lyx.git] / src / lyx_gui_misc.h
index 485c30f341c447c39165ae899f7f4e92d0743963..8b959bd0895064a7b6dc1ef60a37f56f8ad3479e 100644 (file)
 #ifndef LYX_GUI_MISC_H
 #define LYX_GUI_MISC_H
 
+#ifdef __GNUG__
+#pragma interface
+#endif
+
 #include FORMS_H_LOCATION
 #include "LString.h"
 #include <utility>  /* needed for pair<> definition */
@@ -24,10 +28,10 @@ extern "C" int CancelCloseBoxCB(FL_FORM *, void *);
 extern "C" int IgnoreCloseBoxCB(FL_FORM *, void *);
 
 /// Prevents LyX from crashing when no buffers available
-void CloseAllBufferRelatedPopups();
+void CloseAllBufferRelatedDialogs();
 
 /// Ensures info in visible popups are always correct.
-void updateAllVisibleBufferRelatedPopups();
+void updateAllVisibleBufferRelatedDialogs();
 
 /// Extract shortcut from <ident>|<shortcut> string
 char const * flyx_shortcut_extract(char const * sc);
@@ -61,8 +65,11 @@ std::pair<bool, string> askForText(string const & msg,
 /// Informs the user that changes in the coming form will be ignored
 void WarnReadonly(string const & file);
 
+/// Get the dpi setting of the current screen
+float getScreenDPI();
+
 // inlined functions
-/// rings the audio bell.
+// rings the audio bell.
 inline
 void LyXBell() {
        // if (audio()) ON/OFF switch yet to be implemented