2010-10-14 01:30:41 -05:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2000-09-18 11:07:07 -05:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 06:49:41 -05:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2000-09-18 11:07:07 -05:00
|
|
|
*
|
2010-02-12 08:01:35 -06:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2000-09-18 11:07:07 -05:00
|
|
|
*
|
2008-04-10 06:49:41 -05:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2000-09-18 11:07:07 -05:00
|
|
|
*
|
2008-04-10 06:49:41 -05:00
|
|
|
* This file is part of OpenOffice.org.
|
2000-09-18 11:07:07 -05:00
|
|
|
*
|
2008-04-10 06:49:41 -05: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.
|
2000-09-18 11:07:07 -05:00
|
|
|
*
|
2008-04-10 06:49:41 -05: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).
|
2000-09-18 11:07:07 -05:00
|
|
|
*
|
2008-04-10 06:49:41 -05: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.
|
2000-09-18 11:07:07 -05:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
2006-09-17 01:55:20 -05:00
|
|
|
|
2000-09-18 11:07:07 -05:00
|
|
|
|
|
|
|
#include <tools/globname.hxx>
|
|
|
|
#include <vcl/status.hxx>
|
|
|
|
#include <sfx2/msg.hxx>
|
|
|
|
#include <sfx2/app.hxx>
|
|
|
|
#include <sfx2/objface.hxx>
|
2009-10-15 17:05:16 -05:00
|
|
|
#include <svl/whiter.hxx>
|
2000-09-18 11:07:07 -05:00
|
|
|
#include <sfx2/request.hxx>
|
|
|
|
#include <sfx2/sfx.hrc>
|
2002-12-12 08:40:33 -06:00
|
|
|
#include <sfx2/viewsh.hxx>
|
2000-09-18 11:07:07 -05:00
|
|
|
#include <vcl/wrkwin.hxx>
|
|
|
|
#include <svx/svxids.hrc>
|
|
|
|
#include <vcl/msgbox.hxx>
|
2005-04-04 02:05:47 -05:00
|
|
|
#include <vcl/virdev.hxx>
|
2009-10-15 17:05:16 -05:00
|
|
|
#include <unotools/syslocale.hxx>
|
2002-12-12 08:40:33 -06:00
|
|
|
#include <tools/rtti.hxx>
|
2000-09-18 11:07:07 -05:00
|
|
|
#include "smmod.hxx"
|
|
|
|
#include "symbol.hxx"
|
|
|
|
#include "config.hxx"
|
|
|
|
#include "dialog.hxx"
|
2002-12-12 08:40:33 -06:00
|
|
|
#include "edit.hxx"
|
|
|
|
#include "view.hxx"
|
2000-09-18 11:07:07 -05:00
|
|
|
#include "starmath.hrc"
|
2010-09-29 16:10:28 -05:00
|
|
|
#include "svx/modctrl.hxx"
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2003-09-19 02:53:40 -05:00
|
|
|
TYPEINIT1( SmModule, SfxModule );
|
2000-09-18 11:07:07 -05:00
|
|
|
|
|
|
|
#define SmModule
|
|
|
|
#include "smslots.hxx"
|
|
|
|
|
2004-08-31 06:25:17 -05:00
|
|
|
#include <svx/xmlsecctrl.hxx>
|
|
|
|
|
|
|
|
|
2003-09-19 02:53:40 -05:00
|
|
|
|
2011-01-14 10:19:25 -06:00
|
|
|
SmResId::SmResId( sal_uInt16 nId )
|
2007-04-26 02:14:44 -05:00
|
|
|
: ResId(nId, *SM_MOD()->GetResMgr())
|
2003-09-19 02:53:40 -05:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2001-08-02 09:37:39 -05:00
|
|
|
/////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
SmLocalizedSymbolData::SmLocalizedSymbolData() :
|
|
|
|
Resource( SmResId(RID_LOCALIZED_NAMES) ),
|
2007-04-26 02:14:44 -05:00
|
|
|
aUiSymbolNamesAry ( SmResId(RID_UI_SYMBOL_NAMES) ),
|
|
|
|
aExportSymbolNamesAry ( SmResId(RID_EXPORT_SYMBOL_NAMES) ),
|
|
|
|
aUiSymbolSetNamesAry ( SmResId(RID_UI_SYMBOLSET_NAMES) ),
|
|
|
|
aExportSymbolSetNamesAry( SmResId(RID_EXPORT_SYMBOLSET_NAMES) ),
|
2001-10-08 05:47:58 -05:00
|
|
|
p50NamesAry ( 0 ),
|
|
|
|
p60NamesAry ( 0 ),
|
|
|
|
n50NamesLang ( LANGUAGE_NONE ),
|
|
|
|
n60NamesLang ( LANGUAGE_NONE )
|
2001-08-02 09:37:39 -05:00
|
|
|
{
|
|
|
|
FreeResource();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
SmLocalizedSymbolData::~SmLocalizedSymbolData()
|
|
|
|
{
|
2001-10-08 05:47:58 -05:00
|
|
|
delete p50NamesAry;
|
|
|
|
delete p60NamesAry;
|
2001-08-02 09:37:39 -05:00
|
|
|
}
|
|
|
|
|
2001-08-28 01:47:20 -05:00
|
|
|
|
|
|
|
const String SmLocalizedSymbolData::GetUiSymbolName( const String &rExportName ) const
|
|
|
|
{
|
|
|
|
String aRes;
|
|
|
|
|
2009-09-28 05:46:54 -05:00
|
|
|
const SmLocalizedSymbolData &rData = SM_MOD()->GetLocSymbolData();
|
2001-08-28 01:47:20 -05:00
|
|
|
const ResStringArray &rUiNames = rData.GetUiSymbolNamesArray();
|
|
|
|
const ResStringArray &rExportNames = rData.GetExportSymbolNamesArray();
|
2011-01-14 10:19:25 -06:00
|
|
|
sal_uInt16 nCount = sal::static_int_cast< xub_StrLen >(rExportNames.Count());
|
|
|
|
for (sal_uInt16 i = 0; i < nCount && !aRes.Len(); ++i)
|
2001-08-28 01:47:20 -05:00
|
|
|
{
|
|
|
|
if (rExportName == rExportNames.GetString(i))
|
|
|
|
{
|
|
|
|
aRes = rUiNames.GetString(i);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return aRes;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const String SmLocalizedSymbolData::GetExportSymbolName( const String &rUiName ) const
|
|
|
|
{
|
|
|
|
String aRes;
|
|
|
|
|
2009-09-28 05:46:54 -05:00
|
|
|
const SmLocalizedSymbolData &rData = SM_MOD()->GetLocSymbolData();
|
2001-08-28 01:47:20 -05:00
|
|
|
const ResStringArray &rUiNames = rData.GetUiSymbolNamesArray();
|
|
|
|
const ResStringArray &rExportNames = rData.GetExportSymbolNamesArray();
|
2011-01-14 10:19:25 -06:00
|
|
|
sal_uInt16 nCount = sal::static_int_cast< xub_StrLen >(rUiNames.Count());
|
|
|
|
for (sal_uInt16 i = 0; i < nCount && !aRes.Len(); ++i)
|
2001-08-28 01:47:20 -05:00
|
|
|
{
|
|
|
|
if (rUiName == rUiNames.GetString(i))
|
|
|
|
{
|
|
|
|
aRes = rExportNames.GetString(i);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return aRes;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const String SmLocalizedSymbolData::GetUiSymbolSetName( const String &rExportName ) const
|
|
|
|
{
|
|
|
|
String aRes;
|
|
|
|
|
2009-09-28 05:46:54 -05:00
|
|
|
const SmLocalizedSymbolData &rData = SM_MOD()->GetLocSymbolData();
|
2001-08-28 01:47:20 -05:00
|
|
|
const ResStringArray &rUiNames = rData.GetUiSymbolSetNamesArray();
|
|
|
|
const ResStringArray &rExportNames = rData.GetExportSymbolSetNamesArray();
|
2011-01-14 10:19:25 -06:00
|
|
|
sal_uInt16 nCount = sal::static_int_cast< xub_StrLen >(rExportNames.Count());
|
|
|
|
for (sal_uInt16 i = 0; i < nCount && !aRes.Len(); ++i)
|
2001-08-28 01:47:20 -05:00
|
|
|
{
|
|
|
|
if (rExportName == rExportNames.GetString(i))
|
|
|
|
{
|
|
|
|
aRes = rUiNames.GetString(i);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return aRes;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const String SmLocalizedSymbolData::GetExportSymbolSetName( const String &rUiName ) const
|
|
|
|
{
|
|
|
|
String aRes;
|
|
|
|
|
2009-09-28 05:46:54 -05:00
|
|
|
const SmLocalizedSymbolData &rData = SM_MOD()->GetLocSymbolData();
|
2001-08-28 01:47:20 -05:00
|
|
|
const ResStringArray &rUiNames = rData.GetUiSymbolSetNamesArray();
|
|
|
|
const ResStringArray &rExportNames = rData.GetExportSymbolSetNamesArray();
|
2011-01-14 10:19:25 -06:00
|
|
|
sal_uInt16 nCount = sal::static_int_cast< xub_StrLen >(rUiNames.Count());
|
|
|
|
for (sal_uInt16 i = 0; i < nCount && !aRes.Len(); ++i)
|
2001-08-28 01:47:20 -05:00
|
|
|
{
|
|
|
|
if (rUiName == rUiNames.GetString(i))
|
|
|
|
{
|
|
|
|
aRes = rExportNames.GetString(i);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return aRes;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2001-10-08 05:47:58 -05:00
|
|
|
const ResStringArray* SmLocalizedSymbolData::Get50NamesArray( LanguageType nLang )
|
|
|
|
{
|
|
|
|
if (nLang != n50NamesLang)
|
|
|
|
{
|
|
|
|
int nRID;
|
|
|
|
switch (nLang)
|
|
|
|
{
|
|
|
|
case LANGUAGE_FRENCH : nRID = RID_FRENCH_50_NAMES; break;
|
|
|
|
case LANGUAGE_ITALIAN : nRID = RID_ITALIAN_50_NAMES; break;
|
2001-10-09 03:11:06 -05:00
|
|
|
case LANGUAGE_SWEDISH : nRID = RID_SWEDISH_50_NAMES; break;
|
2001-11-02 05:13:16 -06:00
|
|
|
case LANGUAGE_SPANISH : nRID = RID_SPANISH_50_NAMES; break;
|
2001-10-08 05:47:58 -05:00
|
|
|
default : nRID = -1; break;
|
|
|
|
}
|
|
|
|
delete p50NamesAry;
|
|
|
|
p50NamesAry = 0;
|
|
|
|
n50NamesLang = nLang;
|
|
|
|
if (-1 != nRID)
|
|
|
|
p50NamesAry = new SmNamesArray( n50NamesLang, nRID );
|
|
|
|
}
|
|
|
|
|
|
|
|
return p50NamesAry ? &p50NamesAry->GetNamesArray() : 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const ResStringArray* SmLocalizedSymbolData::Get60NamesArray( LanguageType nLang )
|
|
|
|
{
|
|
|
|
if (nLang != n60NamesLang)
|
|
|
|
{
|
|
|
|
int nRID;
|
|
|
|
switch (nLang)
|
|
|
|
{
|
|
|
|
case LANGUAGE_FRENCH : nRID = RID_FRENCH_60_NAMES; break;
|
|
|
|
case LANGUAGE_ITALIAN : nRID = RID_ITALIAN_60_NAMES; break;
|
2001-10-09 03:11:06 -05:00
|
|
|
case LANGUAGE_SWEDISH : nRID = RID_SWEDISH_60_NAMES; break;
|
2001-11-02 05:13:16 -06:00
|
|
|
case LANGUAGE_SPANISH : nRID = RID_SPANISH_60_NAMES; break;
|
2001-10-08 05:47:58 -05:00
|
|
|
default : nRID = -1; break;
|
|
|
|
}
|
|
|
|
delete p60NamesAry;
|
|
|
|
p60NamesAry = 0;
|
|
|
|
n60NamesLang = nLang;
|
|
|
|
if (-1 != nRID)
|
|
|
|
p60NamesAry = new SmNamesArray( n60NamesLang, nRID );
|
|
|
|
}
|
|
|
|
|
|
|
|
return p60NamesAry ? &p60NamesAry->GetNamesArray() : 0;
|
|
|
|
}
|
|
|
|
|
2001-08-02 09:37:39 -05:00
|
|
|
/////////////////////////////////////////////////////////////////
|
|
|
|
|
2000-09-18 11:07:07 -05:00
|
|
|
SFX_IMPL_INTERFACE(SmModule, SfxModule, SmResId(RID_APPLICATION))
|
|
|
|
{
|
|
|
|
SFX_STATUSBAR_REGISTRATION(SmResId(RID_STATUSBAR));
|
|
|
|
}
|
|
|
|
|
2001-05-02 10:58:48 -05:00
|
|
|
|
2003-09-19 02:53:40 -05:00
|
|
|
SmModule::SmModule(SfxObjectFactory* pObjFact) :
|
2011-01-14 10:19:25 -06:00
|
|
|
SfxModule(SfxApplication::CreateResManager("sm"), sal_False, pObjFact, NULL),
|
2002-12-12 08:40:33 -06:00
|
|
|
pColorConfig( 0 ),
|
2007-05-25 06:15:14 -05:00
|
|
|
pConfig( 0 ),
|
2001-08-02 09:37:39 -05:00
|
|
|
pLocSymbolData( 0 ),
|
2002-01-11 08:36:08 -06:00
|
|
|
pSysLocale( 0 ),
|
|
|
|
pVirtualDev( 0 )
|
2000-09-18 11:07:07 -05:00
|
|
|
{
|
|
|
|
SetName( C2S("StarMath" ));
|
2010-09-29 16:10:28 -05:00
|
|
|
|
|
|
|
SvxModifyControl::RegisterControl(SID_DOC_MODIFIED, this);
|
2000-09-18 11:07:07 -05:00
|
|
|
}
|
|
|
|
|
2001-05-02 10:58:48 -05:00
|
|
|
|
2000-09-18 11:07:07 -05:00
|
|
|
SmModule::~SmModule()
|
|
|
|
{
|
|
|
|
delete pConfig;
|
2009-10-15 17:05:16 -05:00
|
|
|
if (pColorConfig)
|
|
|
|
pColorConfig->RemoveListener(this);
|
2002-12-12 08:40:33 -06:00
|
|
|
delete pColorConfig;
|
2001-08-02 09:37:39 -05:00
|
|
|
delete pLocSymbolData;
|
2001-07-06 07:02:49 -05:00
|
|
|
delete pSysLocale;
|
2002-01-11 08:36:08 -06:00
|
|
|
delete pVirtualDev;
|
2000-09-18 11:07:07 -05:00
|
|
|
}
|
|
|
|
|
2001-07-06 07:02:49 -05:00
|
|
|
void SmModule::_CreateSysLocale() const
|
|
|
|
{
|
|
|
|
SmModule* pThis = (SmModule*)this;
|
|
|
|
pThis->pSysLocale = new SvtSysLocale;
|
|
|
|
}
|
2001-05-02 10:58:48 -05:00
|
|
|
|
2002-01-11 08:36:08 -06:00
|
|
|
void SmModule::_CreateVirtualDev() const
|
|
|
|
{
|
|
|
|
SmModule* pThis = (SmModule*)this;
|
|
|
|
pThis->pVirtualDev = new VirtualDevice;
|
2005-04-04 02:05:47 -05:00
|
|
|
pThis->pVirtualDev->SetReferenceDevice( VirtualDevice::REFDEV_MODE_MSO1 );
|
2002-01-11 08:36:08 -06:00
|
|
|
}
|
|
|
|
|
2003-03-27 05:01:26 -06:00
|
|
|
void SmModule::ApplyColorConfigValues( const svtools::ColorConfig &rColorCfg )
|
2002-12-12 08:40:33 -06:00
|
|
|
{
|
|
|
|
//invalidate all graphic and edit windows
|
|
|
|
const TypeId aSmViewTypeId = TYPE(SmViewShell);
|
|
|
|
SfxViewShell* pViewShell = SfxViewShell::GetFirst();
|
|
|
|
while (pViewShell)
|
|
|
|
{
|
|
|
|
if ((pViewShell->IsA(aSmViewTypeId)))
|
|
|
|
{
|
|
|
|
SmViewShell *pSmView = (SmViewShell *) pViewShell;
|
|
|
|
pSmView->GetGraphicWindow().ApplyColorConfigValues( rColorCfg );
|
|
|
|
SmEditWindow *pEditWin = pSmView->GetEditWindow();
|
|
|
|
if (pEditWin)
|
|
|
|
pEditWin->ApplyColorConfigValues( rColorCfg );
|
|
|
|
}
|
|
|
|
pViewShell = SfxViewShell::GetNext( *pViewShell );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2003-03-27 05:01:26 -06:00
|
|
|
svtools::ColorConfig & SmModule::GetColorConfig()
|
2002-12-12 08:40:33 -06:00
|
|
|
{
|
|
|
|
if(!pColorConfig)
|
|
|
|
{
|
2003-03-27 05:01:26 -06:00
|
|
|
pColorConfig = new svtools::ColorConfig;
|
2002-12-12 08:40:33 -06:00
|
|
|
ApplyColorConfigValues( *pColorConfig );
|
2009-10-15 17:05:16 -05:00
|
|
|
pColorConfig->AddListener(this);
|
2002-12-12 08:40:33 -06:00
|
|
|
}
|
|
|
|
return *pColorConfig;
|
|
|
|
}
|
|
|
|
|
2009-10-15 17:05:16 -05:00
|
|
|
void SmModule::ConfigurationChanged( utl::ConfigurationBroadcaster*, sal_uInt32 )
|
2002-12-12 08:40:33 -06:00
|
|
|
{
|
2009-10-15 17:05:16 -05:00
|
|
|
ApplyColorConfigValues(*pColorConfig);
|
2002-12-12 08:40:33 -06:00
|
|
|
}
|
|
|
|
|
2001-05-02 10:58:48 -05:00
|
|
|
SmConfig * SmModule::GetConfig()
|
|
|
|
{
|
|
|
|
if(!pConfig)
|
|
|
|
pConfig = new SmConfig;
|
|
|
|
return pConfig;
|
|
|
|
}
|
|
|
|
|
2009-09-28 05:46:54 -05:00
|
|
|
SmSymbolManager & SmModule::GetSymbolManager()
|
2005-10-05 10:51:32 -05:00
|
|
|
{
|
2009-09-28 05:46:54 -05:00
|
|
|
return GetConfig()->GetSymbolManager();
|
2005-10-05 10:51:32 -05:00
|
|
|
}
|
|
|
|
|
2001-10-08 05:47:58 -05:00
|
|
|
SmLocalizedSymbolData & SmModule::GetLocSymbolData() const
|
2001-08-02 09:37:39 -05:00
|
|
|
{
|
|
|
|
if (!pLocSymbolData)
|
|
|
|
((SmModule *) this)->pLocSymbolData = new SmLocalizedSymbolData;
|
|
|
|
return *pLocSymbolData;
|
|
|
|
}
|
2001-05-02 10:58:48 -05:00
|
|
|
|
2000-09-18 11:07:07 -05:00
|
|
|
void SmModule::GetState(SfxItemSet &rSet)
|
|
|
|
{
|
|
|
|
SfxWhichIter aIter(rSet);
|
|
|
|
|
2011-01-14 10:19:25 -06:00
|
|
|
for (sal_uInt16 nWh = aIter.FirstWhich(); 0 != nWh; nWh = aIter.NextWhich())
|
2000-09-18 11:07:07 -05:00
|
|
|
switch (nWh)
|
|
|
|
{
|
|
|
|
case SID_CONFIGEVENT :
|
|
|
|
rSet.DisableItem(SID_CONFIGEVENT);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-01-14 10:19:25 -06:00
|
|
|
SfxItemSet* SmModule::CreateItemSet( sal_uInt16 nId )
|
2000-09-18 11:07:07 -05:00
|
|
|
{
|
|
|
|
SfxItemSet* pRet = 0;
|
|
|
|
if(nId == SID_SM_EDITOPTIONS)
|
|
|
|
{
|
|
|
|
pRet = new SfxItemSet(GetPool(),
|
|
|
|
//TP_SMPRINT
|
|
|
|
SID_PRINTSIZE, SID_PRINTSIZE,
|
|
|
|
SID_PRINTZOOM, SID_PRINTZOOM,
|
|
|
|
SID_PRINTTITLE, SID_PRINTTITLE,
|
|
|
|
SID_PRINTTEXT, SID_PRINTTEXT,
|
|
|
|
SID_PRINTFRAME, SID_PRINTFRAME,
|
|
|
|
SID_NO_RIGHT_SPACES, SID_NO_RIGHT_SPACES,
|
2010-10-13 04:39:15 -05:00
|
|
|
SID_SAVE_ONLY_USED_SYMBOLS, SID_SAVE_ONLY_USED_SYMBOLS,
|
2000-09-18 11:07:07 -05:00
|
|
|
0 );
|
|
|
|
|
|
|
|
GetConfig()->ConfigToItemSet(*pRet);
|
|
|
|
}
|
|
|
|
return pRet;
|
|
|
|
}
|
2011-01-14 10:19:25 -06:00
|
|
|
void SmModule::ApplyItemSet( sal_uInt16 nId, const SfxItemSet& rSet )
|
2000-09-18 11:07:07 -05:00
|
|
|
{
|
|
|
|
if(nId == SID_SM_EDITOPTIONS)
|
|
|
|
{
|
|
|
|
GetConfig()->ItemSetToConfig(rSet);
|
|
|
|
}
|
|
|
|
}
|
2011-01-14 10:19:25 -06:00
|
|
|
SfxTabPage* SmModule::CreateTabPage( sal_uInt16 nId, Window* pParent, const SfxItemSet& rSet )
|
2000-09-18 11:07:07 -05:00
|
|
|
{
|
|
|
|
SfxTabPage* pRet = 0;
|
|
|
|
if(nId == SID_SM_TP_PRINTOPTIONS)
|
|
|
|
pRet = SmPrintOptionsTabPage::Create( pParent, rSet );
|
|
|
|
return pRet;
|
|
|
|
|
|
|
|
}
|
2010-10-14 01:30:41 -05:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|