Lines Matching refs:text

13 /*!	BTextView displays and manages styled text. */
20 // to refresh only changed parts of text (currently we often redraw the whole
21 // text)
163 // text to be hidden
224 "Returns the length of the text in bytes.", 0,
231 "Returns the text in the specified range in the BTextView.", 0,
238 "Removes or inserts text into the specified range in the BTextView.", 0,
245 "Returns the style information for the text in the specified range in "
253 "Sets the style information for the text in the specified range in the "
264 \param textRect Determines the area of the text within the BTextView object.
281 \param textRect Determines the area of the text within the BTextView object.
282 \param initialFont The BTextView will display its text using this font,
284 \param initialColor The BTextView will display its text using this color,
314 \param initialFont The BTextView will display its text using this font,
316 \param initialColor The BTextView will display its text using this color,
343 const char *text = NULL;
344 if (archive->FindString("_text", &text) == B_OK)
345 SetText(text);
644 // Deselect any previously selected text
1093 status_t err = data->AddString("suites", "suite/vnd.Be-text-view");
1191 // recalc line breaks and draw the text
1226 // apply null-style to inserted text
1230 // recalc line breaks and draw the text
1271 /*! \brief Deletes the text within the current selection.
1280 /*! \brief Delets the text comprised within the given offsets.
1281 \param startOffset The offset of the text to delete.
1282 \param endOffset The offset where the text to delete ends.
1330 /*! \brief Returns the BTextView text as a C string.
1331 \return A pointer to the text.
1334 on the text, to be able to return it as a C string.
1344 /*! \brief Returns the length of the BTextView's text.
1345 \return The length of the text.
1410 \param clipboard The clipboard where to copy the cutted text.
1428 \param clipboard The clipboard where to copy the selected text.
1441 const char* text = fText->GetString(fSelStart, &numBytes);
1442 clip->AddData("text/plain", B_MIME_TYPE, text, numBytes);
1458 /*! \brief Paste the text contained in the clipboard to the BTextView.
1472 const char *text = NULL;
1475 if (clip->FindData("text/plain", B_MIME_TYPE,
1476 (const void **)&text, &length) == B_OK) {
1485 _FilterDisallowedChars((char*)text, length, runArray);
1495 fUndo = new PasteUndoBuffer(this, text, length, runArray,
1502 Insert(text, length, runArray);
1511 /*! \brief Deletes the currently selected text.
1534 result = data && data->HasData("text/plain", B_MIME_TYPE);
1546 && inMessage->HasData("text/plain", B_MIME_TYPE);
1550 /*! \brief Selects the text within the given offsets.
1551 \param startOffset The offset of the text to select.
1552 \param endOffset The offset where the text ends.
1627 /*! \brief Selects all the text within the BTextView.
1678 // When the text view is not stylable, we always set the whole text's
1744 // When the text view is not stylable, we always set the whole text's
1772 /*! \brief Returns a RunArray for the text within the given offsets.
1774 \param endOffset The offset where the wanted text ends.
1777 \return A text_run_array for the text in the given offsets.
1876 // Handle the case where there is only one line (no text inserted)
1903 // convert from text rect coordinates
1937 // special case: if point is within the text rect and PixelToLine()
1947 // convert to text rect coordinates
2061 // wrapping is always allowed at end of text and at newlines
2142 // We probably don't have text content yet. Take the initial
2158 /*! \brief Returns the height of the text comprised between the two given lines.
2252 /*! \brief Scrolls the text so that the character at "inOffset" is within the
2298 /*! \brief Scrolls the text so that the character which begins the current
2309 /*! \brief Highlight the text comprised between the given offset.
2310 \param startOffset The offset of the text to highlight.
2311 \param endOffset The offset where the text to highlight ends.
2341 /*! \brief Sets the BTextView's text rectangle to be the same as the passed
2362 /*! \brief Returns the current BTextView's text rectangle.
2363 \return The current text rectangle.
2376 // reset text rect to bounds minus insets ...
2383 // and rewrap (potentially adjusting the right and the bottom of the text
2387 // Make sure that the dirty area outside the text is redrawn too.
2394 /*! \brief Sets the insets from the bounds for the BTextView's text rectangle.
2415 /*! \brief Returns the insets from the bounds for the BTextView's text
2518 // TextControls change the color of the text when
2600 // Delete the text after fMaxBytes, but
2648 /*! \brief Sets the way text is aligned within the text rectangle.
2668 /*! \brief Returns the current alignment of the text.
2678 /*! \brief Sets wheter a new line of text is automatically indented.
2891 // assume that all text is supposed to be visible.
3173 // add the text to the buffer
3182 // offset the caret/selection, if the text was inserted before it
3192 // apply null-style to inserted text
3219 // remove from the text buffer
3282 // add the text
3284 const char* text = fText->GetString(fSelStart, &numBytes);
3285 drag->AddData("text/plain", B_MIME_TYPE, text, numBytes);
3321 \param textRect The BTextView's text rect.
3323 \param initialColor The initial color of the text.
3353 // NOTE: The only places where text rect is changed:
3357 // text rect is changed to maintain constant insets.
3828 /*! \brief Redraw the text comprised between the two given offsets,
3861 // the text area has changed
3878 // erase the area below the text
3887 // update the scroll bars if the text area has changed
3913 // problem: If the text rect is too small, we are not calculating any
3976 // update the text rect
4044 // wrap the text
4264 /*! \brief Calculate the width of the text within the given limits.
4266 \param length The length of the text to examine.
4271 \return The width for the text within the given limits.
4305 const char* text = fText->GetString(fromOffset, &numBytes);
4306 result += font->StringWidth(text, numBytes);
4359 // recalc line breaks and draw the text
4410 // do we have any text to draw?
4455 // Highlight in blue the inputted text
4507 // clip the text
4667 \param offset The offset (zero based within the object's text) where to
4917 const char *text = NULL;
4919 if (inMessage->FindData("text/plain", B_MIME_TYPE, (const void **)&text,
4928 _FilterDisallowedChars((char*)text, dataLength, runArray);
4937 fUndo = new DropUndoBuffer(this, text, dataLength, runArray,
4947 Insert(dropOffset, text, dataLength, runArray);
5075 /*! \brief Autoresizes the view to fit the contained text.
5106 // erase any potential left over outside the text rect
5373 text.
5391 BTextView's text.
5533 // Delete the previously inserted text (if any)
5783 BTextView::_FilterDisallowedChars(char* text, ssize_t& length,
5789 if (fDisallowedChars->IsEmpty() || !text)
5801 reinterpret_cast<void *>(text[stringIndex]))) {
5802 memmove(text + stringIndex, text + stringIndex + 1,
5815 reinterpret_cast<void *>(text[stringIndex]))) {
5816 memmove(text + stringIndex, text + stringIndex + 1,