Lines Matching defs:file

1368 					// cache up the file type and preferred app
1385 // this handles the case of a file panel when the directory is
1610 // We never want to create poses for those volumes; the file
2549 // from Tracker to all open file panels as well
3301 // copy the data from the template file
3318 // copy the attributes from the template file
4048 // in order to handle a clipping file, the drag initiator must be able
4128 BFile file(&entry, O_RDONLY);
4129 BNodeInfo mime(&file);
4171 // build a file name
4181 // create a clipping file
4297 // tenatively figure out the pose we dropped the file onto
4334 // figure out if we dropped a file onto a directory and set the targetDirectory
4412 BFile file;
4413 if (CreateClippingFile(poseView, file, name, &targetDirectory, message,
4418 // here is a file for the drag initiator, it is up to it now to stuff it
4448 // copy over all the file types the drag initiator claimed to
4551 // text dropped, make into a clipping file
4565 BFile file;
4566 if (CreateClippingFile(poseView, file, name, &targetDirectory, message,
4571 // write out the file
4572 if (file.Seek(0, SEEK_SET) == B_ERROR
4573 || file.Write(text, (size_t)textLength) < 0
4574 || file.SetSize(textLength) != B_OK) {
4575 // failed to write file, remove file and bail
4576 file.Unset();
4579 PRINT(("error writing text into file %s\n", name));
4582 // pick up TextView styles if available and save them with the file
4590 file.WriteAttr("styles", B_RAW_TYPE, 0, data, (size_t)tmpSize);
4594 // mark as a clipping file
4596 file.WriteAttr(kAttrClippingFile, B_RAW_TYPE, 0, &tmp, sizeof(int32));
4598 // set the file type
4599 BNodeInfo info(&file);
4607 // bitmap, make into a clipping file
4620 BFile file;
4621 if (CreateClippingFile(poseView, file, name, &targetDirectory, message,
4633 // write out the file
4634 if (file.Seek(0, SEEK_SET) == B_ERROR
4635 || file.Write(buffer, (size_t)size) < 0
4636 || file.SetSize(size) != B_OK) {
4637 // failed to write file, remove file and bail
4638 file.Unset();
4641 PRINT(("error writing bitmap into file %s\n", name));
4644 // mark as a clipping file
4646 file.WriteAttr(kAttrClippingFile, B_RAW_TYPE, 0, &tmp, sizeof(int32));
4648 // set the file type
4649 BNodeInfo info(&file);
5227 // file has been deleted so we close the window
5356 // cache up the file type and preferred app
7257 // Make sure that every file added to the message has its
8636 // This happened most with file panels, when opening a parent - added