xref: /aoo42x/main/l10ntools/inc/srciter.hxx (revision 983d4c8a)
1*983d4c8aSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*983d4c8aSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*983d4c8aSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*983d4c8aSAndrew Rist  * distributed with this work for additional information
6*983d4c8aSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*983d4c8aSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*983d4c8aSAndrew Rist  * "License"); you may not use this file except in compliance
9*983d4c8aSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*983d4c8aSAndrew Rist  *
11*983d4c8aSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*983d4c8aSAndrew Rist  *
13*983d4c8aSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*983d4c8aSAndrew Rist  * software distributed under the License is distributed on an
15*983d4c8aSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*983d4c8aSAndrew Rist  * KIND, either express or implied.  See the License for the
17*983d4c8aSAndrew Rist  * specific language governing permissions and limitations
18*983d4c8aSAndrew Rist  * under the License.
19*983d4c8aSAndrew Rist  *
20*983d4c8aSAndrew Rist  *************************************************************/
21*983d4c8aSAndrew Rist 
22*983d4c8aSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef L10NTOOLS_DIRECTORY_HXX
25cdf0e10cSrcweir #define L10NTOOLS_DIRECTORY_HXX
26cdf0e10cSrcweir #include <l10ntools/directory.hxx>
27cdf0e10cSrcweir #endif
28cdf0e10cSrcweir 
29cdf0e10cSrcweir // class SourceTreeIterator
30cdf0e10cSrcweir //
31cdf0e10cSrcweir 
32cdf0e10cSrcweir class SourceTreeIterator
33cdf0e10cSrcweir {
34cdf0e10cSrcweir private:
35cdf0e10cSrcweir     transex::Directory aRootDirectory;
36cdf0e10cSrcweir 	bool bInExecute;
37cdf0e10cSrcweir 
38cdf0e10cSrcweir 	void ExecuteDirectory( transex::Directory& pDirectory );
39cdf0e10cSrcweir 
40cdf0e10cSrcweir protected:
41cdf0e10cSrcweir 	bool bLocal;
42cdf0e10cSrcweir     bool bSkipLinks;
43cdf0e10cSrcweir 
44cdf0e10cSrcweir public:
45cdf0e10cSrcweir 	SourceTreeIterator( const ByteString &rRootDirectory, const ByteString &rVersion , bool bLocal_in = false);
46cdf0e10cSrcweir 	virtual ~SourceTreeIterator();
47cdf0e10cSrcweir 
48cdf0e10cSrcweir 	sal_Bool StartExecute();
49cdf0e10cSrcweir 	void EndExecute();
50cdf0e10cSrcweir 
51cdf0e10cSrcweir 	virtual void OnExecuteDirectory( const rtl::OUString &rDirectory );
52cdf0e10cSrcweir };
53cdf0e10cSrcweir 
54cdf0e10cSrcweir 
55