2010-10-12 15:53:47 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-11-21 22:06:52 +00: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-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
#include <tools/shl.hxx>
|
|
|
|
|
2013-10-22 15:58:57 +03:00
|
|
|
#include <svx/dialogs.hrc>
|
2007-06-27 16:42:56 +00:00
|
|
|
#include <svx/dialmgr.hxx>
|
|
|
|
#include <svx/strarray.hxx>
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
//------------------------------------------------------------------------
|
|
|
|
|
2007-04-26 06:43:39 +00:00
|
|
|
SvxStringArray::SvxStringArray( sal_uInt32 nResId ) :
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
ResStringArray( SVX_RES( nResId ) )
|
|
|
|
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------
|
|
|
|
|
|
|
|
SvxStringArray::SvxStringArray( const ResId& rResId ) :
|
|
|
|
ResStringArray( rResId )
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------
|
|
|
|
|
|
|
|
SvxStringArray::~SvxStringArray()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------
|
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
const OUString SvxStringArray::GetStringByPos( sal_uInt32 nPos ) const
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
if ( RESARRAY_INDEX_NOTFOUND != nPos && nPos < Count() )
|
|
|
|
return ResStringArray::GetString( nPos );
|
2013-04-07 12:06:47 +02:00
|
|
|
return OUString();
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
2010-10-12 15:53:47 +02:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|