2010-10-12 15:59:00 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-21 14:30:25 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2000-11-02 18:08:49 +00:00
|
|
|
|
|
|
|
#include <vcl/svapp.hxx>
|
|
|
|
|
|
|
|
#include "optutil.hxx"
|
2001-07-02 09:17:00 +00:00
|
|
|
#include "global.hxx" // for pSysLocale
|
2009-10-16 00:05:16 +02:00
|
|
|
#include <unotools/syslocale.hxx>
|
2000-11-02 18:08:49 +00:00
|
|
|
|
|
|
|
//------------------------------------------------------------------
|
|
|
|
|
2011-01-17 13:20:22 +01:00
|
|
|
sal_Bool ScOptionsUtil::IsMetricSystem()
|
2000-11-02 18:08:49 +00:00
|
|
|
{
|
|
|
|
//! which language should be used here - system language or installed office language?
|
|
|
|
|
2001-07-11 14:28:50 +00:00
|
|
|
MeasurementSystem eSys = ScGlobal::pLocaleData->getMeasurementSystemEnum();
|
2000-11-02 18:08:49 +00:00
|
|
|
|
|
|
|
return ( eSys == MEASURE_METRIC );
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------
|
|
|
|
|
2009-07-27 14:57:34 -04:00
|
|
|
ScLinkConfigItem::ScLinkConfigItem( const rtl::OUString& rSubTree ) :
|
2000-11-02 18:08:49 +00:00
|
|
|
ConfigItem( rSubTree )
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2009-07-27 14:57:34 -04:00
|
|
|
ScLinkConfigItem::ScLinkConfigItem( const rtl::OUString& rSubTree, sal_Int16 nMode ) :
|
2006-08-04 11:12:20 +00:00
|
|
|
ConfigItem( rSubTree, nMode )
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2000-11-02 18:08:49 +00:00
|
|
|
void ScLinkConfigItem::SetCommitLink( const Link& rLink )
|
|
|
|
{
|
|
|
|
aCommitLink = rLink;
|
|
|
|
}
|
|
|
|
|
2007-02-27 11:17:27 +00:00
|
|
|
void ScLinkConfigItem::Notify( const com::sun::star::uno::Sequence<rtl::OUString>& /* aPropertyNames */ )
|
2000-11-02 18:08:49 +00:00
|
|
|
{
|
|
|
|
//! not implemented yet...
|
|
|
|
}
|
|
|
|
|
|
|
|
void ScLinkConfigItem::Commit()
|
|
|
|
{
|
|
|
|
aCommitLink.Call( this );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2010-10-12 15:59:00 +02:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|