Lines Matching refs:file

66 // Returns a BBitmap object for the bitmap file or resource
68 // to open kName as a file, then as a resource.
72 // Parameters: kName, the name of the bitmap file or resource to
78 // Returns: NULL, if the file could not be opened and the
87 // Try loading a bitmap from the file named name
124 // Load the bitmap resource from the application file
147 // and name does not uniquely identify a resource in a file.
171 // Load the bitmap resource from the application file
188 // Returns a BBitmap object for the bitmap file named kName.
193 // Parameters: kName, the name of the bitmap file
198 // Returns: NULL, if the file couldn't be opened or couldn't
200 // BBitmap * to the bitmap file named kName
237 // Returns a BBitmap object for the bitmap file with the entry_ref
242 // Parameters: kRef, the entry_ref for the bitmap file
247 // Returns: NULL, if the file couldn't be opened or couldn't
249 // BBitmap * to the bitmap file referenced by kRef
293 // Translate the file from whatever format it is in the file
345 // Translate the file from whatever format it is to B_STYLED_TEXT_FORMAT
453 plain text data to the file, but puts the styled text data in
458 data to a file, and you want it to behave the way StyledEdit does,
599 \brief Writes the styled text data from \a view to the specified \a file.
603 plain text data in the file and stores the styled data as
611 \param file the file where the styled text is written to
615 B_OK, if successful, and any possible file error
619 BTranslationUtils::WriteStyledEditFile(BTextView* view, BFile* file, const char *encoding)
621 if (view == NULL || file == NULL)
632 // move to the start of the file if not already there
633 status_t status = file->Seek(0, SEEK_SET);
642 // Write plain text data to file
643 ssize_t bytesWritten = file->Write(text, textLength);
655 file->WriteAttr("be:encoding", B_INT32_TYPE, 0, &value, sizeof(value));
673 ssize_t bytesWritten = file->Write(buffer, bufferSize);
683 file->WriteAttrString("be:encoding", &encodingStr);
687 status = file->SetSize(textLength);
696 BNodeInfo info(file);
699 // This file doesn't have a file type yet, so let's set it
706 ssize_t bytesWritten = file->WriteAttr("wrap", B_INT32_TYPE, 0,
713 bytesWritten = file->WriteAttr("alignment", B_INT32_TYPE, 0,
725 file->WriteAttr("styles", B_RAW_TYPE, 0, flattenedRunArray,
742 BTranslationUtils::WriteStyledEditFile(BTextView* view, BFile* file)
744 return WriteStyledEditFile(view, file, NULL);