/** native implementation of the file picker on Vista and upcoming windows versions. *ThisdialogusesCOMinternally.Furtheritmarshalleveryrequestsoitwill *beexecutedonthemainthreadwhichisanSTAthread!
*/
class VistaFilePickerImpl : public IVistaFilePickerInternalNotify
{ public:
// Workaround made to get input in Template Listbox
css::uno::Sequence< OUString > m_lItems; /** used for marshalling requests. *Willbeusedtomaprequeststotherightimplementations.
*/ enum ERequest
{
E_NO_REQUEST,
E_ADD_PICKER_LISTENER,
E_REMOVE_PICKER_LISTENER,
E_APPEND_FILTER,
E_SET_CURRENT_FILTER,
E_GET_CURRENT_FILTER,
E_CREATE_OPEN_DIALOG,
E_CREATE_SAVE_DIALOG,
E_CREATE_FOLDER_PICKER,
E_SET_MULTISELECTION_MODE,
E_SET_TITLE,
E_SET_FILENAME,
E_GET_DIRECTORY,
E_SET_DIRECTORY,
E_SET_DEFAULT_NAME,
E_GET_SELECTED_FILES,
E_SHOW_DIALOG_MODAL,
E_SET_CONTROL_VALUE,
E_GET_CONTROL_VALUE,
E_SET_CONTROL_LABEL,
E_GET_CONTROL_LABEL,
E_ENABLE_CONTROL,
E_APPEND_FILTERGROUP
};
/// implementation of request E_ADD_FILEPICKER_LISTENER void impl_sta_addFilePickerListener(Request& rRequest);
/// implementation of request E_REMOVE_FILEPICKER_LISTENER void impl_sta_removeFilePickerListener(Request& rRequest);
/// implementation of request E_APPEND_FILTER void impl_sta_appendFilter(Request& rRequest);
/// implementation of request E_APPEND_FILTERGROUP void impl_sta_appendFilterGroup(Request& rRequest);
/// implementation of request E_SET_CURRENT_FILTER void impl_sta_setCurrentFilter(Request& rRequest);
/// implementation of request E_GET_CURRENT_FILTER void impl_sta_getCurrentFilter(Request& rRequest);
/// implementation of request E_CREATE_OPEN_DIALOG void impl_sta_CreateOpenDialog(Request& rRequest);
/// implementation of request E_CREATE_SAVE_DIALOG void impl_sta_CreateSaveDialog(Request& rRequest);
/// implementation of request E_CREATE_FOLDER_PICKER void impl_sta_CreateFolderPicker(Request& rRequest);
/// implementation of request E_SET_MULTISELECTION_MODE void impl_sta_SetMultiSelectionMode(Request& rRequest);
/// implementation of request E_SET_TITLE void impl_sta_SetTitle(Request& rRequest);
/// implementation of request E_SET_FILENAME void impl_sta_SetFileName(Request& rRequest);
/// implementation of request E_SET_DIRECTORY void impl_sta_SetDirectory(Request& rRequest);
/// implementation of request E_GET_DIRECTORY void impl_sta_GetDirectory(Request& rRequest);
/// implementation of request E_SET_DEFAULT_NAME void impl_sta_SetDefaultName(Request& rRequest);
/// implementation of request E_GET_SELECTED_FILES void impl_sta_getSelectedFiles(Request& rRequest);
/// implementation of request E_SHOW_DIALOG_MODAL void impl_sta_ShowDialogModal(Request& rRequest);
/// implementation of request E_SET_CONTROL_VALUE void impl_sta_SetControlValue(Request& rRequest);
/// implementation of request E_GET_CONTROL_VALUE void impl_sta_GetControlValue(Request& rRequest);
/// implementation of request E_SET_CONTROL_LABEL void impl_sta_SetControlLabel(Request& rRequest);
/// implementation of request E_GET_CONTROL_LABEL staticvoid impl_sta_GetControlLabel(Request& rRequest);
/// implementation of request E_ENABLE_CONTROL void impl_sta_EnableControl(Request& rRequest);
/** create all needed (optional!) UI controls addressed by the field nFeatures. *ThegivennumbernFeaturesisusedasaflagfield.UseconstvaluesFEATURE_XXX *toaddressit. * *Internalnewcontrolswillbeaddedtothedialog.Everycontrolcanbeaccessed *byitsowncontrolid.ThosecontrolIDmustbeoneoftheconstset *css::ui::dialogs::ExtendedFilePickerElementIds. * *@seesetControlValue() *@seegetControlValue() *@seesetControlLabel() *@seegetControlLabel() *@seeenableControl() * *@paramnFeatures *flagfield(!)knowsallfeatureswhichmustbeenabled.
*/ void impl_sta_enableFeatures(::sal_Int32 nFeatures, ::sal_Int32 nTemplate);
/** returns an interface, which can be used to customize the internally used *COMdialog. * *Becauseweusetwomember(open/savedialog)internally,thismethod *askthecurrentactiveoneforitscustomizationinterface. * *@returnthecustomizationinterfaceforthecurrentuseddialog. *Mustnotbenull.
*/
TFileDialogCustomize impl_getCustomizeInterface();
TFileDialog impl_getBaseDialogInterface();
/// fill filter list of internal used dialog. void impl_sta_setFiltersOnDialog();
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.