diff options
author | Oliver Bolte <obo@openoffice.org> | 2008-01-07 08:52:11 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2008-01-07 08:52:11 +0000 |
commit | 8d130883aaeb3b60ecc83d4da0bed8b5381350e4 (patch) | |
tree | 1f0b4283ffea5c0a93b71f731ac95c4ca6a99580 /vcl/source/salmain | |
parent | 9fb6c61e933f37298a954e69deeff72dd49411b5 (diff) |
INTEGRATION: CWS sb80 (1.1.2); FILE ADDED
2007/11/15 15:09:53 sb 1.1.2.1: #i81275# Consolidated the platform-specific salmain.cxx into a single platform-independent one; call new tools::extendApplicationEnvironment from main functions.
Diffstat (limited to 'vcl/source/salmain')
-rw-r--r-- | vcl/source/salmain/salmain.cxx | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/vcl/source/salmain/salmain.cxx b/vcl/source/salmain/salmain.cxx new file mode 100644 index 000000000000..d36b8f1913bf --- /dev/null +++ b/vcl/source/salmain/salmain.cxx @@ -0,0 +1,48 @@ +/************************************************************************* + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: salmain.cxx,v $ + * + * $Revision: 1.2 $ + * + * last change: $Author: obo $ $Date: 2008-01-07 09:52:11 $ + * + * The Contents of this file are made available subject to + * the terms of GNU Lesser General Public License Version 2.1. + * + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2007 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + ************************************************************************/ + +#include "precompiled_vcl.hxx" +#include "sal/config.h" + +#include <cstdlib> + +#include "sal/main.h" +#include "tools/extendapplicationenvironment.hxx" +#include "vcl/salinst.hxx" + +SAL_IMPLEMENT_MAIN() { + tools::extendApplicationEnvironment(); + return SVMain() ? EXIT_SUCCESS : EXIT_FAILURE; +} |