LCOV - code coverage report
Current view: top level - sfx2/source/dialog - filtergrouping.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 1 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : #ifndef INCLUDED_SFX2_SOURCE_DIALOG_FILTERGROUPING_HXX
      21             : #define INCLUDED_SFX2_SOURCE_DIALOG_FILTERGROUPING_HXX
      22             : 
      23             : #include <com/sun/star/ui/dialogs/XFilterManager.hpp>
      24             : #include <com/sun/star/container/XEnumeration.hpp>
      25             : #include "filedlgimpl.hxx"
      26             : 
      27             : 
      28             : namespace sfx2
      29             : {
      30             : 
      31             : 
      32           0 :     class TSortedFilterList
      33             :     {
      34             :         private:
      35             : 
      36             :             ::std::vector< OUString > m_lFilters;
      37             :             sal_Int32 m_nIterator;
      38             : 
      39             :         public:
      40             : 
      41             :             TSortedFilterList(const ::com::sun::star::uno::Reference< ::com::sun::star::container::XEnumeration >& xFilterList);
      42             :             const SfxFilter* First();
      43             :             const SfxFilter* Next();
      44             : 
      45             :         private:
      46             :             const SfxFilter* impl_getFilter(sal_Int32 nIndex);
      47             :     };
      48             : 
      49             : 
      50             :     /** adds the given filters to the filter manager.
      51             :         <p>To be used when saving generic files.</p>
      52             :     */
      53             :     void appendFiltersForSave(
      54             :         TSortedFilterList& _rFilterMatcher,
      55             :         const ::com::sun::star::uno::Reference< ::com::sun::star::ui::dialogs::XFilterManager >& _rFilterManager,
      56             :         OUString& /* [out] */ _rFirstNonEmpty,
      57             :         FileDialogHelper_Impl& _rFileDlgImpl,
      58             :         const OUString& _rFactory
      59             :     );
      60             : 
      61             :     void appendExportFilters(
      62             :         TSortedFilterList& _rFilterMatcher,
      63             :         const ::com::sun::star::uno::Reference< ::com::sun::star::ui::dialogs::XFilterManager >& _rFilterManager,
      64             :         OUString& /* [out] */ _rFirstNonEmpty,
      65             :         FileDialogHelper_Impl& _rFileDlgImpl
      66             :         );
      67             : 
      68             : 
      69             :     /** adds the given filters to the filter manager.
      70             :         <p>To be used when opening generic files.</p>
      71             :     */
      72             :     void appendFiltersForOpen(
      73             :         TSortedFilterList& _rFilterMatcher,
      74             :         const ::com::sun::star::uno::Reference< ::com::sun::star::ui::dialogs::XFilterManager >& _rFilterManager,
      75             :         OUString& /* [out] */ _rFirstNonEmpty,
      76             :         FileDialogHelper_Impl& _rFileDlgImpl
      77             :     );
      78             : 
      79             : 
      80             :     /** adds the given extension to the display text.
      81             :         <p>To be used when opening or save generic files.</p>
      82             :     */
      83             :     OUString addExtension(
      84             :         const OUString& _rDisplayText,
      85             :         const OUString& _rExtension,
      86             :         bool _bForOpen,
      87             :         FileDialogHelper_Impl& _rFileDlgImpl
      88             :     );
      89             : 
      90             : 
      91             : }   // namespace sfx2
      92             : 
      93             : 
      94             : #endif // INCLUDED_SFX2_SOURCE_DIALOG_FILTERGROUPING_HXX
      95             : 
      96             : 
      97             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11