fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / l10ntools / inc / common.hxx
blobf9cd72d955a1e1901d02ad64ecc4c4a2b19d8e43
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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 */
10 // Methods used by all of executables
12 #ifndef INCLUDED_L10NTOOLS_INC_COMMON_HXX
13 #define INCLUDED_L10NTOOLS_INC_COMMON_HXX
15 #include "sal/config.h"
17 #include <iostream>
18 #include <rtl/string.hxx>
19 #include "po.hxx"
21 namespace common {
23 /// Result type of handleArguments()
24 struct HandledArgs
26 OString m_sInputFile;
27 OString m_sOutputFile;
28 OString m_sMergeSrc;
29 OString m_sLanguage;
30 bool m_bMergeMode;
31 bool m_bUTF8BOM;
32 HandledArgs()
33 : m_sInputFile( OString() )
34 , m_sOutputFile( OString() )
35 , m_sMergeSrc( OString() )
36 , m_sLanguage( OString() )
37 , m_bMergeMode( false )
38 , m_bUTF8BOM( false )
42 /// Handle command line parameters
43 bool handleArguments(int argc, char * argv[], HandledArgs& o_aHandledArgs);
45 /// Write out a help about usage
46 void writeUsage(const OString& rName, const OString& rFileType);
48 /// Write out a PoEntry with attention to excaptions
49 void writePoEntry(
50 const OString& rExecutable, PoOfstream& rPoStream, const OString& rSourceFile,
51 const OString& rResType, const OString& rGroupId, const OString& rLocalId,
52 const OString& rHelpText, const OString& rText, const PoEntry::TYPE eType = PoEntry::TTEXT );
56 #endif
58 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */