xref: /trunk/main/sot/inc/sot/filelist.hxx (revision 914d351e5f5b84e4342a86d6ab8d4aca7308b9bd)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _FILELIST_HXX
25 #define _FILELIST_HXX
26 
27 #include <tools/stream.hxx>
28 #include "sot/sotdllapi.h"
29 
30 class FileStringList;
31 
32 class SOT_DLLPUBLIC FileList : public SvDataCopyStream
33 {
34     FileStringList*     pStrList;
35 
36 protected:
37 
38     // SvData-Methoden
39     virtual void        Load( SvStream& );
40     virtual void        Save( SvStream& );
41     virtual void        Assign( const SvDataCopyStream& );
42 
43     // Liste loeschen;
44     void ClearAll( void );
45 
46 public:
47 
48     TYPEINFO();
49                         FileList();
50                         ~FileList();
51 
52     // Zuweisungsoperator
53     FileList&           operator=( const FileList& rFileList );
54 
55 
56     // Im-/Export
57     SOT_DLLPUBLIC friend SvStream&  operator<<( SvStream& rOStm, const FileList& rFileList );
58     SOT_DLLPUBLIC friend SvStream&  operator>>( SvStream& rIStm, FileList& rFileList );
59 
60     // Clipboard, D&D usw.
61     static sal_uLong        GetFormat();
62 
63 
64     // Liste fuellen/abfragen
65     void AppendFile( const String& rStr );
66     String GetFile( sal_uLong i ) const;
67     sal_uLong Count( void ) const;
68 
69 };
70 
71 #endif // _FILELIST_HXX
72