fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / l10ntools / source / propex.cxx
blobb12f4d32d6f63d21b3e99743594cf06fd55c4a5f
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 #include "sal/main.h"
12 #include "common.hxx"
13 #include "propmerge.hxx"
15 SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
17 common::HandledArgs aArgs;
18 if( !common::handleArguments(argc, argv, aArgs) )
20 common::writeUsage("propex","*.properties");
21 return 1;
24 PropParser aParser(
25 aArgs.m_sInputFile, aArgs.m_sLanguage, aArgs.m_bMergeMode );
26 if( !aParser.isInitialized() )
28 return 1;
30 if( aArgs.m_bMergeMode )
32 aParser.Merge( aArgs.m_sMergeSrc, aArgs.m_sOutputFile );
34 else
36 aParser.Extract( aArgs.m_sOutputFile );
38 return 0;
41 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */