index 9de49019346927a9dd2773853bef52f69581d63f..3a0c3775bf4d276ebfcec5bde6ead81d73beaa22 100644 (file)
protected:
/// The dialog type
FileDialogType dialogType;
-
+
/// A pointer to the GTK main-loop context object. This
/// is used to keep the rest of the inkscape UI running
/// while the file dialog is displayed
/// The index of the currently selected filter.
/// This value must be greater than or equal to 1,
/// and less than or equal to _filter_count.
- int _filter_index;
-
+ unsigned int _filter_index;
+
/// The number of filters registered
- int _filter_count;
+ unsigned int _filter_count;
/// An array of the extensions associated with the
/// file types of each filter. So the Nth entry of
/// filter in the list. NULL if no specific extension is
/// specified/
Inkscape::Extension::Extension **_extension_map;
-
+
/// The currently selected extension. Valid after an [OK]
Inkscape::Extension::Extension *_extension;
};
/// This flag is set true if a file has been selected
bool _file_selected;
-
+
/// This flag is set true when the GetOpenFileName call
/// has returned
bool _finished;
-
+
/// This mutex is used to ensure that the worker thread
/// that calls GetOpenFileName cannot collide with the
/// main Inkscape thread
/// @return Returns true if the image loaded successfully
bool set_image_preview();
+ /// Loads the preview for a meta file
+ /// Main app thread only.
+ /// @return Returns true if the image loaded successfully
+ bool set_emf_preview();
+
+ /// This flag is set true when a meta file is previewed
+ bool _preview_emf_image;
+
/// Renders the unshrunk preview image to a windows HTBITMAP
/// which can be painted in the preview pain.
/// Main app thread only.
const Glib::ustring &dir,
FileDialogType fileTypes,
const char *title,
- const Glib::ustring &default_key);
+ const Glib::ustring &default_key,
+ const char *docTitle);
/// Destructor
virtual ~FileSaveDialogImplWin32();
virtual void setSelectionType( Inkscape::Extension::Extension *key );
private:
+ /// A handle to the title label and edit box
+ HWND _title_label;
+ HWND _title_edit;
/// Create a filter menu for this type of dialog
void createFilterMenu();
/// GetSaveFileName
void GetSaveFileName_thread();
+ /// A message proc which is called by the standard dialog
+ /// proc
+ static UINT_PTR CALLBACK GetSaveFileName_hookproc(HWND hdlg, UINT uiMsg, WPARAM wParam, LPARAM lParam);
+
};