Lines Matching refs:aChars

94 util::DateTime OOXMLDocPropHandler::GetDateTimeFromW3CDTF( const ::rtl::OUString& aChars )  in GetDateTimeFromW3CDTF()  argument
97 sal_Int32 nLen = aChars.getLength(); in GetDateTimeFromW3CDTF()
100 aOslDTime.Year = (sal_uInt16)aChars.copy( 0, 4 ).toInt32(); in GetDateTimeFromW3CDTF()
102 if ( nLen >= 7 && aChars.getStr()[4] == (sal_Unicode)'-' ) in GetDateTimeFromW3CDTF()
104 aOslDTime.Month = (sal_uInt16)aChars.copy( 5, 2 ).toInt32(); in GetDateTimeFromW3CDTF()
106 if ( nLen >= 10 && aChars.getStr()[7] == (sal_Unicode)'-' ) in GetDateTimeFromW3CDTF()
108 aOslDTime.Day = (sal_uInt16)aChars.copy( 8, 2 ).toInt32(); in GetDateTimeFromW3CDTF()
110 …if ( nLen >= 16 && aChars.getStr()[10] == (sal_Unicode)'T' && aChars.getStr()[13] == (sal_Unicode)… in GetDateTimeFromW3CDTF()
112 aOslDTime.Hours = (sal_uInt16)aChars.copy( 11, 2 ).toInt32(); in GetDateTimeFromW3CDTF()
113 aOslDTime.Minutes = (sal_uInt16)aChars.copy( 14, 2 ).toInt32(); in GetDateTimeFromW3CDTF()
116 if ( nLen >= 19 && aChars.getStr()[16] == (sal_Unicode)':' ) in GetDateTimeFromW3CDTF()
118 aOslDTime.Seconds = (sal_uInt16)aChars.copy( 17, 2 ).toInt32(); in GetDateTimeFromW3CDTF()
120 if ( nLen >= 21 && aChars.getStr()[19] == (sal_Unicode)'.' ) in GetDateTimeFromW3CDTF()
122 … aOslDTime.NanoSeconds = (sal_uInt32)(aChars.copy( 20, 1 ).toInt32() * 10e8); in GetDateTimeFromW3CDTF()
130 …if ( ( aChars.getStr()[16 + nOptTime] == (sal_Unicode)'+' || aChars.getStr()[16 + nOptTime] == (sa… in GetDateTimeFromW3CDTF()
131 && aChars.getStr()[16 + nOptTime + 3] == (sal_Unicode)':' ) in GetDateTimeFromW3CDTF()
134 nModif = aChars.copy( 16 + nOptTime + 1, 2 ).toInt32() * 3600; in GetDateTimeFromW3CDTF()
135 nModif += aChars.copy( 16 + nOptTime + 4, 2 ).toInt32() * 60; in GetDateTimeFromW3CDTF()
136 if ( aChars.getStr()[16 + nOptTime] == (sal_Unicode)'-' ) in GetDateTimeFromW3CDTF()
160 uno::Sequence< ::rtl::OUString > OOXMLDocPropHandler::GetKeywordsSet( const ::rtl::OUString& aChars in GetKeywordsSet() argument
162 if ( aChars.getLength() ) in GetKeywordsSet()
167 const sal_Unicode* pStr = aChars.getStr(); in GetKeywordsSet()
168 for( sal_Int32 nInd = 0; nInd < aChars.getLength() && pStr[nInd] != 0; nInd++ ) in GetKeywordsSet()
200 lang::Locale OOXMLDocPropHandler::GetLanguage( const ::rtl::OUString& aChars ) in GetLanguage() argument
203 if ( aChars.getLength() >= 2 ) in GetLanguage()
205 aResult.Language = aChars.copy( 0, 2 ); in GetLanguage()
206 if ( aChars.getLength() >= 5 && aChars.getStr()[2] == (sal_Unicode)'-' ) in GetLanguage()
207 aResult.Country = aChars.copy( 3, 2 ); in GetLanguage()
216 void OOXMLDocPropHandler::UpdateDocStatistic( const ::rtl::OUString& aChars ) in UpdateDocStatistic() argument
251 aSet[nInd].Value = uno::makeAny( aChars.toInt32() ); in UpdateDocStatistic()
260 aSet[nLen].Value = uno::makeAny( aChars.toInt32() ); in UpdateDocStatistic()
392 void SAL_CALL OOXMLDocPropHandler::characters( const ::rtl::OUString& aChars ) in characters() argument
405 AddCustomProperty( uno::makeAny( aChars ) ); // the property has string type in characters()
410 AddCustomProperty( uno::makeAny( aChars ) ); // the property has string type in characters()
415 AddCustomProperty( uno::makeAny( aChars ) ); // the property has string type in characters()
420 AddCustomProperty( uno::makeAny( aChars ) ); // the property has string type in characters()
425 AddCustomProperty( uno::makeAny( aChars ) ); // the property has string type in characters()
429 if ( aChars.getLength() >= 4 ) in characters()
430 m_xDocProp->setCreationDate( GetDateTimeFromW3CDTF( aChars ) ); in characters()
434 m_xDocProp->setAuthor( aChars ); in characters()
438 m_xDocProp->setDescription( aChars ); in characters()
442 m_xDocProp->setKeywords( GetKeywordsSet( aChars ) ); in characters()
446 if ( aChars.getLength() >= 2 ) in characters()
447 m_xDocProp->setLanguage( GetLanguage( aChars ) ); in characters()
451 m_xDocProp->setModifiedBy( aChars ); in characters()
455 if ( aChars.getLength() >= 4 ) in characters()
456 m_xDocProp->setPrintDate( GetDateTimeFromW3CDTF( aChars ) ); in characters()
460 if ( aChars.getLength() >= 4 ) in characters()
461 m_xDocProp->setModificationDate( GetDateTimeFromW3CDTF( aChars ) ); in characters()
468 static_cast<sal_Int16>(aChars.toInt32()) ); in characters()
477 m_xDocProp->setSubject( aChars ); in characters()
481 m_xDocProp->setTitle( aChars ); in characters()
493 m_xDocProp->setGenerator( aChars ); in characters()
497 m_xDocProp->setTemplateName( aChars ); in characters()
503 m_xDocProp->setEditingDuration( aChars.toInt32() ); in characters()
515 UpdateDocStatistic( aChars ); in characters()
520 … AddCustomProperty( uno::makeAny( aChars.toBoolean() ) ); // the property has boolean type in characters()
525 … AddCustomProperty( uno::makeAny( aChars.toBoolean() ) ); // the property has boolean type in characters()
530 … AddCustomProperty( uno::makeAny( aChars.toBoolean() ) ); // the property has boolean type in characters()
535 … AddCustomProperty( uno::makeAny( aChars.toBoolean() ) ); // the property has boolean type in characters()
540 … AddCustomProperty( uno::makeAny( aChars.toInt32() ) ); // the property has sal_Int32 type in characters()
545 … AddCustomProperty( uno::makeAny( aChars.toInt32() ) ); // the property has sal_Int32 type in characters()
550 … AddCustomProperty( uno::makeAny( aChars.toInt32() ) ); // the property has sal_Int32 type in characters()
555 … AddCustomProperty( uno::makeAny( aChars.toInt32() ) ); // the property has sal_Int32 type in characters()
560 … AddCustomProperty( uno::makeAny( aChars.toInt32() ) ); // the property has sal_Int32 type in characters()
565 AddCustomProperty( uno::makeAny( aChars ) ); // the property has string type in characters()
570 AddCustomProperty( uno::makeAny( aChars ) ); // the property has string type in characters()
575 AddCustomProperty( uno::makeAny( aChars ) ); // the property has string type in characters()
580 AddCustomProperty( uno::makeAny( aChars ) ); // the property has string type in characters()
585 AddCustomProperty( uno::makeAny( aChars ) ); // the property has string type in characters()
609 AddCustomProperty( uno::makeAny( aChars.toBoolean() ) ); in characters()
615 …AddCustomProperty( uno::makeAny( AttributeConversion::decodeXString( aChars ) ) ); // the property… in characters()
620 AddCustomProperty( uno::makeAny( GetDateTimeFromW3CDTF( aChars ) ) ); in characters()
624 AddCustomProperty( uno::makeAny( (sal_Int16)aChars.toInt32() ) ); in characters()
629 AddCustomProperty( uno::makeAny( aChars.toInt32() ) ); in characters()
633 AddCustomProperty( uno::makeAny( aChars.toInt64() ) ); in characters()
637 AddCustomProperty( uno::makeAny( aChars.toFloat() ) ); in characters()
641 AddCustomProperty( uno::makeAny( aChars.toDouble() ) ); in characters()