LibreOffice Module fpicker (master)  1
Classes | Typedefs | Functions | Variables
fpicker::win32::vista Namespace Reference

Classes

class  AsyncRequests
 
class  IVistaFilePickerInternalNotify
 todo document me More...
 
class  Request
 
class  RequestHandler
 
class  VistaFilePicker
 Implements the XFilePicker & friends interface(s) for Windows Vista and upcoming versions. More...
 
class  VistaFilePickerEventHandler
 todo document me More...
 
class  VistaFilePickerImpl
 native implementation of the file picker on Vista and upcoming windows versions. More...
 

Typedefs

typedef std::shared_ptr< RequestRequestRef
 
typedef std::queue< RequestRefRequestQueue
 
typedef std::shared_ptr< RequestHandlerRequestHandlerRef
 
typedef ::cppu::WeakComponentImplHelper< css::ui::dialogs::XFilePicker3, css::ui::dialogs::XFilePickerControlAccess, css::ui::dialogs::XFilePreview, css::ui::dialogs::XFolderPicker2, css::lang::XInitialization, css::lang::XServiceInfo > TVistaFilePickerBase
 
typedef ComPtr< IFileDialog, IID_IFileDialog > TFileDialog
 
typedef ComPtr< IFileOpenDialog, IID_IFileOpenDialog, CLSID_FileOpenDialog > TFileOpenDialog
 
typedef ComPtr< IFileSaveDialog, IID_IFileSaveDialog, CLSID_FileSaveDialog > TFileSaveDialog
 
typedef ComPtr< IFileDialogEvents, IID_IFileDialogEvents > TFileDialogEvents
 
typedef ComPtr< IFileDialogCustomize, IID_IFileDialogCustomize > TFileDialogCustomize
 
typedef TFileOpenDialog TFolderPickerDialog
 

Functions

static void lcl_sleep (::osl::Condition &aCondition,::sal_Int32 nMilliSeconds)
 
static OUString lcl_getURLFromShellItem (IShellItem *pItem)
 
static OUString lcl_AdjustFilterName (const OUString &sName)
 
static::std::vector< COMDLG_FILTERSPEC > lcl_buildFilterList (CFilterContainer &rContainer, std::vector< OUString > &rvStrings)
 
static void setLabelToControl (TFileDialogCustomize iCustom, sal_uInt16 nControlId)
 
static void lcl_removeControlItemsWorkaround (const TFileDialogCustomize &iCustom,::sal_Int16 nControlId)
 
const OUString PROP_PICKER_LISTENER ("picker_listener")
 
const OUString PROP_DIALOG_SHOW_RESULT ("dialog_show_result")
 
const OUString PROP_SELECTED_FILES ("selected_files")
 
const OUString PROP_MULTISELECTION_MODE ("multiselection_mode")
 
const OUString PROP_TITLE ("title")
 
const OUString PROP_FILENAME ("filename")
 
const OUString PROP_DIRECTORY ("directory")
 
const OUString PROP_FEATURES ("features")
 
const OUString PROP_TEMPLATE_DESCR ("templatedescription")
 
const OUString PROP_FILTER_TITLE ("filter_title")
 
const OUString PROP_FILTER_VALUE ("filter_value")
 
const OUString PROP_FILTER_GROUP ("filter-group")
 
const OUString PROP_CONTROL_ID ("control_id")
 
const OUString PROP_CONTROL_ACTION ("control_action")
 
const OUString PROP_CONTROL_VALUE ("control_value")
 
const OUString PROP_CONTROL_LABEL ("control_label")
 
const OUString PROP_CONTROL_ENABLE ("control_enable")
 
const OUString PROP_PARENT_WINDOW ("ParentWindow")
 
const OUString STRING_SEPARATOR ("------------------------------------------")
 

Variables

const char PROP_CONTROL_ID [] = "control_id"
 
const char PROP_PICKER_LISTENER [] = "picker_listener"
 
const ::sal_Int16 INVALID_CONTROL_ID = -1
 
const ::sal_Int16 INVALID_CONTROL_ACTION = -1
 
const GUID CLIENTID_FILEDIALOG_SIMPLE = {0xB8628FD3, 0xA3F5, 0x4845, 0x9B, 0x62, 0xD5, 0x1E, 0xDF, 0x97, 0xC4, 0x83}
 
const GUID CLIENTID_FILEDIALOG_OPTIONS = {0x93ED486F, 0x0D04, 0x4807, 0x8C, 0x44, 0xAC, 0x26, 0xCB, 0x6C, 0x5D, 0x36}
 
const GUID CLIENTID_FILESAVE_PASSWORD = {0xC12D4F4C, 0x4D41, 0x4D4F, 0x97, 0xEF, 0x87, 0xF9, 0x8D, 0xB6, 0x1E, 0xA6}
 
const GUID CLIENTID_FILESAVE_SELECTION = {0x5B2482B3, 0x0358, 0x4E09, 0xAA, 0x64, 0x2B, 0x76, 0xB2, 0xA0, 0xDD, 0xFE}
 
const GUID CLIENTID_FILESAVE_TEMPLATE = {0x9996D877, 0x20D5, 0x424B, 0x9C, 0x2E, 0xD3, 0xB6, 0x31, 0xEC, 0xF7, 0xCE}
 
const GUID CLIENTID_FILEOPEN_LINK_TEMPLATE = {0x32237796, 0x1509, 0x49D1, 0xBB, 0x7E, 0x63, 0xAD, 0x36, 0xAE, 0x86, 0x8C}
 
const GUID CLIENTID_FILEOPEN_LINK_ANCHOR = {0xBE3188CB, 0x399A, 0x45AE, 0x8F, 0x78, 0x75, 0x17, 0xAF, 0x26, 0x81, 0xEA}
 
const GUID CLIENTID_FILEOPEN_PLAY = {0x32CFB147, 0xF5AE, 0x4F90, 0xA1, 0xF1, 0x81, 0x20, 0x72, 0xBB, 0x2F, 0xC5}
 
const GUID CLIENTID_FILEOPEN_LINK = {0x39AC4BAE, 0x7D2D, 0x46BC, 0xBE, 0x2E, 0xF8, 0x8C, 0xB5, 0x65, 0x5E, 0x6A}
 
const ::sal_Int32 GROUP_VERSION = 1
 
const ::sal_Int32 GROUP_TEMPLATE = 2
 
const ::sal_Int32 GROUP_IMAGETEMPLATE = 3
 
const ::sal_Int32 GROUP_CHECKBOXES = 4
 
const ::sal_Int32 GROUP_IMAGEANCHOR = 5
 
const ::sal_Int32 FEATURE_AUTOEXTENSION = 1
 
const ::sal_Int32 FEATURE_PASSWORD = 2
 
const ::sal_Int32 FEATURE_FILTEROPTIONS = 4
 
const ::sal_Int32 FEATURE_SELECTION = 8
 
const ::sal_Int32 FEATURE_TEMPLATE = 16
 
const ::sal_Int32 FEATURE_LINK = 32
 
const ::sal_Int32 FEATURE_PREVIEW = 64
 
const ::sal_Int32 FEATURE_IMAGETEMPLATE = 128
 
const ::sal_Int32 FEATURE_PLAY = 256
 
const ::sal_Int32 FEATURE_READONLY = 512
 
const ::sal_Int32 FEATURE_VERSION = 1024
 
const ::sal_Int32 FEATURE_GPGPASSWORD = 2048
 
const ::sal_Int32 FEATURE_IMAGEANCHOR = 4096
 

Typedef Documentation

Definition at line 133 of file asyncrequests.hxx.

Definition at line 121 of file asyncrequests.hxx.

typedef std::shared_ptr< Request > fpicker::win32::vista::RequestRef

Definition at line 120 of file asyncrequests.hxx.

typedef ComPtr< IFileDialog , IID_IFileDialog > fpicker::win32::vista::TFileDialog

Definition at line 34 of file vistatypes.h.

typedef ComPtr< IFileDialogCustomize, IID_IFileDialogCustomize > fpicker::win32::vista::TFileDialogCustomize

Definition at line 38 of file vistatypes.h.

typedef ComPtr< IFileDialogEvents , IID_IFileDialogEvents > fpicker::win32::vista::TFileDialogEvents

Definition at line 37 of file vistatypes.h.

typedef ComPtr< IFileOpenDialog , IID_IFileOpenDialog , CLSID_FileOpenDialog > fpicker::win32::vista::TFileOpenDialog

Definition at line 35 of file vistatypes.h.

typedef ComPtr< IFileSaveDialog , IID_IFileSaveDialog , CLSID_FileSaveDialog > fpicker::win32::vista::TFileSaveDialog

Definition at line 36 of file vistatypes.h.

Definition at line 39 of file vistatypes.h.

typedef ::cppu::WeakComponentImplHelper< css::ui::dialogs::XFilePicker3, css::ui::dialogs::XFilePickerControlAccess, css::ui::dialogs::XFilePreview, css::ui::dialogs::XFolderPicker2, css::lang::XInitialization, css::lang::XServiceInfo > fpicker::win32::vista::TVistaFilePickerBase

Definition at line 53 of file VistaFilePicker.hxx.

Function Documentation

static OUString fpicker::win32::vista::lcl_AdjustFilterName ( const OUString &  sName)
static

Definition at line 152 of file VistaFilePickerImpl.cxx.

References idx.

Referenced by lcl_buildFilterList().

static ::std::vector<COMDLG_FILTERSPEC> fpicker::win32::vista::lcl_buildFilterList ( CFilterContainer rContainer,
std::vector< OUString > &  rvStrings 
)
static OUString fpicker::win32::vista::lcl_getURLFromShellItem ( IShellItem *  pItem)
static
static void fpicker::win32::vista::lcl_removeControlItemsWorkaround ( const TFileDialogCustomize iCustom,
::sal_Int16  nControlId 
)
static
static void fpicker::win32::vista::lcl_sleep ( ::osl::Condition &  aCondition,
::sal_Int32  nMilliSeconds 
)
static
const OUString fpicker::win32::vista::PROP_CONTROL_ACTION ( "control_action"  )
const OUString fpicker::win32::vista::PROP_CONTROL_ENABLE ( "control_enable"  )
const OUString fpicker::win32::vista::PROP_CONTROL_ID ( "control_id"  )
const OUString fpicker::win32::vista::PROP_CONTROL_LABEL ( "control_label"  )
const OUString fpicker::win32::vista::PROP_CONTROL_VALUE ( "control_value"  )
const OUString fpicker::win32::vista::PROP_DIALOG_SHOW_RESULT ( "dialog_show_result"  )
const OUString fpicker::win32::vista::PROP_DIRECTORY ( "directory"  )
const OUString fpicker::win32::vista::PROP_FEATURES ( "features"  )
const OUString fpicker::win32::vista::PROP_FILENAME ( "filename"  )
const OUString fpicker::win32::vista::PROP_FILTER_GROUP ( "filter-group )
const OUString fpicker::win32::vista::PROP_FILTER_TITLE ( "filter_title"  )
const OUString fpicker::win32::vista::PROP_FILTER_VALUE ( "filter_value"  )
const OUString fpicker::win32::vista::PROP_MULTISELECTION_MODE ( "multiselection_mode"  )
const OUString fpicker::win32::vista::PROP_PARENT_WINDOW ( "ParentWindow"  )
const OUString fpicker::win32::vista::PROP_PICKER_LISTENER ( "picker_listener"  )
const OUString fpicker::win32::vista::PROP_SELECTED_FILES ( "selected_files"  )
const OUString fpicker::win32::vista::PROP_TEMPLATE_DESCR ( "templatedescription"  )
const OUString fpicker::win32::vista::PROP_TITLE ( "title"  )
static void fpicker::win32::vista::setLabelToControl ( TFileDialogCustomize  iCustom,
sal_uInt16  nControlId 
)
static
const OUString fpicker::win32::vista::STRING_SEPARATOR ( "------------------------------------------"  )

Variable Documentation

const GUID fpicker::win32::vista::CLIENTID_FILEDIALOG_OPTIONS = {0x93ED486F, 0x0D04, 0x4807, 0x8C, 0x44, 0xAC, 0x26, 0xCB, 0x6C, 0x5D, 0x36}
const GUID fpicker::win32::vista::CLIENTID_FILEDIALOG_SIMPLE = {0xB8628FD3, 0xA3F5, 0x4845, 0x9B, 0x62, 0xD5, 0x1E, 0xDF, 0x97, 0xC4, 0x83}
const GUID fpicker::win32::vista::CLIENTID_FILEOPEN_LINK = {0x39AC4BAE, 0x7D2D, 0x46BC, 0xBE, 0x2E, 0xF8, 0x8C, 0xB5, 0x65, 0x5E, 0x6A}
const GUID fpicker::win32::vista::CLIENTID_FILEOPEN_LINK_ANCHOR = {0xBE3188CB, 0x399A, 0x45AE, 0x8F, 0x78, 0x75, 0x17, 0xAF, 0x26, 0x81, 0xEA}
const GUID fpicker::win32::vista::CLIENTID_FILEOPEN_LINK_TEMPLATE = {0x32237796, 0x1509, 0x49D1, 0xBB, 0x7E, 0x63, 0xAD, 0x36, 0xAE, 0x86, 0x8C}
const GUID fpicker::win32::vista::CLIENTID_FILEOPEN_PLAY = {0x32CFB147, 0xF5AE, 0x4F90, 0xA1, 0xF1, 0x81, 0x20, 0x72, 0xBB, 0x2F, 0xC5}
const GUID fpicker::win32::vista::CLIENTID_FILESAVE_PASSWORD = {0xC12D4F4C, 0x4D41, 0x4D4F, 0x97, 0xEF, 0x87, 0xF9, 0x8D, 0xB6, 0x1E, 0xA6}
const GUID fpicker::win32::vista::CLIENTID_FILESAVE_SELECTION = {0x5B2482B3, 0x0358, 0x4E09, 0xAA, 0x64, 0x2B, 0x76, 0xB2, 0xA0, 0xDD, 0xFE}
const GUID fpicker::win32::vista::CLIENTID_FILESAVE_TEMPLATE = {0x9996D877, 0x20D5, 0x424B, 0x9C, 0x2E, 0xD3, 0xB6, 0x31, 0xEC, 0xF7, 0xCE}
const ::sal_Int32 fpicker::win32::vista::FEATURE_AUTOEXTENSION = 1
const ::sal_Int32 fpicker::win32::vista::FEATURE_FILTEROPTIONS = 4
const ::sal_Int32 fpicker::win32::vista::FEATURE_GPGPASSWORD = 2048
const ::sal_Int32 fpicker::win32::vista::FEATURE_IMAGEANCHOR = 4096
const ::sal_Int32 fpicker::win32::vista::FEATURE_IMAGETEMPLATE = 128
const ::sal_Int32 fpicker::win32::vista::FEATURE_LINK = 32
const ::sal_Int32 fpicker::win32::vista::FEATURE_PASSWORD = 2
const ::sal_Int32 fpicker::win32::vista::FEATURE_PLAY = 256
const ::sal_Int32 fpicker::win32::vista::FEATURE_PREVIEW = 64
const ::sal_Int32 fpicker::win32::vista::FEATURE_READONLY = 512
const ::sal_Int32 fpicker::win32::vista::FEATURE_SELECTION = 8
const ::sal_Int32 fpicker::win32::vista::FEATURE_TEMPLATE = 16
const ::sal_Int32 fpicker::win32::vista::FEATURE_VERSION = 1024
const ::sal_Int32 fpicker::win32::vista::GROUP_CHECKBOXES = 4

Definition at line 539 of file VistaFilePickerImpl.cxx.

const ::sal_Int32 fpicker::win32::vista::GROUP_IMAGEANCHOR = 5

Definition at line 540 of file VistaFilePickerImpl.cxx.

const ::sal_Int32 fpicker::win32::vista::GROUP_IMAGETEMPLATE = 3

Definition at line 538 of file VistaFilePickerImpl.cxx.

const ::sal_Int32 fpicker::win32::vista::GROUP_TEMPLATE = 2

Definition at line 537 of file VistaFilePickerImpl.cxx.

const ::sal_Int32 fpicker::win32::vista::GROUP_VERSION = 1

Definition at line 536 of file VistaFilePickerImpl.cxx.

const ::sal_Int16 fpicker::win32::vista::INVALID_CONTROL_ACTION = -1

Definition at line 82 of file VistaFilePickerImpl.cxx.

const ::sal_Int16 fpicker::win32::vista::INVALID_CONTROL_ID = -1

Definition at line 81 of file VistaFilePickerImpl.cxx.

const char fpicker::win32::vista::PROP_CONTROL_ID[] = "control_id"
const char fpicker::win32::vista::PROP_PICKER_LISTENER[] = "picker_listener"