LCOV - code coverage report
Current view: top level - libreoffice/sfx2/inc - orgmgr.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 3 0.0 %
Date: 2012-12-17 Functions: 0 3 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             : #ifndef _SFX_ORGMGR_HXX
      20             : #define _SFX_ORGMGR_HXX
      21             : 
      22             : #include <o3tl/sorted_vector.hxx>
      23             : 
      24             : class SfxDocumentTemplates;
      25             : class SfxOrganizeListBox_Impl;
      26             : struct _FileListEntry;
      27             : 
      28             : //=========================================================================
      29             : 
      30             : class SfxObjectList : public o3tl::sorted_vector<_FileListEntry*, o3tl::less_ptr_to<_FileListEntry> >
      31             : {
      32             : public:
      33             :     SfxObjectList();
      34             :     ~SfxObjectList();
      35             : 
      36             :     const String& GetBaseName( const _FileListEntry* p ) const;
      37             : };
      38             : 
      39             : class IntlWrapper;
      40             : struct SfxOrganizeMgr_Impl
      41             : {
      42             :     SfxObjectList*      pDocList;
      43             :     IntlWrapper*        pIntlWrapper;
      44             : 
      45           0 :     SfxOrganizeMgr_Impl() :  pDocList( NULL ), pIntlWrapper( NULL ) {}
      46             : };
      47             : 
      48             : //=========================================================================
      49             : 
      50             : class SfxOrganizeMgr
      51             : {
      52             : private:
      53             :     SfxOrganizeMgr_Impl*        pImpl;
      54             :     SfxDocumentTemplates*       pTemplates;
      55             :     sal_Bool                        bDeleteTemplates    :1;
      56             :     sal_Bool                        bModified           :1;
      57             : 
      58             : public:
      59             :     SfxOrganizeMgr(SfxDocumentTemplates* pTempl = NULL);
      60             :     ~SfxOrganizeMgr();
      61             : 
      62             :     sal_Bool    Copy( sal_uInt16 nTargetRegion, sal_uInt16 nTargetIdx, sal_uInt16 nSourceRegion, sal_uInt16 nSourceIdx );
      63             :     sal_Bool    Move( sal_uInt16 nTargetRegion, sal_uInt16 nTargetIdx, sal_uInt16 nSourceRegion, sal_uInt16 nSourceIdx );
      64             :     sal_Bool    Delete( SfxOrganizeListBox_Impl* pCaller, sal_uInt16 nRegion, sal_uInt16 nIdx );
      65             :     sal_Bool    InsertDir( SfxOrganizeListBox_Impl* pCaller, const String& rName, sal_uInt16 nRegion );
      66             :     sal_Bool    SetName( const String& rName, sal_uInt16 nRegion, sal_uInt16 nIdx = USHRT_MAX );
      67             :     sal_Bool    CopyTo( sal_uInt16 nRegion, sal_uInt16 nIdx, const String& rName ) const;
      68             :     sal_Bool    CopyFrom( SfxOrganizeListBox_Impl* pCaller, sal_uInt16 nRegion, sal_uInt16 nIdx, String& rName );
      69             : 
      70             :     sal_Bool    Rescan();
      71             :     sal_Bool    InsertFile( SfxOrganizeListBox_Impl* pCaller, const String& rFileName );
      72             : 
      73             :     sal_Bool    IsModified() const { return bModified ? sal_True : sal_False; }
      74             : 
      75           0 :     const SfxDocumentTemplates* GetTemplates() const { return pTemplates; }
      76           0 :     SfxObjectList&              GetObjectList() { return *pImpl->pDocList; }
      77             :     const SfxObjectList&        GetObjectList() const { return *pImpl->pDocList; }
      78             : 
      79             :     SfxObjectShellRef   CreateObjectShell( sal_uInt16 nIdx );
      80             :     SfxObjectShellRef   CreateObjectShell( sal_uInt16 nRegion, sal_uInt16 nIdx );
      81             :     sal_Bool                DeleteObjectShell( sal_uInt16 );
      82             :     sal_Bool                DeleteObjectShell( sal_uInt16, sal_uInt16 );
      83             :     void                SaveAll( Window* pParent );
      84             : };
      85             : 
      86             : #endif // #ifndef _SFX_ORGMGR_HXX
      87             : 
      88             : 
      89             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10