Lines Matching refs:handle

87     oslFileHandle handle;  member
90 TempFile(): handle(0), closed(false) {} in TempFile()
96 if (handle != 0) { in ~TempFile()
98 oslFileError e = osl_closeFile(handle); in ~TempFile()
111 void writeData(oslFileHandle handle, char const * begin, sal_Int32 length) { in writeData() argument
114 if ((osl_writeFile(handle, begin, static_cast< sal_uInt32 >(length), &n) != in writeData()
124 void writeData(oslFileHandle handle, rtl::OString const & text) { in writeData() argument
125 writeData(handle, text.getStr(), text.getLength()); in writeData()
128 void writeAttributeValue(oslFileHandle handle, rtl::OUString const & value) { in writeAttributeValue() argument
137 writeData(handle, convertToUtf8(value, i, j - i)); in writeAttributeValue()
138 writeData(handle, RTL_CONSTASCII_STRINGPARAM("&#9;")); in writeAttributeValue()
142 writeData(handle, convertToUtf8(value, i, j - i)); in writeAttributeValue()
143 writeData(handle, RTL_CONSTASCII_STRINGPARAM("&#xA;")); in writeAttributeValue()
147 writeData(handle, convertToUtf8(value, i, j - i)); in writeAttributeValue()
148 writeData(handle, RTL_CONSTASCII_STRINGPARAM("&#xD;")); in writeAttributeValue()
152 writeData(handle, convertToUtf8(value, i, j - i)); in writeAttributeValue()
153 writeData(handle, RTL_CONSTASCII_STRINGPARAM("&quot;")); in writeAttributeValue()
157 writeData(handle, convertToUtf8(value, i, j - i)); in writeAttributeValue()
158 writeData(handle, RTL_CONSTASCII_STRINGPARAM("&amp;")); in writeAttributeValue()
162 writeData(handle, convertToUtf8(value, i, j - i)); in writeAttributeValue()
163 writeData(handle, RTL_CONSTASCII_STRINGPARAM("&lt;")); in writeAttributeValue()
170 writeData(handle, convertToUtf8(value, i, j - i)); in writeAttributeValue()
173 void writeValueContent(oslFileHandle handle, sal_Bool value) { in writeValueContent() argument
175 writeData(handle, RTL_CONSTASCII_STRINGPARAM("true")); in writeValueContent()
177 writeData(handle, RTL_CONSTASCII_STRINGPARAM("false")); in writeValueContent()
181 void writeValueContent(oslFileHandle handle, sal_Int16 value) { in writeValueContent() argument
182 writeData(handle, rtl::OString::valueOf(static_cast< sal_Int32 >(value))); in writeValueContent()
185 void writeValueContent(oslFileHandle handle, sal_Int32 value) { in writeValueContent() argument
186 writeData(handle, rtl::OString::valueOf(value)); in writeValueContent()
189 void writeValueContent(oslFileHandle handle, sal_Int64 value) { in writeValueContent() argument
190 writeData(handle, rtl::OString::valueOf(value)); in writeValueContent()
193 void writeValueContent(oslFileHandle handle, double value) { in writeValueContent() argument
194 writeData(handle, rtl::OString::valueOf(value)); in writeValueContent()
197 void writeValueContent(oslFileHandle handle, rtl::OUString const & value) { in writeValueContent() argument
205 writeData(handle, convertToUtf8(value, i, j - i)); in writeValueContent()
207 handle, RTL_CONSTASCII_STRINGPARAM("<unicode oor:scalar=\"")); in writeValueContent()
209 handle, rtl::OString::valueOf(static_cast< sal_Int32 >(c))); in writeValueContent()
210 writeData(handle, RTL_CONSTASCII_STRINGPARAM("\"/>")); in writeValueContent()
213 writeData(handle, convertToUtf8(value, i, j - i)); in writeValueContent()
214 writeData(handle, RTL_CONSTASCII_STRINGPARAM("&#xD;")); in writeValueContent()
217 writeData(handle, convertToUtf8(value, i, j - i)); in writeValueContent()
218 writeData(handle, RTL_CONSTASCII_STRINGPARAM("&amp;")); in writeValueContent()
221 writeData(handle, convertToUtf8(value, i, j - i)); in writeValueContent()
222 writeData(handle, RTL_CONSTASCII_STRINGPARAM("&lt;")); in writeValueContent()
227 writeData(handle, convertToUtf8(value, i, j - i)); in writeValueContent()
228 writeData(handle, RTL_CONSTASCII_STRINGPARAM("&gt;")); in writeValueContent()
232 writeData(handle, convertToUtf8(value, i, j - i)); in writeValueContent()
236 oslFileHandle handle, css::uno::Sequence< sal_Int8 > const & value) in writeValueContent() argument
242 writeData(handle, hexDigit + ((value[i] >> 4) & 0xF), 1); in writeValueContent()
243 writeData(handle, hexDigit + (value[i] & 0xF), 1); in writeValueContent()
248 oslFileHandle handle, css::uno::Any const & value) in writeSingleValue() argument
250 writeData(handle, RTL_CONSTASCII_STRINGPARAM(">")); in writeSingleValue()
253 writeValueContent(handle, val); in writeSingleValue()
254 writeData(handle, RTL_CONSTASCII_STRINGPARAM("</value>")); in writeSingleValue()
258 oslFileHandle handle, css::uno::Any const & value) in writeListValue() argument
260 writeData(handle, RTL_CONSTASCII_STRINGPARAM(">")); in writeListValue()
265 writeData(handle, RTL_CONSTASCII_STRINGPARAM(" ")); in writeListValue()
267 writeValueContent(handle, val[i]); in writeListValue()
269 writeData(handle, RTL_CONSTASCII_STRINGPARAM("</value>")); in writeListValue()
273 oslFileHandle handle, css::uno::Any const & value) in writeItemListValue() argument
275 writeData(handle, RTL_CONSTASCII_STRINGPARAM(">")); in writeItemListValue()
279 writeData(handle, RTL_CONSTASCII_STRINGPARAM("<it>")); in writeItemListValue()
280 writeValueContent(handle, val[i]); in writeItemListValue()
281 writeData(handle, RTL_CONSTASCII_STRINGPARAM("</it>")); in writeItemListValue()
283 writeData(handle, RTL_CONSTASCII_STRINGPARAM("</value>")); in writeItemListValue()
286 void writeValue(oslFileHandle handle, Type type, css::uno::Any const & value) { in writeValue() argument
289 writeSingleValue< sal_Bool >(handle, value); in writeValue()
292 writeSingleValue< sal_Int16 >(handle, value); in writeValue()
295 writeSingleValue< sal_Int32 >(handle, value); in writeValue()
298 writeSingleValue< sal_Int64 >(handle, value); in writeValue()
301 writeSingleValue< double >(handle, value); in writeValue()
304 writeSingleValue< rtl::OUString >(handle, value); in writeValue()
307 writeSingleValue< css::uno::Sequence< sal_Int8 > >(handle, value); in writeValue()
310 writeListValue< sal_Bool >(handle, value); in writeValue()
313 writeListValue< sal_Int16 >(handle, value); in writeValue()
316 writeListValue< sal_Int32 >(handle, value); in writeValue()
319 writeListValue< sal_Int64 >(handle, value); in writeValue()
322 writeListValue< double >(handle, value); in writeValue()
325 writeItemListValue< rtl::OUString >(handle, value); in writeValue()
328 writeItemListValue< css::uno::Sequence< sal_Int8 > >(handle, value); in writeValue()
336 Components & components, oslFileHandle handle, in writeNode() argument
361 writeData(handle, RTL_CONSTASCII_STRINGPARAM("<prop oor:name=\"")); in writeNode()
362 writeAttributeValue(handle, name); in writeNode()
363 writeData(handle, RTL_CONSTASCII_STRINGPARAM("\" oor:op=\"fuse\"")); in writeNode()
371 handle, RTL_CONSTASCII_STRINGPARAM(" oor:type=\"")); in writeNode()
373 handle, typeNames[type].begin, typeNames[type].length); in writeNode()
374 writeData(handle, RTL_CONSTASCII_STRINGPARAM("\"")); in writeNode()
377 writeData(handle, "><value"); in writeNode()
380 handle, RTL_CONSTASCII_STRINGPARAM(" xsi:nil=\"true\"/>")); in writeNode()
382 writeValue(handle, type, prop->getValue(components)); in writeNode()
384 writeData(handle, "</prop>"); in writeNode()
388 writeData(handle, RTL_CONSTASCII_STRINGPARAM("<prop oor:name=\"")); in writeNode()
389 writeAttributeValue(handle, name); in writeNode()
390 writeData(handle, RTL_CONSTASCII_STRINGPARAM("\" oor:op=\"fuse\">")); in writeNode()
394 writeNode(components, handle, node, i->first, i->second); in writeNode()
396 writeData(handle, RTL_CONSTASCII_STRINGPARAM("</prop>")); in writeNode()
400 writeData(handle, RTL_CONSTASCII_STRINGPARAM("<value")); in writeNode()
402 writeData(handle, RTL_CONSTASCII_STRINGPARAM(" xml:lang=\"")); in writeNode()
403 writeAttributeValue(handle, name); in writeNode()
404 writeData(handle, RTL_CONSTASCII_STRINGPARAM("\"")); in writeNode()
416 handle, RTL_CONSTASCII_STRINGPARAM(" oor:type=\"")); in writeNode()
418 handle, typeNames[type].begin, typeNames[type].length); in writeNode()
419 writeData(handle, RTL_CONSTASCII_STRINGPARAM("\"")); in writeNode()
424 handle, RTL_CONSTASCII_STRINGPARAM(" xsi:nil=\"true\"/>")); in writeNode()
426 writeValue(handle, type, value); in writeNode()
432 writeData(handle, RTL_CONSTASCII_STRINGPARAM("<node oor:name=\"")); in writeNode()
433 writeAttributeValue(handle, name); in writeNode()
436 handle, RTL_CONSTASCII_STRINGPARAM("\" oor:op=\"replace")); in writeNode()
438 writeData(handle, RTL_CONSTASCII_STRINGPARAM("\">")); in writeNode()
442 writeNode(components, handle, node, i->first, i->second); in writeNode()
444 writeData(handle, RTL_CONSTASCII_STRINGPARAM("</node>")); in writeNode()
450 Components & components, oslFileHandle handle, in writeModifications() argument
461 writeData(handle, RTL_CONSTASCII_STRINGPARAM("<item oor:path=\"")); in writeModifications()
462 writeAttributeValue(handle, parentPathRepresentation); in writeModifications()
463 writeData(handle, RTL_CONSTASCII_STRINGPARAM("\">")); in writeModifications()
465 writeNode(components, handle, parent, nodeName, node); in writeModifications()
469 writeData(handle, RTL_CONSTASCII_STRINGPARAM("<value")); in writeModifications()
472 handle, RTL_CONSTASCII_STRINGPARAM(" xml:lang=\"")); in writeModifications()
473 writeAttributeValue(handle, nodeName); in writeModifications()
474 writeData(handle, RTL_CONSTASCII_STRINGPARAM("\"")); in writeModifications()
477 handle, RTL_CONSTASCII_STRINGPARAM(" oor:op=\"remove\"/>")); in writeModifications()
483 handle, RTL_CONSTASCII_STRINGPARAM("<prop oor:name=\"")); in writeModifications()
484 writeAttributeValue(handle, nodeName); in writeModifications()
486 handle, in writeModifications()
491 handle, RTL_CONSTASCII_STRINGPARAM("<node oor:name=\"")); in writeModifications()
492 writeAttributeValue(handle, nodeName); in writeModifications()
494 handle, in writeModifications()
502 writeData(handle, RTL_CONSTASCII_STRINGPARAM("</item>")); in writeModifications()
514 components, handle, pathRep, node, i->first, in writeModifications()
545 switch (osl::FileBase::createTempFile(&dir, &tmp.handle, &tmp.url)) { in writeModFile()
562 tmp.handle, in writeModFile()
576 components, tmp.handle, rtl::OUString(), rtl::Reference< Node >(), in writeModFile()
580 writeData(tmp.handle, RTL_CONSTASCII_STRINGPARAM("</oor:items>")); in writeModFile()
581 oslFileError e = osl_closeFile(tmp.handle); in writeModFile()
595 tmp.handle = 0; in writeModFile()