/* -*- 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 .
*/ #pragma once
/** find a filter with the given wildcard @param _rFilter the wildcard pattern to look for in the filter list @param _bMultiExt allow for filters with more than one extension pattern @param _rFilterChanged set to <TRUE/> if the filter changed @return the filter which has been found
*/
SvtFileDialogFilter_Impl* FindFilter_Impl( const OUString& _rFilter, bool _bMultiExt, bool& _rFilterChanged
); void ExecuteFilter(); void OpenMultiSelection_Impl(); void AddControls_Impl( );
// removes a filter with wildcards from the path and returns it staticbool IsolateFilterFromPath_Impl( OUString& rPath, OUString& rFilter );
OUString m_aPath;
OUString m_aDefExt;
/** enables or disables the complete UI of the file picker, with only offering a cancel button
This method preserves the "enabled" state of its controls in the following sense: If you disable a certain control, then disable the dialog UI, then enable the dialog UI, the control will still be disabled. This is under the assumption that you'll use EnableControl. Direct access to the control (such as pControl->Enable()) will break this.
*/ void EnableUI( bool _bEnable );
/** enables or disables a control
You are strongly encouraged to prefer this method over pControl->Enable( bEnable ). See <member>EnableUI</member> for details.
*/ void EnableControl(weld::Widget* pControl, bool bEnable); virtualbool PrepareExecute() override;
/// executes a certain FileView action asynchronously void executeAsync(
::svt::AsyncPickerAction::Action _eAction, const OUString& _rURL, const OUString& _rFilter
);
/** helper function to check and append the default filter extension if necessary. The function checks if the specified filename already contains one of the valid extensions of the specified filter. If not the filter default extension is appended to the filename.
@param _rFileName the filename which is checked and extended if necessary. @param _rFilterDefaultExtension the default extension of the used filter. @param _rFilterExtensions a list of one or more valid filter extensions of the used filter.
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.