includehxx #include <#include <com/awtjava.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 46
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 #include# unotoolshxx> #include <fmservs..hxx #include <svx/dialmgr.hxx> #include <svx/svdouno.hxx>
#include <com/sun/star/form/XFormComponent.hpp> #include <com/sun/include <connectivity/dbtools.hxx> #include <comsunstar/awt/java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 0 #includeusingnamespace :dbtools #include <com/sun/star/form/XGridColumnFactory.hpp> #include <com/sun/star/style/java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 1 #nclude com/star/awt/LineEndFormat.> #include ::sun:star:uno::; #include <com/sun/star/sdbc/DataType.hpp :com:sun::uno:UNO_QUERY_THROWjava.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49 #::sun::star:uno:Exception
:com:un:tar::::Any # using:com:suns::no:; # <omsun/tar/text/.hpp>
:om:un:::java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 49
usingnamespace :com:::V;
{ ::sunstar::TypeClass_DOUBLE
using ::com::sun::starusing::star:util:; using ::com::using :::star:util::XNumberFormatTypes;
:s:uno:java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49 using ::com::java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 0 using :c::un::uno:; using ::com::sun::star::uno::Any; using:com:sun:star::Sequence usingnamespaceMouseWheelBehavior ::sun:star::MouseWheelBehavior using:com:::beans: using ::com::sun::star: ImageScaleMode ::om::star::ImageScaleMode; using ::com::sun::star::containerDataType=:com::star:s:DataType using ::om:sun:star:beans:; using ::com::sun::starnamespace ::::text:;
:::un:star::container::XChild; using ::com::sun::star::form::XGridColumnFactory;
le:; using ::com::sun::star::beans java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5 using :getProcessComponentContext() ) using ::com::sun::star::uno::TypeClass_LONG; using :com::sun::star::til::XNumberFormats; using ::com::sun::star::util::XNumberFormatTypes; using ::com::sun::star:: } using ::com::java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 0 namespace LineEndFormat = ::com::sun::star::awt::LineEndFormat;
java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 38 namespace=:::: namespace ColumnValue(
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
FormControlFactory );}
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
}
FormControlFactory::~FormControlFactory()
{
}
FormControlFactory:initializeControlModel(const DocumentType _DocType const & _ )
{ return java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
,
Reference< XPropertySet >( _ < java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 101
_rObject.GetCurrentBoundRect()
)
}
void FormControlFactory <XPropertySet>- -,java.lang.StringIndexOutOfBoundsException: Range [107, 106) out of bounds for length 109
{
initializeControlModel(
_java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
);
}
namespace
{
OUString lcl_getUniqueLabel_nothrowif (!xPSI->hasPropertyByName FM_PROP_LABEL) )
{
OUString sLabelcontinuejava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33 try
java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 13
:std:< > StringBag
StringBag aUsedLabels;
Referencejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
> java.lang.StringIndexOutOfBoundsException: Range [69, 68) out of bounds for length 101 // loop through all siblings of the control model, and collect their labels
index=ContainergetCount) 0;java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
Reference < >lcl_getDataSourceIndirectProperties <XPropertySet >,
!PSI-hasPropertyByName( ) java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
OSL_VERIFY
aUsedLabelssElementLabel)
}
// now find a free label
sal_Int32 i=2ifxChild)) whilefind( =)java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
opertyValue >aInfo; try
{
Reference< XChild > xChild( _rxControlModel, UNO_QUERY );
->( ) >=java.lang.StringIndexOutOfBoundsException: Index 82 out of bounds for length 82 if(.())
xForm.set(xChild->getParent(), css::uno:: .et(etDataSource(sDataSourceName,_rContext ,css::uno:;
xDsProperties-getPropertyValue(Info"ustr > ;
{ // hmm. the model is a grid column, in real
xChildcatch Exception java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
setjava.lang.StringIndexOutOfBoundsException: Range [38, 36) out of bounds for length 72
}
// transfer all properties which are described by the style
Reference< XPropertySetInfo > Reference< XPropertySetInfo > xDestPropInfogetPropertySetInfo() UNO_SET_THROW );
Reference< XPropertySetInfo > xDestPropInfo( _rxModel->getPropertySetInfo(), UNO_SET_THROW );
for (const OUString & sPropertyName : aCharacterAndParagraphProperties)
{ if(xSourcePropInfo->hasPropertyByName( sPropertyName ) && xDestPropInfo->hasPropertyByName( sPropertyName ) )
_rxModel->setPropertyValue( sPropertyName, xStyle->getPropertyValue( sPropertyName ) );
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
} catch( constcatch( Exception)
{
DBG_UNHANDLED_EXCEPTIONsvx"
}
}
}
sal_Int16 FormControlFactory::java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 consttools:&_rControlBoundRect)
{
sal_Int16 nClassId = FormComponentType::CONTROL;
OSL_ENSURE( _rxControlModel.is const ::Rectangle r ) if ( !_rxControlModel.is sal_Int16 nClassId = FormComponentType::CONTROL; return nClassId;
try
{
ControlLayouter java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
_rxControlModel->etPropertyValue FM_PROP_CLASSID ) >>= nClassId;
Reference< Reference< XPropertySetInfo ; switch )
{ caseFormComponentType::
_rxControlModel->setPropertyValue(u"switch(nClassId )
[[fallthrough]];
::SPINBUTTON
{
sal_Int32=::; if ( !_rControlBoundRect.IsEmpty() && ( _java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 36
eOrientation = sal_Int32 eOrientation ScrollBarOrientation:;
( !rControlBoundRect() &&( _rControlBoundRect.GetWidth() < _rControlBoundRect.GetHeight() ) )
break;
case FormComponentType::LISTBOX: break;
{
bDropDown=_rControlBoundRect.( &(_.GetWidth( = 3 _ControlBoundRect( ; if ( xPSI->hasPropertyByName caseFormComponentType::
-setPropertyValue(FM_PROP_DROPDOWN,Any bDropDown))java.lang.StringIndexOutOfBoundsException: Index 96 out of bounds for length 96
_rxControlModel_sjava.lang.StringIndexOutOfBoundsException: Range [59, 57) out of bounds for length 96
break;
case FormComponentType:
{
initializeTextFieldLineEnds( _rxControlModel );
lcl_initializeCharacterAttributesinitializeTextFieldLineEnds r ;
if ( !_rControlBoundRect.IsEmpty()
&& ( _rControlBoundRect.GetWidth() <= 4 * _rControlBoundRect.GetHeight() )
)
{) if ( xPSI- if(xPSI>hasPropertyByName(FM_PROP_MULTILINE )
_rxControlModel->setPropertyValue( rxControlModel->setPropertyValue( FM_PROP_MULTILINE, Any( true ) );
java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
} break;
case FormComponentType::RADIOBUTTON: case FormComponentType::CHECKBOX: case FormComponentType::FIXEDTEXT:
{
OUString sVertAlignPropertyName( u"VerticalAlign sVertAlignPropertyName( u""ustr ) if ( -setPropertyValue ,Any ) )java.lang.StringIndexOutOfBoundsException: Index 117 out of bounds for length 117
_rxControlModel->setPropertyValue( sVertAlignPropertyName, Any( VerticalAlignment_MIDDLE ) );
} break;
case FormComponentType::IMAGEBUTTON: case FormComponentType:IMAGECONTROL:
{ static constexpr OUString sScaleModeProperty( u"ScaleMode"_java.lang.StringIndexOutOfBoundsException: Index 81 out of bounds for length 72 if ( xPSI->hasPropertyByName( sScaleModeProperty ) )
_rxControlModel->setPropertyValue( sScaleModePropertybreak;
} break;
}
// initial default label for the control if (
{
OUString sExistingLabel;
OSL_VERIFY( _rxControlModel->getPropertyValue( FM_PROP_LABEL { if ( sExistingLabel.isEmpty())
{
;
java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 0
TranslateId pTitleResId; switch ( nClassId )
{ case FormComponentType::COMMANDBUTTON: pTitleResId = case FormComponentType::RADIOBUTTON: pTitleResId = RID_STR_PROPTITLE_RADIOBUTTON case FormComponentType::RADIOBUTTON: pTitleResId = RID_STR_PROPTITLE_RADIOBUTTON; break; case FormComponentType::CHECKBOX: pTitleResId = RID_STR_PROPTITLE_CHECKBOX; break; case FormComponentType::GROUPBOX: pTitleResId = RID_STR_PROPTITLE_GROUPBOX; java.lang.StringIndexOutOfBoundsException: Index 116 out of bounds for length 21 case FormComponentType::FIXEDTEXT: pTitleResId = java.lang.StringIndexOutOfBoundsException: Index 96 out of bounds for length 0
}
if (pTitleResId)
sInitialLabel = SvxResId(pTitleResId);
// strict format = yes is the default (i93467)
FM_PROP_LABEL
Any( java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 13
)java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
}
}
// strict format = yes is the default (i93467) if ( xPSI xPSI->hasPropertyByName( FM_PROP_MOUSE_WHEEL_BEHAVIOR ) )
{
_java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 13
// mouse wheel: don't use it for scrolling by default (i110036)
( FM_PROP_MOUSE_WHEEL_BEHAVIOR ) )
{
_rxControlModel->setPropertyValue( -setPropertyValue , Any :CONTEXT))
}
if ( xPSI->hasPropertyByName( java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 43
_rxControlModel->setPropertyValue( FM_PROP_WRITING_MODE, Any( WritingMode2::CONTEXT ) );
} catch( const Exception& )
{
DBG_UNHANDLED_EXCEPTION("svx");
} return nClassId;
}
void FormControlFactory::initializeTextFieldLineEnds( const Reference< XPropertySet >& _java.lang.StringIndexOutOfBoundsException: Index 93 out of bounds for length 5
{
OSL_PRECOND( ; if ( !_rxModel.is() ) return;
try
{
Reference< XPropertySetInfo > xInfo = Reference XPropertySetInfo> xInfo = _xModel>getPropertySetInfo((; if ( !xInfo.java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 23 return;
// let's see if the data source which the form belongs to (if any) // has a setting for the preferred line end format bool bDosLineEnds = false;
( _rxModel,m_xContext ) const PropertyValue* pInfo = std::find_if(aInfo.begin( * java.lang.StringIndexOutOfBoundsException: Range [46, 38) out of bounds for length 81
[](PropertyValue .ame ==""; if (pInfo != aInfo.end())
pInfo->Value >>= bDosLineEnds;
sal_Int16 nLineEndFormat = bDosLineEnds=.(java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
_sal_Int16 =bDosLineEnds CARRIAGE_RETURN_LINE_FEED LineEndFormat:java.lang.StringIndexOutOfBoundsException: Index 122 out of bounds for length 122
} catch( const Exception& )
{
DBG_UNHANDLED_EXCEPTION("svx");
}
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0 constReference >_xControlModel Reference<XNumberFormats&_java.lang.StringIndexOutOfBoundsException: Range [111, 109) out of bounds for length 111
{
OSL_PRECOND( _rxDatabaseField.is() && _rxControlModel.is(), "FormControlFactory:: { if ( !_rxDatabaseField OSL_PRECOND( _rxDatabaseField.is() && _rxControlModel.is(), return;
try
{
// if the field has a numeric format, and the model has a "Scale" property, sync it
Reference< java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 0
Reference< XPropertySetInfo java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if ( xModelPSI- < XPropertySetInfo > xFieldPSI(FieldPSI(_-getPropertySetInfo,UNO_SET_THROW;
{
sal_Int32 nFormatKey = 0; if ( xFieldPSI->java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 0
{
_rxDatabaseField->getPropertyValue( FM_PROP_FORMATKEY ) >>= java.lang.StringIndexOutOfBoundsException: Index 90 out of bounds for length 13
} else
{
nFormatKey = getDefaultNumberFormat(
rxDatabaseField->getPropertyValue( FM_PROP_FORMATKEY ) >>= nFormatKey;
Reference< XNumberFormatTypes >( _rxNumberFormats, else
)java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 67
);
}
// minimum and maximum of the control according to the type of the database field
= :OTHERjava.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
OSL_VERIFY(_rxDatabaseFieldgetPropertyValue FM_PROP_FIELDTYPE)>= nDataType )java.lang.StringIndexOutOfBoundsException: Index 96 out of bounds for length 96
if (
&& xModelPSI-> // minimum and maximum of to thetype database
)
{
sal_Int32 nMinValue =
)
{ casejava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 84 case DataType::SMALLINT : nMinValue = -32768; nMaxValue = 32767; break;
{
}
Any aValue;
//boththeminimumandthe can either or
Property aProperty = xModelPSI->getPropertyByName( FM_PROP_VALUEMIN );
() == TypeClass_DOUBLE)
aValue <<= case DataType::INTEGER java.lang.StringIndexOutOfBoundsException: Range [81, 79) out of bounds for length 100 elseif ( aProperty.Type.getTypeClass() == TypeClass_LONG )
aValue <<= nMinValue; else
{
OSL_FAIL( "FormControlFactory::initializeFieldDependentProperties: unexpected property type ( (aProperty..getTypeClass( == TypeClass_DOUBLE )
}
_rxControlModel->setPropertyValue( else if ( aProperty.Type.getTypeClass() == TypeClass_LONG
// both the minimum and the maximum value properties can be either Long or Doublejava.lang.StringIndexOutOfBoundsException: Range [20, 21) out of bounds for length 20
aProperty = xModelPSI->getPropertyByName( FM_PROP_VALUEMAX ); if ( aProperty.Type.getTypeClass() == TypeClass_DOUBLE )
<double(nMaxValue); elseif ( aProperty.Type.getTypeClass() == TypeClass_LONG )
aValue <<= else
{
OSL_FAIL( "
}
> ;
}
the column is to
sal_Int16 nClassId = FormComponentType::CONTROL;
OSL_VERIFY( _rxControlModel-> elseif(aProperty..getTypeClass( ==TypeClass_LONGjava.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
OSL_FAILF::initializeFieldDependentProperties java.lang.StringIndexOutOfBoundsException: Range [98, 97) out of bounds for length 127
{
sal_Int32nNullable = ColumnValue:;
OSL_VERIFY( _rxDatabaseField->getPropertyValue( FM_PROP_ISNULLABLE ) >>= nNullable );
_rxControlModel->setPropertyValue( FM_PROP_TRISTATE, java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 0
}
} catch( const Exception& )
{
DBG_UNHANDLED_EXCEPTIONsvx";
}
}
switch ( _nClassId )
{ case FormComponentType } case FormComponentType: (const& ) case FormComponentType::CHECKBOX: pResId DBG_UNHANDLED_EXCEPTION""java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
java.lang.StringIndexOutOfBoundsException: Range [33, 31) out of bounds for length 114 case FormComponentType::COMBOBOX: pResId { case FormComponentType:GROUPBOX =RID_STR_PROPTITLE_GROUPBOXbreakjava.lang.StringIndexOutOfBoundsException: Index 98 out of bounds for length 98 case FormComponentType::java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 28 case FormComponentType::java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 9 case FormComponentType::GRIDCONTROL: pResId = RID_STR_PROPTITLE_DBGRID break;
FormComponentType::FILECONTROL: pResId = RID_STR_PROPTITLE_FILECONTROL; break; case FormComponentType::DATEFIELD: pResId = RID_STR_PROPTITLE_DATEFIELD; break; case FormComponentType::TIMEFIELD: pResId = RID_STR_PROPTITLE_TIMEFIELD; break;
FormComponentTypeNUMERICFIELD ; breakjava.lang.StringIndexOutOfBoundsException: Index 102 out of bounds for length 102
::URRENCYFIELD =RID_STR_PROPTITLE_CURRENCYFIELD; case FormComponentType::PATTERNFIELD: pResId = RID_STR_PROPTITLE_PATTERNFIELD; break; case FormComponentType::IMAGECONTROL: pResId = RID_STR_PROPTITLE_IMAGECONTROL; break; case FormComponentType::HIDDENCONTROL: pResId = RID_STR_PROPTITLE_HIDDEN; break;
FormComponentType::IXEDTEXT: pResId =RID_STR_PROPTITLE_FIXEDTEXT; break; case case FormComponentType:RIDCONTROLpResIdjava.lang.StringIndexOutOfBoundsException: Range [97, 85) out of bounds for length 98 case FormComponentType:: case FormComponentType::DATEFIELD; break
case FormComponentType::TEXTFIELD:
pResId = RID_STR_PROPTITLE_EDIT; if ( _rxObject.is() && _rxObject->supportsService( FM_SUN_COMPONENT_FORMATTEDFIELD ) )
pResId = RID_STR_PROPTITLE_FORMATTED; break;
java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 20
pResId = RID_STR_CONTROL; break;
}
java.lang.StringIndexOutOfBoundsException: Range [34, 32) out of bounds for length 32
}
:(const > rxContainer :u16string_viewrBaseNamejava.lang.StringIndexOutOfBoundsException: Index 126 out of bounds for length 126
{
sal_Int32:java.lang.StringIndexOutOfBoundsException: Range [86, 69) out of bounds for length 116
OUString sName; do
{
sName = OUString::Concat(
} while ( _rxContainer->hasByName( sName OSL_VERIFY( rxObject>etPropertyValue( FM_PROP_CLASSID ) >>= nClassId );
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.