13cd96b95SAndrew Rist /************************************************************** 2*3adb8b6eSmseidel * 33cd96b95SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 43cd96b95SAndrew Rist * or more contributor license agreements. See the NOTICE file 53cd96b95SAndrew Rist * distributed with this work for additional information 63cd96b95SAndrew Rist * regarding copyright ownership. The ASF licenses this file 73cd96b95SAndrew Rist * to you under the Apache License, Version 2.0 (the 83cd96b95SAndrew Rist * "License"); you may not use this file except in compliance 93cd96b95SAndrew Rist * with the License. You may obtain a copy of the License at 10*3adb8b6eSmseidel * 113cd96b95SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*3adb8b6eSmseidel * 133cd96b95SAndrew Rist * Unless required by applicable law or agreed to in writing, 143cd96b95SAndrew Rist * software distributed under the License is distributed on an 153cd96b95SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 163cd96b95SAndrew Rist * KIND, either express or implied. See the License for the 173cd96b95SAndrew Rist * specific language governing permissions and limitations 183cd96b95SAndrew Rist * under the License. 19*3adb8b6eSmseidel * 203cd96b95SAndrew Rist *************************************************************/ 213cd96b95SAndrew Rist 223cd96b95SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove 25cdf0e10cSrcweir #include "precompiled_l10ntools.hxx" 26cdf0e10cSrcweir #include <l10ntools/file.hxx> 27cdf0e10cSrcweir 28cdf0e10cSrcweir namespace transex 29cdf0e10cSrcweir { 30*3adb8b6eSmseidel File(const rtl::OUString sFile)31cdf0e10cSrcweirFile::File( const rtl::OUString sFile ) 32cdf0e10cSrcweir { 33*3adb8b6eSmseidel sFileName = sFile; 34cdf0e10cSrcweir } 35cdf0e10cSrcweir File(const rtl::OUString sFullPath,const rtl::OUString sFile)36cdf0e10cSrcweirFile::File( const rtl::OUString sFullPath , const rtl::OUString sFile ) 37cdf0e10cSrcweir { 38*3adb8b6eSmseidel sFileName = sFile; 39*3adb8b6eSmseidel sFullName = sFullPath; 40cdf0e10cSrcweir } 41cdf0e10cSrcweir lessFile(const File & rKey1,const File & rKey2)42cdf0e10cSrcweirbool File::lessFile ( const File& rKey1, const File& rKey2 ) 43cdf0e10cSrcweir { 44*3adb8b6eSmseidel rtl::OUString sName1( ( static_cast< File >( rKey1 ) ).getFileName() ); 45*3adb8b6eSmseidel rtl::OUString sName2( ( static_cast< File >( rKey2 ) ).getFileName() ); 46*3adb8b6eSmseidel 47*3adb8b6eSmseidel return sName1.compareTo( sName2 ) < 0 ; 48cdf0e10cSrcweir } 49cdf0e10cSrcweir 50cdf0e10cSrcweir } 51