Home
last modified time | relevance | path

Searched refs:nElements (Results 1 – 25 of 74) sorted by relevance

123

/trunk/main/sal/rtl/source/
H A Dbyteseq.c46 sal_Int32 nElements; in rtl_byte_sequence_reference2One() local
53 nElements = pSequence->nElements; in rtl_byte_sequence_reference2One()
54 if (nElements) in rtl_byte_sequence_reference2One()
56 pNew = (sal_Sequence *)rtl_allocateMemory( SAL_SEQUENCE_HEADER_SIZE + nElements ); in rtl_byte_sequence_reference2One()
59 rtl_copyMemory( pNew->elements, pSequence->elements, nElements ); in rtl_byte_sequence_reference2One()
72 pNew->nElements = nElements; in rtl_byte_sequence_reference2One()
84 sal_Int32 nElements; in rtl_byte_sequence_realloc() local
88 nElements = pSequence->nElements; in rtl_byte_sequence_realloc()
90 if (nElements == nSize) in rtl_byte_sequence_realloc()
99 if (nSize > nElements) in rtl_byte_sequence_realloc()
[all …]
/trunk/main/cli_ure/source/uno_bridge/
H A Dcli_data.cxx65 inline auto_ptr< rtl_mem > seq_allocate( sal_Int32 nElements, sal_Int32 nSize ) in seq_allocate() argument
68 rtl_mem::allocate( SAL_SEQUENCE_HEADER_SIZE + (nElements * nSize) ) ); in seq_allocate()
71 p->nElements = nElements; in seq_allocate()
1272 sal_Int32 nElements = ar->GetLength(0); in map_to_uno() local
1279 seq = seq_allocate(nElements, sizeof (sal_Unicode)); in map_to_uno()
1281 & ((uno_Sequence*) seq.get())->elements, nElements); in map_to_uno()
1284 seq = seq_allocate(nElements, sizeof (sal_Bool)); in map_to_uno()
1286 & ((uno_Sequence*) seq.get())->elements, nElements); in map_to_uno()
1289 seq = seq_allocate( nElements, sizeof (sal_Int8) ); in map_to_uno()
1291 & ((uno_Sequence*) seq.get())->elements, nElements); in map_to_uno()
[all …]
/trunk/main/bridges/source/jni_uno/
H A Djni_data.cxx41 inline rtl_mem * seq_allocate( sal_Int32 nElements, sal_Int32 nSize ) in seq_allocate() argument
44 rtl_mem::allocate( SAL_SEQUENCE_HEADER_SIZE + (nElements * nSize) ) ); in seq_allocate()
47 p->nElements = nElements; in seq_allocate()
1027 sal_Int32 nElements = jni->GetArrayLength( (jarray) java_data.l ); in map_to_uno() local
1032 seq.reset( seq_allocate( nElements, sizeof (sal_Unicode) ) ); in map_to_uno()
1034 (jcharArray) java_data.l, 0, nElements, in map_to_uno()
1039 seq.reset( seq_allocate( nElements, sizeof (sal_Bool) ) ); in map_to_uno()
1041 (jbooleanArray) java_data.l, 0, nElements, in map_to_uno()
1046 seq.reset( seq_allocate( nElements, sizeof (sal_Int8) ) ); in map_to_uno()
1048 (jbyteArray) java_data.l, 0, nElements, in map_to_uno()
[all …]
/trunk/main/cppu/source/uno/
H A Deq.hxx122 sal_Int32 nElements = pDest->nElements; in _equalSequence() local
123 if (nElements != pSource->nElements) in _equalSequence()
125 if (! nElements) in _equalSequence()
134 …turn (0 == ::rtl_compareMemory( pDestElements, pSourceElements, sizeof(sal_Unicode) * nElements )); in _equalSequence()
137 for ( sal_Int32 nPos = nElements; nPos--; ) in _equalSequence()
148 … return (0 == ::rtl_compareMemory( pDestElements, pSourceElements, sizeof(sal_Int8) * nElements )); in _equalSequence()
151 …return (0 == ::rtl_compareMemory( pDestElements, pSourceElements, sizeof(sal_Int16) * nElements )); in _equalSequence()
154 …return (0 == ::rtl_compareMemory( pDestElements, pSourceElements, sizeof(sal_Int32) * nElements )); in _equalSequence()
157 …return (0 == ::rtl_compareMemory( pDestElements, pSourceElements, sizeof(sal_Int64) * nElements )); in _equalSequence()
160 for ( sal_Int32 nPos = nElements; nPos--; ) in _equalSequence()
[all …]
H A Dcopy.hxx39 sal_Int32 nElementSize, sal_Int32 nElements ) in allocSeq() argument
41 OSL_ASSERT( nElements >= 0 && nElementSize >= 0 ); in allocSeq()
43 sal_uInt32 nSize = calcSeqMemSize( nElementSize, nElements ); in allocSeq()
51 pSeq->nElements = nElements; in allocSeq()
549 sal_Int32 nElements = pSource->nElements; in icopyConstructSequence() local
550 if (nElements) in icopyConstructSequence()
556 pDest = allocSeq( sizeof (uno_Any), nElements ); in icopyConstructSequence()
561 for ( sal_Int32 nPos = nElements; nPos--; ) in icopyConstructSequence()
588 pDest = allocSeq( nElementSize, nElements ); in icopyConstructSequence()
592 for ( sal_Int32 nPos = nElements; nPos--; ) in icopyConstructSequence()
[all …]
H A Dsequence.cxx47 uno_Sequence * pReallocate, sal_Size nElementSize, sal_Int32 nElements ) in reallocSeq() argument
49 OSL_ASSERT( nElements >= 0 ); in reallocSeq()
51 sal_uInt32 nSize = calcSeqMemSize( nElementSize, nElements ); in reallocSeq()
66 pNew->nElements = nElements; in reallocSeq()
689 sal_Int32 nElements = pSeq->nElements; in ireallocSequence() local
700 sal_Int32 nRest = nSize - nElements; in ireallocSequence()
701 sal_Int32 nCopy = (nRest > 0 ? nElements : nSize); in ireallocSequence()
723 if (nElements > 0) in ireallocSequence()
727 0, nElements, release ); in ireallocSequence()
737 if (nSize > nElements) // default construct the rest in ireallocSequence()
[all …]
/trunk/main/vcl/source/window/
H A Darrange.cxx162 size_t nElements = m_pChild->countElements(); in getExpandPriority() local
163 for( size_t i = 0; i < nElements; i++ ) in getExpandPriority()
342 size_t nElements = m_aElements.size(); in distributeRowWidth() local
345 for( size_t i = 0; i < nElements; i++ ) in distributeRowWidth()
361 nElements = aIndices.size(); in distributeRowWidth()
362 if( nElements > 0 ) in distributeRowWidth()
364 long nDelta = i_nExtraWidth / nElements; in distributeRowWidth()
365 for( size_t i = 0; i < nElements; i++ ) in distributeRowWidth()
371 if( i_nExtraWidth > 0 && nElements > 0 ) in distributeRowWidth()
382 size_t nElements = m_aElements.size(); in distributeColumnHeight() local
[all …]
/trunk/main/slideshow/source/engine/transitions/
H A Drandomwipe.cxx38 RandomWipe::RandomWipe( sal_Int32 nElements, bool randomBars ) in RandomWipe() argument
39 : m_positions( new ::basegfx::B2DPoint[ nElements ] ), in RandomWipe()
40 m_nElements( nElements ), in RandomWipe()
46 double edge = (1.0 / nElements); in RandomWipe()
47 for ( sal_Int32 pos = nElements; pos--; ) in RandomWipe()
54 sqrt( static_cast<double>(nElements) ) ); in RandomWipe()
56 for ( sal_Int32 pos = nElements; pos--; ) { in RandomWipe()
67 for (sal_Int32 nIndex=0; nIndex<nElements; ++nIndex) in RandomWipe()
69 const sal_Int32 nOtherIndex (getRandomOrdinal(nElements)); in RandomWipe()
70 OSL_ASSERT(nOtherIndex>=0 && nOtherIndex<nElements); in RandomWipe()
H A Dspiralwipe.hxx40 SpiralWipe( sal_Int32 nElements, bool flipOnYAxis = false );
54 BoxSnakesWipe( sal_Int32 nElements, bool fourBox = false ) in BoxSnakesWipe() argument
55 : SpiralWipe(nElements), m_fourBox(fourBox) {} in BoxSnakesWipe()
H A Dsnakewipe.hxx40 SnakeWipe( sal_Int32 nElements, bool diagonal, bool flipOnYAxis );
59 ParallelSnakesWipe( sal_Int32 nElements, in ParallelSnakesWipe() argument
61 : SnakeWipe( nElements, diagonal, flipOnYAxis ), in ParallelSnakesWipe()
H A Dspiralwipe.cxx40 SpiralWipe::SpiralWipe( sal_Int32 nElements, bool flipOnYAxis ) in SpiralWipe() argument
41 : m_elements(nElements), in SpiralWipe()
43 sqrt( static_cast<double>(nElements) ) ) ), in SpiralWipe()
/trunk/main/toolkit/source/helper/
H A Dproperty.cxx112 static sal_uInt16 nElements = 0; in ImplGetPropertyInfos() local
297 nElements = sizeof( aImplPropertyInfos ) / sizeof( ImplPropertyInfo ); in ImplGetPropertyInfos()
300 rElementCount = nElements; in ImplGetPropertyInfos()
326 sal_uInt16 nElements; in ImplAssertValidPropertyArray() local
327 ImplPropertyInfo* pInfos = ImplGetPropertyInfos( nElements ); in ImplAssertValidPropertyArray()
328 ::std::sort(pInfos, pInfos+nElements,ImplPropertyInfoCompareFunctor()); in ImplAssertValidPropertyArray()
337 sal_uInt16 nElements; in GetPropertyId() local
338 ImplPropertyInfo* pInfos = ImplGetPropertyInfos( nElements ); in GetPropertyId()
339 …ImplPropertyInfo* pInf = ::std::lower_bound(pInfos,pInfos+nElements,rPropertyName,ImplPropertyInfo… in GetPropertyId()
345 return ( pInf && pInf != (pInfos+nElements) && pInf->aName == rPropertyName) ? pInf->nPropId: 0; in GetPropertyId()
[all …]
/trunk/main/xmloff/source/draw/
H A Danimationimport.cxx521 …sal_Int32 nElements = count_codes( rValue, (sal_Unicode)';') + 1; // a non empty string has at lea… in convertValueSequence() local
524 aValues.realloc( nElements ); in convertValueSequence()
529 for( nIndex = 0, nElement = 0; nElements && (nIndex >= 0); nElements-- ) in convertValueSequence()
546 …sal_Int32 nElements = count_codes( rValue, (sal_Unicode)';' ) + 1; // a non empty string has at le… in convertTiming() local
548 if( nElements == 1 ) in convertTiming()
606 Sequence< Any > aValues( nElements ); in convertTiming()
609 while( (nElements--) && (nIndex >= 0) ) in convertTiming()
620 sal_Int32 nElements = 0; in convertKeyTimes() local
623nElements = count_codes( rValue, (sal_Unicode)';' ) + 1; // a non empty string has at least one va… in convertKeyTimes()
625 Sequence< double > aKeyTimes( nElements ); in convertKeyTimes()
[all …]
H A Dshapeexport4.cxx182 sal_uInt32 i, j, nElements = rHandles.getLength(); in ImpExportHandles() local
183 if ( nElements ) in ImpExportHandles()
188 for ( i = 0; i < nElements; i++ ) in ImpExportHandles()
909 sal_Int32 k, nElements = aGluePoints.getLength(); in ImpExportEnhancedGeometry() local
910 if ( nElements ) in ImpExportEnhancedGeometry()
912 for( k = 0; k < nElements; k++ ) in ImpExportEnhancedGeometry()
970 … sal_uInt16 k, nElements = (sal_uInt16)aPathTextFrames.getLength(); in ImpExportEnhancedGeometry() local
971 for ( k = 0; k < nElements; k++ ) in ImpExportEnhancedGeometry()
/trunk/main/sdext/source/pdfimport/tree/
H A Dstyle.cxx240 int n = 0, nElements = 0; in emit() local
242 for( n = 0, nElements = aOfficeStyleSection.size(); n < nElements; n++ ) in emit()
246 for( n = 0, nElements = aAutomaticStyleSection.size(); n < nElements; n++ ) in emit()
250 for( n = 0, nElements = aMasterPageSection.size(); n < nElements; n++ ) in emit()
/trunk/main/xmerge/source/wordsmith/java/org/openoffice/xmerge/converter/xml/sxw/wordsmith/
H A DtextRecord.java72 int nElements = elements.size(); in getByteCount() local
73 for (int i = 0; i < nElements; i++) { in getByteCount()
95 int nElements = elements.size(); in getBytes() local
96 for (int i = 0; i < nElements; i++) { in getBytes()
H A DWSEncoder.java118 int nElements = elements.size(); in getRecords() local
122 while (currElement < nElements) { in getRecords()
154 while (currElement < nElements) { in getRecords()
/trunk/main/comphelper/source/misc/
H A Danytostring.cxx173 sal_Int32 nElements = seq->nElements; in appendValue() local
175 if (nElements > 0) in appendValue()
179 for ( sal_Int32 nPos = 0; nPos < nElements; ++nPos ) in appendValue()
184 if (nPos < (nElements - 1)) in appendValue()
/trunk/main/sdext/source/pdfimport/test/
H A Dpdfunzip.cxx298 unsigned int nElements = pPDFFile->m_aSubElements.size(); in write_addStreams() local
299 for( unsigned i = 0; i < nElements && nRet == 0; i++ ) in write_addStreams()
321 unsigned int nElements = i_pPDFFile->m_aSubElements.size(); in write_fonts() local
322 for( unsigned i = 0; i < nElements && nRet == 0; i++ ) in write_fonts()
407 unsigned int nElements = s_aEmitObjects.size(); in write_objects() local
408 for( unsigned i = 0; i < nElements && nRet == 0; i++ ) in write_objects()
/trunk/main/toolkit/source/awt/
H A Dvclxprinter.cxx53 static sal_uInt16 nElements = 0; in ImplGetProperties() local
65 nElements = sizeof( aPropTable ) / sizeof( ::com::sun::star::beans::Property ); in ImplGetProperties()
68 rElementCount = nElements; in ImplGetProperties()
120 sal_uInt16 nElements; in getInfoHelper() local
121 ::com::sun::star::beans::Property* pProps = ImplGetProperties( nElements ); in getInfoHelper()
122 pPropertyArrayHelper = new ::cppu::OPropertyArrayHelper( pProps, nElements, sal_False ); in getInfoHelper()
/trunk/main/filter/source/msfilter/
H A Descherex.cxx3078 sal_uInt16 nElements = (sal_uInt16)aEquations.size(); in CreateCustomShapeProperties() local
3079 if ( nElements ) in CreateCustomShapeProperties()
3082 sal_uInt32 nStreamSize = nElementSize * nElements + 6; in CreateCustomShapeProperties()
3084 aOut << nElements in CreateCustomShapeProperties()
3085 << nElements in CreateCustomShapeProperties()
3186 sal_uInt16 nElements = (sal_uInt16)aGluePoints.getLength(); in CreateCustomShapeProperties() local
3187 if ( nElements ) in CreateCustomShapeProperties()
3190 sal_uInt32 nStreamSize = nElementSize * nElements + 6; in CreateCustomShapeProperties()
3192 aOut << nElements in CreateCustomShapeProperties()
3193 << nElements in CreateCustomShapeProperties()
[all …]
/trunk/main/extensions/source/scanner/
H A Dsanedlg.cxx443 int nElements = mrSane.GetOptionElements( mnCurrentOption ); in IMPL_LINK() local
444 double* x = new double[ nElements ]; in IMPL_LINK()
445 double* y = new double[ nElements ]; in IMPL_LINK()
446 for( int i = 0; i < nElements; i++ ) in IMPL_LINK()
450 GridWindow aGrid( x, y, nElements, this ); in IMPL_LINK()
452 aGrid.setBoundings( 0, mfMin, nElements, mfMax ); in IMPL_LINK()
546 int nElements = mrSane.GetOptionElements( mnCurrentOption ); in IMPL_LINK() local
556 if( nElements > 1 ) in IMPL_LINK()
558 if( nElements <= 10 ) in IMPL_LINK()
/trunk/main/cppuhelper/source/
H A Dpropshlp.cxx1097 sal_Int32 i, nElements = aInfos.getLength(); in init() local
1100 for( i = 1; i < nElements; i++ ) in init()
1110 qsort( aInfos.getArray(), nElements, sizeof( Property ), in init()
1117 for( i = 0; i < nElements; i++ ) in init()
1160 sal_Int32 nElements = aInfos.getLength(); in fillPropertyMembersByHandle() local
1164 if( nHandle < 0 || nHandle >= nElements ) in fillPropertyMembersByHandle()
1175 for( sal_Int32 i = 0; i < nElements; i++ ) in fillPropertyMembersByHandle()
/trunk/main/extensions/source/resource/
H A Dresource.cxx237 sal_Int32 nElements = Params.getLength(); in invoke() local
238 if( nElements < 1 ) in invoke()
240 …if( nElements > 1 && (FunctionName.equalsAscii("getString") || FunctionName.equalsAscii("hasString… in invoke()
255 for( sal_Int32 n = 0; n < nElements; n++ ) in invoke()
/trunk/main/framework/source/fwe/classes/
H A Daddonmenu.cxx343 sal_uInt32 nElements = 0; in BuildMenu() local
379 if ( bInsertSeparator && nElements > 0 ) in BuildMenu()
383 nElements = 0; in BuildMenu()
393 ++nElements; in BuildMenu()

123