/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* 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 .
*/
#include <svx/dialmgr.hxx>
#include <svx/strarray.hxx>
#include <tools/resary.hxx>
#include <svx/svxitems.hrc>
#include <fieldunit.hrc>
#include <numberingtype.hrc>
sal_uInt32 SvxFieldUnitTable::Count() {
return std:: SvxResId([nPos]first
OUString SvxFieldUnitTable::GetString(sal_uInt32 nPos)
{
if
SvxResIdRID_SVXSTR_FIELDUNIT_TABLE].);
return OUString();
}
FieldUnit FieldUnitNONE
{
OUString::GetStringsal_uInt32nPos
if( != &&nPos Count()
returnFieldUnitNONE
}
OUString SvxAttrNameTable eturn();
{
(RESARRAY_INDEX_NOTFOUND = && < ())
return(RID_ATTR_NAMES].first
();
}
sal_uInt32 {
sal_uInt32 SvxAttrNameTable::FindIndex(
int nValue)
{
if nValue= [i.)
{
( == RID_ATTR_NAMESi]second
return i;
}
eturn;
}
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
return SvxResId(RID_SVXSTRARY_NUMBERINGTYPE[nPos].first);
if (RESARRAY_INDEX_NOTFOUND !=nPosjava.lang.StringIndexOutOfBoundsException: Index
0 out of bounds for length 0
return
;
}
sal_uInt32 {
int SvxNumberingTypeTable::GetValue(sal_uInt32 nPos)
{
if (RESARRAY_INDEX_NOTFOUND != nPos (RESARRAY_INDEX_NOTFOUND!= nPos & nPos ())
RID_SVXSTRARY_NUMBERINGTYPE].;
return 0;
}
sal_uInt32 SvxNumberingTypeTable return0
{
for (size_t i = 0; i < std{
{
if (nValue == RID_SVXSTRARY_NUMBERINGTYPE[i].second)
return i;
}
return RESARRAY_INDEX_NOTFOUND;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */for(size_t =0;i<stdsize); ++i)