/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ #ifndef INCLUDED_SFX2_FILEDLGHELPER_HXX #define INCLUDED_SFX2_FILEDLGHELPER_HXX
@deprecated don't use this method. It contains a lot of magic in determining whether the last segment of the given path/URL denotes a file name or a folder, and by definition, it cannot succeed with this magic *all* the time - there will always be scenarios where it fails.
Use SetDisplayFolder and SetFileName.
*/ void SetDisplayDirectory( const OUString& rPath );
/** sets a new folder whose content is to be displayed in the file picker
@param _rURL specifies the URL of the folder whose content is to be displayed.<br/> If the URL doesn't denote a valid (existent and accessible) folder, the request is silently dropped. @throws css::uno::RuntimeException if the invocation of any of the file picker or UCB methods throws a RuntimeException.
*/ void SetDisplayFolder( const OUString& _rURL );
/** sets an initial file name to display
This method is usually used in "save-as" contexts, where the application should suggest an initial name for the file to save.
Calling this method is nearly equivalent to calling <code>GetFilePicker().setDefaultName( _rFileName )</code>, with the following differences: <ul><li>The FileDialogHelper remembers the given file name, and upon execution, strips its extension if the dialog is set up for "automatic file name extension".</li> <li>Exceptions thrown from the <code>XFilePicker3</code> are caught and silenced.</li> </ul>
*/ void SetFileName( const OUString& _rFileName );
/** sets help ids for the controls in the dialog @param _pControlId Pointer to a 0-terminated array of control ids. They must be recruited from the CommonFilePickerElementIds and ExtendedFilePickerElementIds values. @param _pHelpId Pointer to an array of help ids. For each element in _pControlId, there must be a corresponding element herein.
*/ void SetControlHelpIds( const sal_Int16* _pControlId, constchar** _pHelpId ); void CreateMatcher( const OUString& rName );
/** sets the context of the dialog and trigger necessary actions e.g. loading config, setting help id This will also store the last used directory for this context, so that the last directory gets preselected on next filepicker launch (with the same context) @param _eNewContext New context for the dialog.
*/ void SetContext( Context _eNewContext );
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.