Lines Matching defs:text

19 // 	 to refresh only changed parts of text (currently we often redraw the whole
20 // text)
208 "Returns the length of the text in bytes.", 0,
215 "Returns the text in the specified range in the BTextView.", 0,
222 "Removes or inserts text into the specified range in the BTextView.", 0,
229 "Returns the style information for the text in the specified range in "
237 "Sets the style information for the text in the specified range in the "
347 const char* text = NULL;
348 if (archive->FindString("_text", &text) == B_OK)
349 SetText(text);
620 // Deselect any previously selected text
813 // will update scroll bars if text rect changes
817 // move text rect into position and redraw.
1067 status_t err = data->AddString("suites", "suite/vnd.Be-text-view");
1137 BTextView::SetText(const char* text, const text_run_array* runs)
1139 SetText(text, text ? strlen(text) : 0, runs);
1144 BTextView::SetText(const char* text, int32 length, const text_run_array* runs)
1161 if (text != NULL && length > 0)
1162 InsertText(text, length, 0, runs);
1164 // bounds are invalid, set them based on text
1172 // recalculate line breaks and draw the text
1207 // apply null-style to inserted text
1211 // recalculate line breaks and draw the text
1222 BTextView::Insert(const char* text, const text_run_array* runs)
1224 if (text != NULL)
1225 _DoInsertText(text, strlen(text), fSelStart, runs);
1230 BTextView::Insert(const char* text, int32 length, const text_run_array* runs)
1232 if (text != NULL && length > 0)
1233 _DoInsertText(text, strnlen(text, length), fSelStart, runs);
1238 BTextView::Insert(int32 offset, const char* text, int32 length,
1247 if (text != NULL && length > 0)
1248 _DoInsertText(text, strnlen(text, length), offset, runs);
1388 const char* text = fText->GetString(fSelStart, &numBytes);
1389 clip->AddData("text/plain", B_MIME_TYPE, text, numBytes);
1416 const char* text = NULL;
1419 if (clip->FindData("text/plain", B_MIME_TYPE,
1420 (const void**)&text, &length) == B_OK) {
1429 _FilterDisallowedChars((char*)text, length, runArray);
1439 fUndo = new PasteUndoBuffer(this, text, length, runArray,
1446 Insert(text, length, runArray);
1476 result = data && data->HasData("text/plain", B_MIME_TYPE);
1488 && message->HasData("text/plain", B_MIME_TYPE);
1610 // When the text view is not stylable, we always set the whole text's
1674 // when the text view is not stylable, we always set the whole text's
1786 // Handle the case where there is only one line (no text inserted)
1813 // convert from text rect coordinates
1843 // special case: if point is within the text rect and PixelToLine()
1853 // convert to text rect coordinates
1957 // wrapping is always allowed at end of text and at newlines
2032 // We probably don't have text content yet. Take the initial
2188 // Update text rect position and scroll bars
2259 // reset text rect to bounds minus insets ...
2266 // and rewrap (potentially adjusting the right and the bottom of the text
2270 // Make sure that the dirty area outside the text is redrawn too.
2374 // TextControls change the color of the text when
2424 // redraw text rect and update scroll bars if bounds have changed
2454 // Delete the text after fMaxBytes, but
2503 // text rect position and scroll bars may change
2702 // When not editable, we assume that all text is supposed to be visible.
2744 // Restore the text rect since we were not supposed to change it in this method.
3005 BTextView::InsertText(const char* text, int32 length, int32 offset,
3019 // add the text to the buffer
3020 fText->InsertText(text, length, offset);
3028 // offset the caret/selection, if the text was inserted before it
3038 // apply null-style to inserted text
3066 // remove from the text buffer
3133 // add the text
3135 const char* text = fText->GetString(fSelStart, &numBytes);
3136 drag->AddData("text/plain", B_MIME_TYPE, text, numBytes);
3177 \param textRect The BTextView's text rect.
3179 \param initialColor The initial color of the text.
3219 // NOTE: The only places where text rect is changed:
3221 // text rect maintains constant insets, use SetInsets() to change.
3775 /*! Redraw the text between the two given offsets, recalculating line-breaks
3809 // the text area has changed
3826 // erase the area below the text
3835 // update the scroll bars if the text area has changed
3858 // don't try to compute anything if the text rect is not set
3928 // update text rect
3932 // always set text rect bottom
3970 // text rect right must be greater than left
3973 // text rect bottom must be greater than top
4034 // wrap the text
4292 /*! Calculate the width of the text within the given limits.
4295 \param length The length of the text to examine.
4299 \return The width for the text within the given limits.
4333 const char* text = fText->GetString(fromOffset, &numBytes);
4334 result += font->StringWidth(text, numBytes);
4366 BTextView::_DoInsertText(const char* text, int32 length, int32 offset,
4382 InsertText(text, length, offset, runs);
4384 // recalc line breaks and draw the text
4435 // do we have any text to draw?
4480 // Highlight in blue the inputted text
4554 // clip the text extending to end of selection
4711 \param offset The offset (zero based within the object's text) where to
4954 const char* text = NULL;
4956 if (message->FindData("text/plain", B_MIME_TYPE, (const void**)&text,
4965 _FilterDisallowedChars((char*)text, dataLength, runArray);
4974 fUndo = new DropUndoBuffer(this, text, dataLength, runArray,
4984 Insert(dropOffset, text, dataLength, runArray);
5007 // prevent horizontal scrolling if text rect is inside view rect
5019 // prevent vertical scrolling if text rect is inside view rect
5106 //! Autoresizes the view to fit the contained text.
5128 // reposition text view
5131 // scroll rect to start, there is room for full text
5702 // Delete the previously inserted text (if any)
5959 BTextView::_FilterDisallowedChars(char* text, ssize_t& length,
5965 if (fDisallowedChars->IsEmpty() || !text)
5977 reinterpret_cast<void*>(text[stringIndex]))) {
5978 memmove(text + stringIndex, text + stringIndex + 1,
5991 reinterpret_cast<void*>(text[stringIndex]))) {
5992 memmove(text + stringIndex, text + stringIndex + 1,
6011 // text to be hidden
6021 // only add default insets if text rect is set to bounds