xref: /aoo42x/main/l10ntools/inc/srciter.hxx (revision 79cb83d0)
1983d4c8aSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3983d4c8aSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4983d4c8aSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5983d4c8aSAndrew Rist  * distributed with this work for additional information
6983d4c8aSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7983d4c8aSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8983d4c8aSAndrew Rist  * "License"); you may not use this file except in compliance
9983d4c8aSAndrew Rist  * with the License.  You may obtain a copy of the License at
10983d4c8aSAndrew Rist  *
11983d4c8aSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12983d4c8aSAndrew Rist  *
13983d4c8aSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14983d4c8aSAndrew Rist  * software distributed under the License is distributed on an
15983d4c8aSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16983d4c8aSAndrew Rist  * KIND, either express or implied.  See the License for the
17983d4c8aSAndrew Rist  * specific language governing permissions and limitations
18983d4c8aSAndrew Rist  * under the License.
19983d4c8aSAndrew Rist  *
20983d4c8aSAndrew Rist  *************************************************************/
21983d4c8aSAndrew Rist 
22983d4c8aSAndrew Rist 
23*79cb83d0SHerbert Dürr #ifndef L10NTOOLS_SRCITER_HXX
24*79cb83d0SHerbert Dürr #define L10NTOOLS_SRCITER_HXX
25cdf0e10cSrcweir 
26cdf0e10cSrcweir #include <l10ntools/directory.hxx>
27cdf0e10cSrcweir 
28cdf0e10cSrcweir // class SourceTreeIterator
29cdf0e10cSrcweir 
30cdf0e10cSrcweir class SourceTreeIterator
31cdf0e10cSrcweir {
32cdf0e10cSrcweir private:
33cdf0e10cSrcweir     transex::Directory aRootDirectory;
34cdf0e10cSrcweir 	bool bInExecute;
35cdf0e10cSrcweir 
36cdf0e10cSrcweir 	void ExecuteDirectory( transex::Directory& pDirectory );
37cdf0e10cSrcweir 
38cdf0e10cSrcweir protected:
39cdf0e10cSrcweir 	bool bLocal;
40cdf0e10cSrcweir     bool bSkipLinks;
41cdf0e10cSrcweir 
42cdf0e10cSrcweir public:
43cdf0e10cSrcweir 	SourceTreeIterator( const ByteString &rRootDirectory, const ByteString &rVersion , bool bLocal_in = false);
44cdf0e10cSrcweir 	virtual ~SourceTreeIterator();
45cdf0e10cSrcweir 
46cdf0e10cSrcweir 	sal_Bool StartExecute();
47cdf0e10cSrcweir 	void EndExecute();
48cdf0e10cSrcweir 
49cdf0e10cSrcweir 	virtual void OnExecuteDirectory( const rtl::OUString &rDirectory );
50cdf0e10cSrcweir };
51cdf0e10cSrcweir 
52*79cb83d0SHerbert Dürr #endif // L10NTOOLS_SRCITER_HXX
53cdf0e10cSrcweir 
54