2010-10-14 08:27:31 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2001-01-18 07:13:02 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 18:52:44 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2001-01-18 07:13:02 +00:00
|
|
|
*
|
2010-02-12 15:01:35 +01:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2001-01-18 07:13:02 +00:00
|
|
|
*
|
2008-04-10 18:52:44 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2001-01-18 07:13:02 +00:00
|
|
|
*
|
2008-04-10 18:52:44 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2001-01-18 07:13:02 +00:00
|
|
|
*
|
2008-04-10 18:52:44 +00:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2001-01-18 07:13:02 +00:00
|
|
|
*
|
2008-04-10 18:52:44 +00:00
|
|
|
* OpenOffice.org 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 version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2001-01-18 07:13:02 +00:00
|
|
|
*
|
2008-04-10 18:52:44 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2001-01-18 07:13:02 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
2006-09-17 13:22:32 +00:00
|
|
|
|
2009-10-06 07:38:24 +02:00
|
|
|
#include <unotools/defaultoptions.hxx>
|
|
|
|
#include <unotools/pathoptions.hxx>
|
2001-01-18 07:13:02 +00:00
|
|
|
#include <unotools/configitem.hxx>
|
|
|
|
#include <unotools/configmgr.hxx>
|
|
|
|
#include <tools/debug.hxx>
|
|
|
|
#include <com/sun/star/uno/Any.hxx>
|
|
|
|
#include <com/sun/star/uno/Sequence.hxx>
|
|
|
|
#include <osl/mutex.hxx>
|
|
|
|
|
2001-08-28 10:30:16 +00:00
|
|
|
#include <unotools/localfilehelper.hxx>
|
2004-06-25 16:24:34 +00:00
|
|
|
#include <rtl/instance.hxx>
|
2001-01-18 07:13:02 +00:00
|
|
|
|
2005-11-11 07:47:43 +00:00
|
|
|
#include <itemholder1.hxx>
|
|
|
|
|
2001-01-18 07:13:02 +00:00
|
|
|
using namespace osl;
|
|
|
|
using namespace utl;
|
|
|
|
using namespace com::sun::star::uno;
|
|
|
|
|
2011-02-27 18:47:31 +01:00
|
|
|
using ::rtl::OUString;
|
|
|
|
|
2001-01-18 07:13:02 +00:00
|
|
|
// define ----------------------------------------------------------------
|
|
|
|
|
|
|
|
#define ASCII_STR(s) OUString( RTL_CONSTASCII_USTRINGPARAM(s) )
|
|
|
|
|
|
|
|
#define DEFAULTPATH__ADDIN 0
|
|
|
|
#define DEFAULTPATH__AUTOCORRECT 1
|
2001-06-29 08:02:07 +00:00
|
|
|
#define DEFAULTPATH__AUTOTEXT 2
|
|
|
|
#define DEFAULTPATH__BACKUP 3
|
|
|
|
#define DEFAULTPATH__BASIC 4
|
|
|
|
#define DEFAULTPATH__BITMAP 5
|
|
|
|
#define DEFAULTPATH__CONFIG 6
|
|
|
|
#define DEFAULTPATH__DICTIONARY 7
|
|
|
|
#define DEFAULTPATH__FAVORITES 8
|
|
|
|
#define DEFAULTPATH__FILTER 9
|
|
|
|
#define DEFAULTPATH__GALLERY 10
|
|
|
|
#define DEFAULTPATH__GRAPHIC 11
|
|
|
|
#define DEFAULTPATH__HELP 12
|
|
|
|
#define DEFAULTPATH__LINGUISTIC 13
|
|
|
|
#define DEFAULTPATH__MODULE 14
|
|
|
|
#define DEFAULTPATH__PALETTE 15
|
|
|
|
#define DEFAULTPATH__PLUGIN 16
|
2001-11-01 12:28:14 +00:00
|
|
|
#define DEFAULTPATH__TEMP 17
|
|
|
|
#define DEFAULTPATH__TEMPLATE 18
|
|
|
|
#define DEFAULTPATH__USERCONFIG 19
|
2008-06-20 06:05:18 +00:00
|
|
|
#define DEFAULTPATH__WORK 20
|
|
|
|
#define DEFAULTPATH__USERDICTIONARY 21
|
2001-01-18 07:13:02 +00:00
|
|
|
|
|
|
|
// class SvtDefaultOptions_Impl ------------------------------------------
|
|
|
|
|
|
|
|
class SvtDefaultOptions_Impl : public utl::ConfigItem
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
String m_aAddinPath;
|
|
|
|
String m_aAutoCorrectPath;
|
|
|
|
String m_aAutoTextPath;
|
|
|
|
String m_aBackupPath;
|
|
|
|
String m_aBasicPath;
|
|
|
|
String m_aBitmapPath;
|
|
|
|
String m_aConfigPath;
|
|
|
|
String m_aDictionaryPath;
|
|
|
|
String m_aFavoritesPath;
|
|
|
|
String m_aFilterPath;
|
|
|
|
String m_aGalleryPath;
|
|
|
|
String m_aGraphicPath;
|
|
|
|
String m_aHelpPath;
|
|
|
|
String m_aLinguisticPath;
|
|
|
|
String m_aModulePath;
|
|
|
|
String m_aPalettePath;
|
|
|
|
String m_aPluginPath;
|
2001-11-01 12:28:14 +00:00
|
|
|
String m_aTempPath;
|
2001-01-18 07:13:02 +00:00
|
|
|
String m_aTemplatePath;
|
|
|
|
String m_aUserConfigPath;
|
|
|
|
String m_aWorkPath;
|
2008-06-20 06:05:18 +00:00
|
|
|
String m_aUserDictionaryPath;
|
2001-01-18 07:13:02 +00:00
|
|
|
|
|
|
|
SvtDefaultOptions_Impl();
|
|
|
|
|
2010-07-29 10:56:19 +08:00
|
|
|
String GetDefaultPath( sal_uInt16 nId ) const;
|
2009-10-16 00:05:16 +02:00
|
|
|
virtual void Commit();
|
|
|
|
virtual void Notify( const com::sun::star::uno::Sequence<rtl::OUString>& aPropertyNames);
|
2001-01-18 07:13:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// global ----------------------------------------------------------------
|
|
|
|
|
|
|
|
static SvtDefaultOptions_Impl* pOptions = NULL;
|
|
|
|
static sal_Int32 nRefCount = 0;
|
|
|
|
|
|
|
|
typedef String SvtDefaultOptions_Impl:: *PathStrPtr;
|
|
|
|
|
|
|
|
struct PathToDefaultMapping_Impl
|
|
|
|
{
|
|
|
|
SvtPathOptions::Pathes _ePath;
|
|
|
|
PathStrPtr _pDefaultPath;
|
|
|
|
};
|
|
|
|
|
2010-12-12 10:14:17 +01:00
|
|
|
static PathToDefaultMapping_Impl const PathMap_Impl[] =
|
2001-01-18 07:13:02 +00:00
|
|
|
{
|
2006-06-19 19:42:46 +00:00
|
|
|
{ SvtPathOptions::PATH_ADDIN, &SvtDefaultOptions_Impl::m_aAddinPath },
|
2008-06-20 06:05:18 +00:00
|
|
|
{ SvtPathOptions::PATH_AUTOCORRECT, &SvtDefaultOptions_Impl::m_aAutoCorrectPath },
|
2006-06-19 19:42:46 +00:00
|
|
|
{ SvtPathOptions::PATH_AUTOTEXT, &SvtDefaultOptions_Impl::m_aAutoTextPath },
|
2008-06-20 06:05:18 +00:00
|
|
|
{ SvtPathOptions::PATH_BACKUP, &SvtDefaultOptions_Impl::m_aBackupPath },
|
2006-06-19 19:42:46 +00:00
|
|
|
{ SvtPathOptions::PATH_BASIC, &SvtDefaultOptions_Impl::m_aBasicPath },
|
2008-06-20 06:05:18 +00:00
|
|
|
{ SvtPathOptions::PATH_BITMAP, &SvtDefaultOptions_Impl::m_aBitmapPath },
|
|
|
|
{ SvtPathOptions::PATH_CONFIG, &SvtDefaultOptions_Impl::m_aConfigPath },
|
|
|
|
{ SvtPathOptions::PATH_DICTIONARY, &SvtDefaultOptions_Impl::m_aDictionaryPath },
|
2006-06-19 19:42:46 +00:00
|
|
|
{ SvtPathOptions::PATH_FAVORITES, &SvtDefaultOptions_Impl::m_aFavoritesPath },
|
2008-06-20 06:05:18 +00:00
|
|
|
{ SvtPathOptions::PATH_FILTER, &SvtDefaultOptions_Impl::m_aFilterPath },
|
|
|
|
{ SvtPathOptions::PATH_GALLERY, &SvtDefaultOptions_Impl::m_aGalleryPath },
|
|
|
|
{ SvtPathOptions::PATH_GRAPHIC, &SvtDefaultOptions_Impl::m_aGraphicPath },
|
2006-06-19 19:42:46 +00:00
|
|
|
{ SvtPathOptions::PATH_HELP, &SvtDefaultOptions_Impl::m_aHelpPath },
|
2008-06-20 06:05:18 +00:00
|
|
|
{ SvtPathOptions::PATH_LINGUISTIC, &SvtDefaultOptions_Impl::m_aLinguisticPath },
|
|
|
|
{ SvtPathOptions::PATH_MODULE, &SvtDefaultOptions_Impl::m_aModulePath },
|
|
|
|
{ SvtPathOptions::PATH_PALETTE, &SvtDefaultOptions_Impl::m_aPalettePath },
|
|
|
|
{ SvtPathOptions::PATH_PLUGIN, &SvtDefaultOptions_Impl::m_aPluginPath },
|
|
|
|
{ SvtPathOptions::PATH_TEMP, &SvtDefaultOptions_Impl::m_aTempPath },
|
2006-06-19 19:42:46 +00:00
|
|
|
{ SvtPathOptions::PATH_TEMPLATE, &SvtDefaultOptions_Impl::m_aTemplatePath },
|
2008-06-20 06:05:18 +00:00
|
|
|
{ SvtPathOptions::PATH_USERCONFIG, &SvtDefaultOptions_Impl::m_aUserConfigPath },
|
2006-06-19 19:42:46 +00:00
|
|
|
{ SvtPathOptions::PATH_WORK, &SvtDefaultOptions_Impl::m_aWorkPath }
|
2001-01-18 07:13:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// functions -------------------------------------------------------------
|
|
|
|
|
|
|
|
Sequence< OUString > GetDefaultPropertyNames()
|
|
|
|
{
|
|
|
|
static const char* aPropNames[] =
|
|
|
|
{
|
|
|
|
"Addin", // PATH_ADDIN
|
|
|
|
"AutoCorrect", // PATH_AUTOCORRECT
|
|
|
|
"AutoText", // PATH_AUTOTEXT
|
|
|
|
"Backup", // PATH_BACKUP
|
|
|
|
"Basic", // PATH_BASIC
|
|
|
|
"Bitmap", // PATH_BITMAP
|
|
|
|
"Config", // PATH_CONFIG
|
|
|
|
"Dictionary", // PATH_DICTIONARY
|
|
|
|
"Favorite", // PATH_FAVORITES
|
|
|
|
"Filter", // PATH_FILTER
|
|
|
|
"Gallery", // PATH_GALLERY
|
|
|
|
"Graphic", // PATH_GRAPHIC
|
|
|
|
"Help", // PATH_HELP
|
|
|
|
"Linguistic", // PATH_LINGUISTIC
|
|
|
|
"Module", // PATH_MODULE
|
|
|
|
"Palette", // PATH_PALETTE
|
|
|
|
"Plugin", // PATH_PLUGIN
|
2001-11-01 12:28:14 +00:00
|
|
|
"Temp", // PATH_TEMP
|
2001-01-18 07:13:02 +00:00
|
|
|
"Template", // PATH_TEMPLATE
|
|
|
|
"UserConfig", // PATH_USERCONFIG
|
|
|
|
"Work" // PATH_WORK
|
|
|
|
};
|
|
|
|
|
|
|
|
const int nCount = sizeof( aPropNames ) / sizeof( const char* );
|
|
|
|
Sequence< OUString > aNames( nCount );
|
|
|
|
OUString* pNames = aNames.getArray();
|
|
|
|
for ( int i = 0; i < nCount; i++ )
|
|
|
|
pNames[i] = OUString::createFromAscii( aPropNames[i] );
|
|
|
|
|
|
|
|
return aNames;
|
|
|
|
}
|
|
|
|
|
2009-10-16 00:05:16 +02:00
|
|
|
void SvtDefaultOptions_Impl::Notify( const Sequence< rtl::OUString >& )
|
|
|
|
{
|
|
|
|
// no notification, will never be changed
|
|
|
|
}
|
|
|
|
|
|
|
|
void SvtDefaultOptions_Impl::Commit()
|
|
|
|
{
|
|
|
|
// will never be changed
|
|
|
|
}
|
|
|
|
|
2001-01-18 07:13:02 +00:00
|
|
|
// class SvtDefaultOptions_Impl ------------------------------------------
|
|
|
|
|
2010-07-29 10:56:19 +08:00
|
|
|
String SvtDefaultOptions_Impl::GetDefaultPath( sal_uInt16 nId ) const
|
2001-01-18 07:13:02 +00:00
|
|
|
{
|
|
|
|
String aRet;
|
2010-07-29 10:56:19 +08:00
|
|
|
sal_uInt16 nIdx = 0;
|
2001-01-18 07:13:02 +00:00
|
|
|
|
|
|
|
while ( PathMap_Impl[nIdx]._ePath <= SvtPathOptions::PATH_WORK )
|
|
|
|
{
|
|
|
|
if ( nId == PathMap_Impl[nIdx]._ePath && PathMap_Impl[nIdx]._pDefaultPath )
|
|
|
|
{
|
|
|
|
aRet = this->*(PathMap_Impl[nIdx]._pDefaultPath);
|
2001-08-28 10:30:16 +00:00
|
|
|
if ( nId == SvtPathOptions::PATH_ADDIN ||
|
|
|
|
nId == SvtPathOptions::PATH_FILTER ||
|
|
|
|
nId == SvtPathOptions::PATH_HELP ||
|
|
|
|
nId == SvtPathOptions::PATH_MODULE ||
|
|
|
|
nId == SvtPathOptions::PATH_PLUGIN )
|
|
|
|
{
|
|
|
|
String aTmp;
|
|
|
|
::utl::LocalFileHelper::ConvertPhysicalNameToURL( aRet, aTmp );
|
|
|
|
aRet = aTmp;
|
|
|
|
}
|
|
|
|
|
2001-01-18 07:13:02 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
++nIdx;
|
|
|
|
}
|
|
|
|
|
|
|
|
return aRet;
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
|
|
|
SvtDefaultOptions_Impl::SvtDefaultOptions_Impl() : ConfigItem( ASCII_STR("Office.Common/Path/Default") )
|
|
|
|
{
|
|
|
|
Sequence< OUString > aNames = GetDefaultPropertyNames();
|
|
|
|
Sequence< Any > aValues = GetProperties( aNames );
|
|
|
|
EnableNotification( aNames );
|
|
|
|
const Any* pValues = aValues.getConstArray();
|
|
|
|
DBG_ASSERT( aValues.getLength() == aNames.getLength(), "GetProperties failed" );
|
|
|
|
if ( aValues.getLength() == aNames.getLength() )
|
|
|
|
{
|
|
|
|
SvtPathOptions aPathOpt;
|
|
|
|
OUString aTempStr, aFullPath;
|
|
|
|
|
|
|
|
for ( int nProp = 0; nProp < aNames.getLength(); nProp++ )
|
|
|
|
{
|
|
|
|
if ( pValues[nProp].hasValue() )
|
|
|
|
{
|
|
|
|
switch ( pValues[nProp].getValueTypeClass() )
|
|
|
|
{
|
|
|
|
case ::com::sun::star::uno::TypeClass_STRING :
|
|
|
|
{
|
|
|
|
// multi pathes
|
|
|
|
if ( pValues[nProp] >>= aTempStr )
|
|
|
|
aFullPath = aPathOpt.SubstituteVariable( aTempStr );
|
|
|
|
else
|
|
|
|
{
|
|
|
|
DBG_ERRORFILE( "any operator >>= failed" );
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
case ::com::sun::star::uno::TypeClass_SEQUENCE :
|
|
|
|
{
|
|
|
|
// single pathes
|
|
|
|
aFullPath = OUString();
|
|
|
|
Sequence < OUString > aList;
|
|
|
|
if ( pValues[nProp] >>= aList )
|
|
|
|
{
|
|
|
|
sal_Int32 nCount = aList.getLength();
|
|
|
|
for ( sal_Int32 nPosition = 0; nPosition < nCount; ++nPosition )
|
|
|
|
{
|
|
|
|
aTempStr = aPathOpt.SubstituteVariable( aList[ nPosition ] );
|
|
|
|
aFullPath += aTempStr;
|
|
|
|
if ( nPosition < nCount-1 )
|
|
|
|
aFullPath += OUString( RTL_CONSTASCII_USTRINGPARAM(";") );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
DBG_ERRORFILE( "any operator >>= failed" );
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
default:
|
|
|
|
{
|
|
|
|
DBG_ERRORFILE( "Wrong any type" );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
switch ( nProp )
|
|
|
|
{
|
|
|
|
case DEFAULTPATH__ADDIN: m_aAddinPath = String( aFullPath ); break;
|
|
|
|
case DEFAULTPATH__AUTOCORRECT: m_aAutoCorrectPath = String( aFullPath ); break;
|
|
|
|
case DEFAULTPATH__AUTOTEXT: m_aAutoTextPath = String( aFullPath ); break;
|
|
|
|
case DEFAULTPATH__BACKUP: m_aBackupPath = String( aFullPath ); break;
|
|
|
|
case DEFAULTPATH__BASIC: m_aBasicPath = String( aFullPath ); break;
|
|
|
|
case DEFAULTPATH__BITMAP: m_aBitmapPath = String( aFullPath ); break;
|
|
|
|
case DEFAULTPATH__CONFIG: m_aConfigPath = String( aFullPath ); break;
|
|
|
|
case DEFAULTPATH__DICTIONARY: m_aDictionaryPath = String( aFullPath ); break;
|
|
|
|
case DEFAULTPATH__FAVORITES: m_aFavoritesPath = String( aFullPath ); break;
|
|
|
|
case DEFAULTPATH__FILTER: m_aFilterPath = String( aFullPath ); break;
|
|
|
|
case DEFAULTPATH__GALLERY: m_aGalleryPath = String( aFullPath ); break;
|
|
|
|
case DEFAULTPATH__GRAPHIC: m_aGraphicPath = String( aFullPath ); break;
|
|
|
|
case DEFAULTPATH__HELP: m_aHelpPath = String( aFullPath ); break;
|
|
|
|
case DEFAULTPATH__LINGUISTIC: m_aLinguisticPath = String( aFullPath ); break;
|
|
|
|
case DEFAULTPATH__MODULE: m_aModulePath = String( aFullPath ); break;
|
|
|
|
case DEFAULTPATH__PALETTE: m_aPalettePath = String( aFullPath ); break;
|
|
|
|
case DEFAULTPATH__PLUGIN: m_aPluginPath = String( aFullPath ); break;
|
2001-11-01 12:28:14 +00:00
|
|
|
case DEFAULTPATH__TEMP: m_aTempPath = String( aFullPath ); break;
|
2001-01-18 07:13:02 +00:00
|
|
|
case DEFAULTPATH__TEMPLATE: m_aTemplatePath = String( aFullPath ); break;
|
|
|
|
case DEFAULTPATH__USERCONFIG: m_aUserConfigPath = String( aFullPath ); break;
|
|
|
|
case DEFAULTPATH__WORK: m_aWorkPath = String( aFullPath ); break;
|
2008-06-20 06:05:18 +00:00
|
|
|
case DEFAULTPATH__USERDICTIONARY: m_aUserDictionaryPath = String( aFullPath );break;
|
2001-01-18 07:13:02 +00:00
|
|
|
|
|
|
|
default:
|
|
|
|
DBG_ERRORFILE( "invalid index to load a default path" );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// class SvtDefaultOptions -----------------------------------------------
|
2004-06-25 16:24:34 +00:00
|
|
|
namespace { struct lclMutex : public rtl::Static< ::osl::Mutex, lclMutex > {}; }
|
2001-01-18 07:13:02 +00:00
|
|
|
|
|
|
|
SvtDefaultOptions::SvtDefaultOptions()
|
|
|
|
{
|
|
|
|
// Global access, must be guarded (multithreading)
|
2004-06-25 16:24:34 +00:00
|
|
|
::osl::MutexGuard aGuard( lclMutex::get() );
|
2001-01-18 07:13:02 +00:00
|
|
|
if ( !pOptions )
|
2005-11-11 07:47:43 +00:00
|
|
|
{
|
2001-01-18 07:13:02 +00:00
|
|
|
pOptions = new SvtDefaultOptions_Impl;
|
2005-11-11 07:47:43 +00:00
|
|
|
ItemHolder1::holdConfigItem(E_DEFAULTOPTIONS);
|
|
|
|
}
|
2001-01-18 07:13:02 +00:00
|
|
|
++nRefCount;
|
|
|
|
pImp = pOptions;
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
|
|
|
SvtDefaultOptions::~SvtDefaultOptions()
|
|
|
|
{
|
|
|
|
// Global access, must be guarded (multithreading)
|
2004-06-25 16:24:34 +00:00
|
|
|
::osl::MutexGuard aGuard( lclMutex::get() );
|
2001-01-18 07:13:02 +00:00
|
|
|
if ( !--nRefCount )
|
|
|
|
{
|
|
|
|
if ( pOptions->IsModified() )
|
|
|
|
pOptions->Commit();
|
|
|
|
DELETEZ( pOptions );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-07-29 10:56:19 +08:00
|
|
|
String SvtDefaultOptions::GetDefaultPath( sal_uInt16 nId ) const
|
2001-01-18 07:13:02 +00:00
|
|
|
{
|
|
|
|
return pImp->GetDefaultPath( nId );
|
|
|
|
}
|
|
|
|
|
2010-10-14 08:27:31 +02:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|