LCOV - code coverage report
Current view: top level - sfx2/source/dialog - filtergrouping.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2012-08-25 Functions: 0 1 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     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 SFX2_FILTERGROUPING_HXX
      21                 :            : #define SFX2_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< ::rtl::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                 :            :         ::rtl::OUString& /* [out] */ _rFirstNonEmpty,
      57                 :            :         FileDialogHelper_Impl& _rFileDlgImpl,
      58                 :            :         const ::rtl::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                 :            :         ::rtl::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                 :            :         ::rtl::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                 :            :     ::rtl::OUString addExtension(
      84                 :            :         const ::rtl::OUString& _rDisplayText,
      85                 :            :         const ::rtl::OUString& _rExtension,
      86                 :            :         sal_Bool _bForOpen,
      87                 :            :         FileDialogHelper_Impl& _rFileDlgImpl
      88                 :            :     );
      89                 :            : 
      90                 :            : //........................................................................
      91                 :            : }   // namespace sfx2
      92                 :            : //........................................................................
      93                 :            : 
      94                 :            : #endif // SFX2_FILTERGROUPING_HXX
      95                 :            : 
      96                 :            : 
      97                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10