#include <edit.hxx>


Public Member Functions | |
| SAL_DLLPRIVATE bool | ImplUseNativeBorder (WinBits nStyle) |
| Edit (Window *pParent, WinBits nStyle=WB_BORDER) | |
| Edit (Window *pParent, const ResId &rResId) | |
| Edit (Window *pParent, const ResId &rResId, bool bDisableAccessibleLabeledByRelation) | |
| virtual | ~Edit () |
| virtual void | MouseButtonDown (const MouseEvent &rMEvt) |
| virtual void | MouseButtonUp (const MouseEvent &rMEvt) |
| virtual void | KeyInput (const KeyEvent &rKEvt) |
| virtual void | Paint (const Rectangle &rRect) |
| virtual void | Resize () |
| virtual void | Draw (OutputDevice *pDev, const Point &rPos, const Size &rSize, ULONG nFlags) |
| virtual void | GetFocus () |
| virtual void | LoseFocus () |
| virtual void | Tracking (const TrackingEvent &rTEvt) |
| virtual void | Command (const CommandEvent &rCEvt) |
| virtual void | StateChanged (StateChangedType nType) |
| virtual void | DataChanged (const DataChangedEvent &rDCEvt) |
| virtual Window * | GetPreferredKeyInputWindow () |
| virtual void | Modify () |
| virtual void | UpdateData () |
| virtual void | SetModifyFlag () |
| virtual void | ClearModifyFlag () |
| virtual BOOL | IsModified () const |
| virtual void | EnableUpdateData (ULONG nTimeout=EDIT_UPDATEDATA_TIMEOUT) |
| virtual void | DisableUpdateData () |
| virtual ULONG | IsUpdateDataEnabled () const |
| void | SetEchoChar (xub_Unicode c) |
| xub_Unicode | GetEchoChar () const |
| virtual void | SetReadOnly (BOOL bReadOnly=TRUE) |
| virtual BOOL | IsReadOnly () const |
| void | SetInsertMode (BOOL bInsert) |
| BOOL | IsInsertMode () const |
| virtual void | SetMaxTextLen (xub_StrLen nMaxLen=EDIT_NOLIMIT) |
| virtual xub_StrLen | GetMaxTextLen () const |
| virtual void | SetSelection (const Selection &rSelection) |
| virtual const Selection & | GetSelection () const |
| virtual void | ReplaceSelected (const XubString &rStr) |
| virtual void | DeleteSelected () |
| virtual XubString | GetSelected () const |
| virtual void | Cut () |
| virtual void | Copy () |
| virtual void | Paste () |
| void | Undo () |
| virtual void | SetText (const XubString &rStr) |
| virtual void | SetText (const XubString &rStr, const Selection &rNewSelection) |
| virtual XubString | GetText () const |
| void | SaveValue () |
| const XubString & | GetSavedValue () const |
| virtual void | SetModifyHdl (const Link &rLink) |
| virtual const Link & | GetModifyHdl () const |
| virtual void | SetUpdateDataHdl (const Link &rLink) |
| virtual const Link & | GetUpdateDataHdl () const |
| void | SetSubEdit (Edit *pEdit) |
| Edit * | GetSubEdit () const |
| void | SetAutocompleteHdl (const Link &rHdl) |
| const Link & | GetAutocompleteHdl () const |
| AutocompleteAction | GetAutocompleteAction () const |
| virtual Size | CalcMinimumSize () const |
| virtual Size | GetOptimalSize (WindowSizeType eType) const |
| virtual Size | CalcSize (USHORT nChars) const |
| virtual xub_StrLen | GetMaxVisChars () const |
| xub_StrLen | GetCharPos (const Point &rWindowPos) const |
| virtual XubString | GetSurroundingText () const |
| virtual Selection | GetSurroundingTextSelection () const |
Static Public Member Functions | |
| static BOOL | IsCharInput (const KeyEvent &rKEvt) |
| static void | ShowTruncationWarning (Window *pParent) |
| static void | SetGetSpecialCharsFunction (FncGetSpecialChars fn) |
| static FncGetSpecialChars | GetGetSpecialCharsFunction () |
| static PopupMenu * | CreatePopupMenu () |
| static void | DeletePopupMenu (PopupMenu *pMenu) |
Protected Member Functions | |
| SAL_DLLPRIVATE void | ImplInit (Window *pParent, WinBits nStyle) |
| SAL_DLLPRIVATE WinBits | ImplInitStyle (WinBits nStyle) |
| SAL_DLLPRIVATE void | ImplInitSettings (BOOL bFont, BOOL bForeground, BOOL bBackground) |
| SAL_DLLPRIVATE void | ImplLoadRes (const ResId &rResId) |
| SAL_DLLPRIVATE void | ImplSetSelection (const Selection &rSelection, BOOL bPaint=TRUE) |
| SAL_DLLPRIVATE int | ImplGetNativeControlType () |
| virtual void | dragGestureRecognized (const ::com::sun::star::datatransfer::dnd::DragGestureEvent &dge) throw (::com::sun::star::uno::RuntimeException) |
| virtual void | dragDropEnd (const ::com::sun::star::datatransfer::dnd::DragSourceDropEvent &dsde) throw (::com::sun::star::uno::RuntimeException) |
| virtual void | drop (const ::com::sun::star::datatransfer::dnd::DropTargetDropEvent &dtde) throw (::com::sun::star::uno::RuntimeException) |
| virtual void | dragEnter (const ::com::sun::star::datatransfer::dnd::DropTargetDragEnterEvent &dtdee) throw (::com::sun::star::uno::RuntimeException) |
| virtual void | dragExit (const ::com::sun::star::datatransfer::dnd::DropTargetEvent &dte) throw (::com::sun::star::uno::RuntimeException) |
| virtual void | dragOver (const ::com::sun::star::datatransfer::dnd::DropTargetDragEvent &dtde) throw (::com::sun::star::uno::RuntimeException) |
| virtual void | FillLayoutData () const |
| Edit (WindowType nType) | |
Static Protected Member Functions | |
| static SAL_DLLPRIVATE void | ImplInvalidateOutermostBorder (Window *pWin) |
Protected Attributes | |
| ::com::sun::star::uno::Reference < ::com::sun::star::datatransfer::dnd::XDragSourceListener > | mxDnDListener |
Private Member Functions | |
| DECL_DLLPRIVATE_LINK (ImplUpdateDataHdl, Timer *) | |
| SAL_DLLPRIVATE bool | ImplTruncateToMaxLen (rtl::OUString &, sal_uInt32 nSelectionLen) const |
| SAL_DLLPRIVATE void | ImplInitEditData () |
| SAL_DLLPRIVATE void | ImplModified () |
| SAL_DLLPRIVATE XubString | ImplGetText () const |
| SAL_DLLPRIVATE void | ImplRepaint (xub_StrLen nStart=0, xub_StrLen nEnd=STRING_LEN, bool bLayout=false) |
| SAL_DLLPRIVATE void | ImplInvalidateOrRepaint (xub_StrLen nStart=0, xub_StrLen nEnd=STRING_LEN) |
| SAL_DLLPRIVATE void | ImplDelete (const Selection &rSelection, BYTE nDirection, BYTE nMode) |
| SAL_DLLPRIVATE void | ImplSetText (const XubString &rStr, const Selection *pNewSelection=0) |
| SAL_DLLPRIVATE void | ImplInsertText (const XubString &rStr, const Selection *pNewSelection=0, sal_Bool bIsUserInput=sal_False) |
| SAL_DLLPRIVATE String | ImplGetValidString (const String &rString) const |
| SAL_DLLPRIVATE void | ImplClearBackground (long nXStart, long nXEnd) |
| SAL_DLLPRIVATE void | ImplShowCursor (BOOL bOnlyIfVisible=TRUE) |
| SAL_DLLPRIVATE void | ImplAlign () |
| SAL_DLLPRIVATE void | ImplAlignAndPaint () |
| SAL_DLLPRIVATE xub_StrLen | ImplGetCharPos (const Point &rWindowPos) const |
| SAL_DLLPRIVATE void | ImplSetCursorPos (xub_StrLen nChar, BOOL bSelect) |
| SAL_DLLPRIVATE void | ImplShowDDCursor () |
| SAL_DLLPRIVATE void | ImplHideDDCursor () |
| SAL_DLLPRIVATE BOOL | ImplHandleKeyEvent (const KeyEvent &rKEvt) |
| SAL_DLLPRIVATE void | ImplCopyToSelectionClipboard () |
| SAL_DLLPRIVATE void | ImplCopy (::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard > &rxClipboard) |
| SAL_DLLPRIVATE void | ImplPaste (::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard > &rxClipboard) |
| SAL_DLLPRIVATE long | ImplGetExtraOffset () const |
| SAL_DLLPRIVATE::com::sun::star::uno::Reference < ::com::sun::star::i18n::XExtendedInputSequenceChecker > | ImplGetInputSequenceChecker () const |
| SAL_DLLPRIVATE::com::sun::star::uno::Reference < ::com::sun::star::i18n::XBreakIterator > | ImplGetBreakIterator () const |
Private Attributes | |
| Edit * | mpSubEdit |
| Timer * | mpUpdateDataTimer |
| DDInfo * | mpDDInfo |
| Impl_IMEInfos * | mpIMEInfos |
| XubString | maText |
| XubString | maSaveValue |
| XubString | maUndoText |
| XubString | maRedoText |
| long | mnXOffset |
| Selection | maSelection |
| USHORT | mnAlign |
| xub_StrLen | mnMaxTextLen |
| AutocompleteAction | meAutocompleteAction |
| xub_Unicode | mcEchoChar |
| BOOL | mbModified:1 |
| BOOL | mbInternModified:1 |
| BOOL | mbReadOnly:1 |
| BOOL | mbInsertMode:1 |
| BOOL | mbClickedInSelection:1 |
| BOOL | mbIsSubEdit:1 |
| BOOL | mbInMBDown:1 |
| BOOL | mbActivePopup:1 |
| Link | maModifyHdl |
| Link | maUpdateDataHdl |
| Link | maAutocompleteHdl |
Definition at line 66 of file edit.hxx.
| Edit::Edit | ( | WindowType | nType | ) | [protected] |
Definition at line 194 of file edit.cxx.
References ImplInitEditData().
Referenced by SpinField::ImplInit(), and ComboBox::ImplInit().
| Edit::Edit | ( | Window * | pParent, | |
| const ResId & | rResId | |||
| ) |
Definition at line 211 of file edit.cxx.
References ImplInit(), ImplInitEditData(), Window::ImplInitRes(), ImplLoadRes(), Window::Show(), and WB_HIDE.
| Edit::Edit | ( | Window * | pParent, | |
| const ResId & | rResId, | |||
| bool | bDisableAccessibleLabeledByRelation | |||
| ) |
Definition at line 228 of file edit.cxx.
References Window::ImplGetWindowImpl(), ImplInit(), ImplInitEditData(), Window::ImplInitRes(), ImplLoadRes(), WindowImpl::mbDisableAccessibleLabeledByRelation, Window::Show(), and WB_HIDE.
| Edit::~Edit | ( | ) | [virtual] |
Definition at line 247 of file edit.cxx.
References Window::GetCursor(), Window::GetDragGestureRecognizer(), Window::GetDropTarget(), mpDDInfo, mpIMEInfos, mpUpdateDataTimer, mxDnDListener, and Window::SetCursor().
| Edit::DECL_DLLPRIVATE_LINK | ( | ImplUpdateDataHdl | , | |
| Timer * | ||||
| ) | [private] |
| bool Edit::ImplTruncateToMaxLen | ( | rtl::OUString & | rStr, | |
| sal_uInt32 | nSelectionLen | |||
| ) | const [private] |
Definition at line 840 of file edit.cxx.
References maText, and mnMaxTextLen.
Referenced by ImplInsertText().
| void Edit::ImplInitEditData | ( | ) | [private] |
Definition at line 282 of file edit.cxx.
References AUTOCOMPLETE_KEYINPUT, EDIT_ALIGN_LEFT, EDIT_NOLIMIT, OutputDevice::EnableRTL(), mbActivePopup, mbClickedInSelection, mbInMBDown, mbInsertMode, mbInternModified, mbIsSubEdit, mbModified, mbReadOnly, mcEchoChar, meAutocompleteAction, mnAlign, mnMaxTextLen, mnXOffset, mpDDInfo, mpIMEInfos, mpSubEdit, mpUpdateDataTimer, and mxDnDListener.
Referenced by Edit().
| void Edit::ImplModified | ( | ) | [private] |
Definition at line 391 of file edit.cxx.
References mbModified, and Modify().
Referenced by Command(), dragDropEnd(), drop(), ImplHandleKeyEvent(), and MouseButtonUp().
| XubString Edit::ImplGetText | ( | ) | const [private] |
Definition at line 458 of file edit.cxx.
References Window::GetStyle(), maText, mcEchoChar, and WB_PASSWORD.
Referenced by Draw(), ImplAlign(), ImplDelete(), ImplGetCharPos(), ImplRepaint(), and ImplShowCursor().
| void Edit::ImplRepaint | ( | xub_StrLen | nStart = 0, |
|
| xub_StrLen | nEnd = STRING_LEN, |
|||
| bool | bLayout = false | |||
| ) | [private] |
Definition at line 492 of file edit.cxx.
References Impl_IMEInfos::bCursor, OutputDevice::DrawRect(), OutputDevice::DrawText(), EXTTEXTINPUT_ATTR_BOLDUNDERLINE, EXTTEXTINPUT_ATTR_DASHDOTUNDERLINE, EXTTEXTINPUT_ATTR_DOTTEDUNDERLINE, EXTTEXTINPUT_ATTR_GRAYWAVELINE, EXTTEXTINPUT_ATTR_HALFTONETEXT, EXTTEXTINPUT_ATTR_HIGHLIGHT, EXTTEXTINPUT_ATTR_REDTEXT, EXTTEXTINPUT_ATTR_UNDERLINE, OutputDevice::GetCaretPositions(), Window::GetControlBackground(), Window::GetCursor(), StyleSettings::GetDisableColor(), StyleSettings::GetFieldColor(), OutputDevice::GetFont(), StyleSettings::GetHighlightColor(), StyleSettings::GetHighlightTextColor(), OutputDevice::GetOutputSize(), OutputDevice::GetOutputSizePixel(), OutputDevice::GetSettings(), Window::GetStyle(), AllSettings::GetStyleSettings(), OutputDevice::GetTextColor(), OutputDevice::GetTextHeight(), Window::HasFocus(), Cursor::Hide(), ImplClearBackground(), ImplGetExtraOffset(), ImplGetText(), ImplInitSettings(), ImplUseNativeBorder(), Region::Intersect(), Window::IsControlBackground(), Window::IsEnabled(), Window::IsPaintTransparent(), Window::IsReallyVisible(), Cursor::IsVisible(), vcl::ControlLayoutData::m_aDisplayText, vcl::ControlLayoutData::m_aUnicodeBoundRects, maSelection, mbActivePopup, mnXOffset, mpIMEInfos, Control::mpLayoutData, Impl_IMEInfos::nLen, Impl_IMEInfos::nPos, Impl_IMEInfos::pAttribs, OutputDevice::Pop(), OutputDevice::Push(), PUSH_FILLCOLOR, PUSH_LINECOLOR, OutputDevice::SetClipRegion(), OutputDevice::SetFillColor(), OutputDevice::SetFont(), OutputDevice::SetLineColor(), OutputDevice::SetTextColor(), OutputDevice::SetTextFillColor(), OutputDevice::SetTextLineColor(), Font::SetUnderline(), Cursor::Show(), UNDERLINE_BOLD, UNDERLINE_DOTTED, UNDERLINE_SINGLE, UNDERLINE_WAVE, Region::Union(), WB_FORCECTRLBACKGROUND, and WB_NOHIDESELECTION.
Referenced by FillLayoutData(), ImplInvalidateOrRepaint(), and Paint().
| void Edit::ImplInvalidateOrRepaint | ( | xub_StrLen | nStart = 0, |
|
| xub_StrLen | nEnd = STRING_LEN | |||
| ) | [private] |
Definition at line 477 of file edit.cxx.
References ImplGetSVData(), ImplRepaint(), Window::Invalidate(), Window::IsPaintTransparent(), and Window::Update().
Referenced by GetFocus(), ImplAlignAndPaint(), ImplSetSelection(), ImplShowCursor(), LoseFocus(), and StateChanged().
| void Edit::ImplDelete | ( | const Selection & | rSelection, | |
| BYTE | nDirection, | |||
| BYTE | nMode | |||
| ) | [private] |
Definition at line 712 of file edit.cxx.
References EDIT_DEL_LEFT, EDIT_DEL_RIGHT, EDIT_DELMODE_RESTOFCONTENT, EDIT_DELMODE_RESTOFWORD, AllSettings::GetLocale(), OutputDevice::GetSettings(), ImplAlignAndPaint(), ImplGetBreakIterator(), ImplGetText(), maSelection, maText, mbInternModified, and Control::mpLayoutData.
Referenced by DeleteSelected(), dragDropEnd(), drop(), ImplHandleKeyEvent(), SetMaxTextLen(), and Undo().
| void Edit::ImplSetText | ( | const XubString & | rStr, | |
| const Selection * | pNewSelection = 0 | |||
| ) | [private] |
Definition at line 1000 of file edit.cxx.
References Window::HasPaintEvent(), ImplAlign(), Window::ImplCallEventListeners(), ImplGetValidString(), ImplInsertText(), ImplSetSelection(), Window::Invalidate(), maSelection, maText, mnMaxTextLen, mnXOffset, Control::mpLayoutData, and VCLEVENT_EDIT_MODIFY.
Referenced by SetText().
| void Edit::ImplInsertText | ( | const XubString & | rStr, | |
| const Selection * | pNewSelection = 0, |
|||
| sal_Bool | bIsUserInput = sal_False | |||
| ) | [private] |
! get values from configuration. ! we can't use SvtCTLOptions here since vcl must not be linked ! against svtools. (It is already the other way around.)
Definition at line 856 of file edit.cxx.
References ImplAlignAndPaint(), ImplGetBreakIterator(), ImplGetInputSequenceChecker(), ImplGetValidString(), ImplTruncateToMaxLen(), maSelection, maText, mbInsertMode, mbInternModified, and Control::mpLayoutData.
Referenced by Command(), drop(), ImplHandleKeyEvent(), ImplSetText(), ReplaceSelected(), and Undo().
| String Edit::ImplGetValidString | ( | const String & | rString | ) | const [private] |
| void Edit::ImplClearBackground | ( | long | nXStart, | |
| long | nXEnd | |||
| ) | [private] |
Definition at line 1086 of file edit.cxx.
References OutputDevice::Erase(), Region::GetBoundRect(), OutputDevice::GetClipRegion(), AllSettings::GetLayoutRTL(), OutputDevice::GetOutputSizePixel(), Window::GetPaintRegion(), Window::GetParent(), Application::GetSettings(), Window::GetStyle(), Window::GetWindow(), ImplUseNativeBorder(), Region::IsNull(), Window::IsPaintTransparent(), OutputDevice::IsRTLEnabled(), mbIsSubEdit, Region::Move(), Window::OutputToScreenPixel(), Window::Paint(), Window::ScreenToOutputPixel(), OutputDevice::SetClipRegion(), and WINDOW_BORDER.
Referenced by ImplRepaint().
| void Edit::ImplShowCursor | ( | BOOL | bOnlyIfVisible = TRUE |
) | [private] |
Definition at line 1157 of file edit.cxx.
References OutputDevice::GetCaretPositions(), Window::GetCursor(), OutputDevice::GetOutputSizePixel(), OutputDevice::GetTextHeight(), OutputDevice::GetTextWidth(), ImplGetExtraOffset(), ImplGetText(), ImplInvalidateOrRepaint(), Window::IsReallyVisible(), Window::IsUpdateMode(), maSelection, mbInsertMode, mnXOffset, Cursor::SetPos(), Cursor::SetSize(), and Cursor::Show().
Referenced by DataChanged(), GetFocus(), ImplAlignAndPaint(), ImplSetSelection(), Resize(), SetInsertMode(), and StateChanged().
| void Edit::ImplAlign | ( | ) | [private] |
Definition at line 1239 of file edit.cxx.
References EDIT_ALIGN_CENTER, EDIT_ALIGN_LEFT, EDIT_ALIGN_RIGHT, OutputDevice::GetOutputSizePixel(), Window::GetParent(), OutputDevice::GetTextWidth(), ImplGetExtraOffset(), ImplGetText(), OutputDevice::IsRTLEnabled(), mbIsSubEdit, mnAlign, and mnXOffset.
Referenced by ImplAlignAndPaint(), ImplSetText(), Resize(), and StateChanged().
| void Edit::ImplAlignAndPaint | ( | ) | [private] |
Definition at line 1280 of file edit.cxx.
References ImplAlign(), ImplInvalidateOrRepaint(), and ImplShowCursor().
Referenced by Command(), ImplDelete(), and ImplInsertText().
| xub_StrLen Edit::ImplGetCharPos | ( | const Point & | rWindowPos | ) | const [private] |
Definition at line 1289 of file edit.cxx.
References OutputDevice::GetCaretPositions(), ImplGetExtraOffset(), ImplGetText(), and mnXOffset.
Referenced by dragGestureRecognized(), dragOver(), GetCharPos(), MouseButtonDown(), MouseButtonUp(), and Tracking().
| void Edit::ImplSetCursorPos | ( | xub_StrLen | nChar, | |
| BOOL | bSelect | |||
| ) | [private] |
Definition at line 1350 of file edit.cxx.
References ImplSetSelection(), and maSelection.
Referenced by MouseButtonDown(), MouseButtonUp(), and Tracking().
| void Edit::ImplShowDDCursor | ( | ) | [private] |
Definition at line 2449 of file edit.cxx.
References DDInfo::aCursor, DDInfo::bVisCursor, OutputDevice::GetOutputSize(), OutputDevice::GetTextHeight(), OutputDevice::GetTextWidth(), maText, mnXOffset, mpDDInfo, DDInfo::nDropPos, Cursor::SetPos(), Cursor::SetSize(), Cursor::SetWindow(), and Cursor::Show().
Referenced by dragOver().
| void Edit::ImplHideDDCursor | ( | ) | [private] |
Definition at line 2466 of file edit.cxx.
References DDInfo::aCursor, DDInfo::bVisCursor, Cursor::Hide(), and mpDDInfo.
Referenced by dragDropEnd(), dragExit(), dragOver(), and drop().
| BOOL Edit::ImplHandleKeyEvent | ( | const KeyEvent & | rKEvt | ) | [private] |
Definition at line 1521 of file edit.cxx.
References AUTOCOMPLETE_KEYINPUT, AUTOCOMPLETE_TABBACKWARD, AUTOCOMPLETE_TABFORWARD, Copy(), Cut(), EDIT_DEL_LEFT, EDIT_DEL_RIGHT, EDIT_DELMODE_RESTOFCONTENT, EDIT_DELMODE_RESTOFWORD, EDIT_DELMODE_SIMPLE, KeyEvent::GetCharCode(), KeyCode::GetCode(), OutputDevice::GetFont(), KeyCode::GetFunction(), KeyEvent::GetKeyCode(), AllSettings::GetLocale(), KeyCode::GetModifier(), GetSelection(), OutputDevice::GetSettings(), Window::GetStyle(), ImplCopyToSelectionClipboard(), ImplDelete(), ImplGetBreakIterator(), ImplInsertText(), ImplModified(), ImplSetSelection(), IsCharInput(), KeyCode::IsMod1(), KeyCode::IsMod2(), KeyCode::IsShift(), KEY_A, KEY_BACKSPACE, KEY_DELETE, KEY_END, KEY_HOME, KEY_INSERT, KEY_LEFT, KEY_RIGHT, KEY_S, KEY_TAB, KEYFUNC_COPY, KEYFUNC_CUT, KEYFUNC_DONTKNOW, KEYFUNC_PASTE, KEYFUNC_UNDO, maAutocompleteHdl, maSelection, maText, mbInsertMode, mbInternModified, mbReadOnly, meAutocompleteAction, mpIMEInfos, Control::mpLayoutData, Paste(), pImplFncGetSpecialChars, SetInsertMode(), SetSelection(), Undo(), and WB_PASSWORD.
Referenced by Command(), and KeyInput().
| void Edit::ImplCopyToSelectionClipboard | ( | ) | [private] |
Definition at line 1372 of file edit.cxx.
References Window::GetPrimarySelection(), GetSelection(), and ImplCopy().
Referenced by ImplHandleKeyEvent(), MouseButtonDown(), and Tracking().
| SAL_DLLPRIVATE void Edit::ImplCopy | ( | ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard > & | rxClipboard | ) | [private] |
Referenced by Copy(), and ImplCopyToSelectionClipboard().
| SAL_DLLPRIVATE void Edit::ImplPaste | ( | ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard > & | rxClipboard | ) | [private] |
Referenced by MouseButtonUp(), and Paste().
| long Edit::ImplGetExtraOffset | ( | ) | const [private] |
Definition at line 443 of file edit.cxx.
References Window::GetParent(), Window::GetStyle(), mbIsSubEdit, and WB_BORDER.
Referenced by ImplAlign(), ImplGetCharPos(), ImplRepaint(), and ImplShowCursor().
| Reference< i18n::XExtendedInputSequenceChecker > Edit::ImplGetInputSequenceChecker | ( | ) | const [private] |
! since we don't want to become incompatible in the next minor update ! where this code will get integrated into, xISC will be a local ! variable instead of a class member!
Definition at line 807 of file edit.cxx.
References x.
Referenced by ImplInsertText().
| Reference< i18n::XBreakIterator > Edit::ImplGetBreakIterator | ( | ) | const [private] |
! since we don't want to become incompatible in the next minor update ! where this code will get integrated into, xISC will be a local ! variable instead of a class member!
Definition at line 787 of file edit.cxx.
References x.
Referenced by ImplDelete(), ImplHandleKeyEvent(), ImplInsertText(), and MouseButtonDown().
Reimplemented in ComboBox, and SpinField.
Definition at line 327 of file edit.cxx.
References EDIT_ALIGN_CENTER, EDIT_ALIGN_LEFT, EDIT_ALIGN_RIGHT, Window::GetDragGestureRecognizer(), Window::GetDropTarget(), Window::ImplInit(), ImplInitSettings(), ImplInitStyle(), OutputDevice::IsRTLEnabled(), mbReadOnly, mnAlign, mxDnDListener, POINTER_TEXT, Window::SetCursor(), Window::SetPointer(), WB_CENTER, WB_LEFT, WB_READONLY, and WB_RIGHT.
Referenced by Edit(), SpinField::ImplInit(), and ComboBox::ImplInit().
Reimplemented in ComboBox.
Definition at line 367 of file edit.cxx.
References WB_GROUP, WB_NOGROUP, WB_NOTABSTOP, and WB_TABSTOP.
Referenced by ImplInit(), and StateChanged().
| void Edit::ImplInitSettings | ( | BOOL | bFont, | |
| BOOL | bForeground, | |||
| BOOL | bBackground | |||
| ) | [protected] |
Definition at line 399 of file edit.cxx.
References Window::GetControlBackground(), Window::GetControlFont(), Window::GetControlForeground(), StyleSettings::GetFieldColor(), StyleSettings::GetFieldFont(), StyleSettings::GetFieldTextColor(), OutputDevice::GetSettings(), Window::GetStyle(), AllSettings::GetStyleSettings(), ImplUseNativeBorder(), Window::IsControlBackground(), Window::IsControlFont(), Window::IsControlForeground(), Window::IsPaintTransparent(), Font::Merge(), Control::mpLayoutData, OutputDevice::SetBackground(), OutputDevice::SetFillColor(), OutputDevice::SetTextColor(), and Window::SetZoomedPointFont().
Referenced by Command(), DataChanged(), Draw(), ImplInit(), ImplRepaint(), SpinField::StateChanged(), and StateChanged().
| void Edit::ImplLoadRes | ( | const ResId & | rResId | ) | [protected] |
Reimplemented from Window.
Reimplemented in ComboBox, NumericField, MetricField, CurrencyField, DateField, TimeField, and LongCurrencyField.
Definition at line 1361 of file edit.cxx.
References Window::ImplLoadRes(), and SetMaxTextLen().
Referenced by Edit(), LongCurrencyField::ImplLoadRes(), TimeField::ImplLoadRes(), DateField::ImplLoadRes(), CurrencyField::ImplLoadRes(), MetricField::ImplLoadRes(), NumericField::ImplLoadRes(), ComboBox::ImplLoadRes(), PatternField::PatternField(), and SpinField::SpinField().
| void Edit::ImplSetSelection | ( | const Selection & | rSelection, | |
| BOOL | bPaint = TRUE | |||
| ) | [protected] |
Definition at line 2626 of file edit.cxx.
References Window::GetParent(), Window::GetType(), Window::ImplCallEventListeners(), ImplInvalidateOrRepaint(), ImplSetSelection(), ImplShowCursor(), Window::IsPaintTransparent(), maSelection, maText, mbIsSubEdit, Control::mpLayoutData, mpSubEdit, VCLEVENT_COMBOBOX_DESELECT, VCLEVENT_EDIT_SELECTIONCHANGED, and WINDOW_COMBOBOX.
Referenced by Command(), drop(), ImplHandleKeyEvent(), ImplSetCursorPos(), ImplSetSelection(), ImplSetText(), MouseButtonDown(), SetSelection(), and Undo().
| int Edit::ImplGetNativeControlType | ( | ) | [protected] |
Definition at line 1035 of file edit.cxx.
References CTRL_COMBOBOX, CTRL_EDITBOX, CTRL_EDITBOX_NOBORDER, CTRL_MULTILINE_EDITBOX, CTRL_SPINBOX, Window::GetParent(), Window::GetStyle(), Window::GetType(), Window::GetWindow(), mbIsSubEdit, WB_SPIN, WINDOW_BORDER, WINDOW_COMBOBOX, WINDOW_CURRENCYBOX, WINDOW_CURRENCYFIELD, WINDOW_DATEBOX, WINDOW_DATEFIELD, WINDOW_EDIT, WINDOW_LONGCURRENCYBOX, WINDOW_LONGCURRENCYFIELD, WINDOW_METRICBOX, WINDOW_METRICFIELD, WINDOW_MULTILINEEDIT, WINDOW_NUMERICBOX, WINDOW_NUMERICFIELD, WINDOW_PATTERNBOX, WINDOW_PATTERNFIELD, WINDOW_SPINFIELD, WINDOW_TIMEBOX, and WINDOW_TIMEFIELD.
Referenced by ImplUseNativeBorder().
| void Edit::ImplInvalidateOutermostBorder | ( | Window * | pWin | ) | [static, protected] |
Definition at line 1976 of file edit.cxx.
References Window::GetWindow(), Window::ImplGetFrame(), Window::Invalidate(), INVALIDATE_CHILDREN, INVALIDATE_UPDATE, and WINDOW_BORDER.
Referenced by GetFocus(), LoseFocus(), Modify(), and SpinField::PreNotify().
| void Edit::dragGestureRecognized | ( | const ::com::sun::star::datatransfer::dnd::DragGestureEvent & | dge | ) | throw (::com::sun::star::uno::RuntimeException) [protected, virtual] |
Reimplemented from vcl::unohelper::DragAndDropClient.
Definition at line 2916 of file edit.cxx.
References DDInfo::aDndStartSel, DDInfo::bStarterOfDD, Window::EndTracking(), Window::GetCursor(), GetSelected(), Application::GetSolarMutex(), Window::GetStyle(), Cursor::Hide(), ImplGetCharPos(), IsReadOnly(), Window::IsTracking(), maSelection, mpDDInfo, mxDnDListener, and WB_PASSWORD.
| void Edit::dragDropEnd | ( | const ::com::sun::star::datatransfer::dnd::DragSourceDropEvent & | dsde | ) | throw (::com::sun::star::uno::RuntimeException) [protected, virtual] |
Reimplemented from vcl::unohelper::DragAndDropClient.
Definition at line 2954 of file edit.cxx.
References DDInfo::aDndStartSel, DDInfo::bDroppedInMe, EDIT_DEL_RIGHT, EDIT_DELMODE_SIMPLE, Application::GetSolarMutex(), ImplDelete(), ImplHideDDCursor(), ImplModified(), mpDDInfo, and DDInfo::nDropPos.
| void Edit::drop | ( | const ::com::sun::star::datatransfer::dnd::DropTargetDropEvent & | dtde | ) | throw (::com::sun::star::uno::RuntimeException) [protected, virtual] |
Reimplemented from vcl::unohelper::DragAndDropClient.
Definition at line 2980 of file edit.cxx.
References DDInfo::bDroppedInMe, DDInfo::bStarterOfDD, EDIT_DEL_RIGHT, EDIT_DELMODE_SIMPLE, Application::GetSolarMutex(), ImplDelete(), ImplHideDDCursor(), ImplInsertText(), ImplModified(), ImplSetSelection(), maSelection, mbReadOnly, mpDDInfo, and DDInfo::nDropPos.
| void Edit::dragEnter | ( | const ::com::sun::star::datatransfer::dnd::DropTargetDragEnterEvent & | dtdee | ) | throw (::com::sun::star::uno::RuntimeException) [protected, virtual] |
Reimplemented from vcl::unohelper::DragAndDropClient.
Definition at line 3027 of file edit.cxx.
References mpDDInfo.
| void Edit::dragExit | ( | const ::com::sun::star::datatransfer::dnd::DropTargetEvent & | dte | ) | throw (::com::sun::star::uno::RuntimeException) [protected, virtual] |
Reimplemented from vcl::unohelper::DragAndDropClient.
Definition at line 3040 of file edit.cxx.
References Application::GetSolarMutex(), and ImplHideDDCursor().
| void Edit::dragOver | ( | const ::com::sun::star::datatransfer::dnd::DropTargetDragEvent & | dtde | ) | throw (::com::sun::star::uno::RuntimeException) [protected, virtual] |
Reimplemented from vcl::unohelper::DragAndDropClient.
Definition at line 3047 of file edit.cxx.
References DDInfo::bVisCursor, Application::GetSolarMutex(), ImplGetCharPos(), ImplHideDDCursor(), ImplShowDDCursor(), IsReadOnly(), maSelection, mpDDInfo, and DDInfo::nDropPos.
| void Edit::FillLayoutData | ( | ) | const [protected, virtual] |
Reimplemented from Control.
Reimplemented in ComboBox, and SpinField.
Definition at line 1856 of file edit.cxx.
References ImplRepaint(), and Control::mpLayoutData.
Referenced by SpinField::FillLayoutData().
| bool Edit::ImplUseNativeBorder | ( | WinBits | nStyle | ) |
Definition at line 312 of file edit.cxx.
References Window::GetParent(), Window::GetStyle(), HAS_BACKGROUND_TEXTURE, ImplGetNativeControlType(), Window::IsNativeControlSupported(), mbIsSubEdit, WB_BORDER, and WB_NOBORDER.
Referenced by ImplClearBackground(), PushButton::ImplDrawPushButton(), SpinField::ImplInit(), ImplInitSettings(), and ImplRepaint().
| void Edit::MouseButtonDown | ( | const MouseEvent & | rMEvt | ) | [virtual] |
Reimplemented from Window.
Reimplemented in SpinField.
Definition at line 1428 of file edit.cxx.
References MouseEvent::GetClicks(), AllSettings::GetLocale(), MouseEvent::GetPosPixel(), OutputDevice::GetSettings(), Window::GrabFocus(), Window::HasFocus(), ImplCopyToSelectionClipboard(), ImplGetBreakIterator(), ImplGetCharPos(), ImplSetCursorPos(), ImplSetSelection(), MouseEvent::IsLeft(), MouseEvent::IsShift(), maSelection, maText, mbClickedInSelection, mbInMBDown, Window::MouseButtonDown(), mpSubEdit, STARTTRACK_SCROLLREPEAT, and Window::StartTracking().
Referenced by SpinField::MouseButtonDown().
| void Edit::MouseButtonUp | ( | const MouseEvent & | rMEvt | ) | [virtual] |
Reimplemented from Window.
Reimplemented in SpinField.
Definition at line 1472 of file edit.cxx.
References MouseSettings::GetMiddleButtonAction(), AllSettings::GetMouseSettings(), MouseEvent::GetPosPixel(), Window::GetPrimarySelection(), OutputDevice::GetSettings(), ImplGetCharPos(), ImplModified(), ImplPaste(), ImplSetCursorPos(), MouseEvent::IsLeft(), MouseEvent::IsMiddle(), mbClickedInSelection, mbReadOnly, and MOUSE_MIDDLE_PASTESELECTION.
Referenced by SpinField::MouseButtonUp().
| void Edit::KeyInput | ( | const KeyEvent & | rKEvt | ) | [virtual] |
Reimplemented from Window.
Definition at line 1845 of file edit.cxx.
References ImplHandleKeyEvent(), Timer::IsActive(), Window::KeyInput(), mbIsSubEdit, mpSubEdit, mpUpdateDataTimer, and Timer::Start().
| void Edit::Paint | ( | const Rectangle & | rRect | ) | [virtual] |
Reimplemented from Window.
Reimplemented in SpinField.
Definition at line 1864 of file edit.cxx.
References ImplRepaint(), and mpSubEdit.
Referenced by SpinField::Paint().
| void Edit::Resize | ( | ) | [virtual] |
Reimplemented from Control.
Reimplemented in ComboBox, and SpinField.
Definition at line 1872 of file edit.cxx.
References ImplAlign(), ImplShowCursor(), Window::Invalidate(), Window::IsReallyVisible(), mnXOffset, mpSubEdit, and Control::Resize().
| void Edit::Draw | ( | OutputDevice * | pDev, | |
| const Point & | rPos, | |||
| const Size & | rSize, | |||
| ULONG | nFlags | |||
| ) | [virtual] |
Reimplemented from Window.
Reimplemented in ComboBox, and SpinField.
Definition at line 1887 of file edit.cxx.
References Draw(), OutputDevice::DrawRect(), OutputDevice::DrawText(), Window::GetControlBackground(), StyleSettings::GetDisableColor(), Window::GetDrawPixel(), Window::GetDrawPixelFont(), OutputDevice::GetOutDevType(), OutputDevice::GetSettings(), Window::GetStyle(), AllSettings::GetStyleSettings(), GetSubEdit(), OutputDevice::GetTextColor(), OutputDevice::GetTextHeight(), OutputDevice::GetTextWidth(), Control::ImplDrawFrame(), ImplGetText(), ImplInitSettings(), OutputDevice::IntersectClipRegion(), Window::IsControlBackground(), Window::IsEnabled(), OutputDevice::LogicToPixel(), OUTDEV_PRINTER, OutputDevice::Pop(), OutputDevice::Push(), OutputDevice::SetFillColor(), OutputDevice::SetFont(), OutputDevice::SetLineColor(), OutputDevice::SetMapMode(), OutputDevice::SetTextColor(), OutputDevice::SetTextFillColor(), WB_BORDER, WB_CENTER, WB_RIGHT, WINDOW_DRAW_MONO, WINDOW_DRAW_NOBACKGROUND, WINDOW_DRAW_NOBORDER, and WINDOW_DRAW_NODISABLE.
Referenced by SpinField::Draw(), Draw(), and ComboBox::Draw().
| void Edit::GetFocus | ( | ) | [virtual] |
Reimplemented from Control.
Definition at line 1989 of file edit.cxx.
References CTRL_EDITBOX, Control::GetFocus(), GETFOCUS_CURSOR, GETFOCUS_INIT, GETFOCUS_MNEMONIC, GETFOCUS_TAB, OutputDevice::GetFont(), Window::GetGetFocusFlags(), Window::GetParent(), StyleSettings::GetSelectionOptions(), OutputDevice::GetSettings(), Window::GetStyle(), AllSettings::GetStyleSettings(), Window::HasPaintEvent(), Window::ImplCallEventListeners(), ImplGetSVData(), Window::ImplGrabFocus(), ImplInvalidateOrRepaint(), ImplInvalidateOutermostBorder(), ImplShowCursor(), INPUTCONTEXT_EXTTEXTINPUT, INPUTCONTEXT_TEXT, Window::Invalidate(), Window::IsNativeControlSupported(), Window::IsNativeWidgetEnabled(), IsReadOnly(), maSelection, maText, maUndoText, mbActivePopup, mbIsSubEdit, mpSubEdit, PART_ENTIRE_CONTROL, SELECTION_OPTION_SHOWFIRST, Window::SetInputContext(), VCLEVENT_EDIT_SELECTIONCHANGED, WB_NOHIDESELECTION, and WB_READONLY.
| void Edit::LoseFocus | ( | ) | [virtual] |
Reimplemented from Control.
Definition at line 2054 of file edit.cxx.
References CTRL_EDITBOX, Window::GetParent(), Window::GetStyle(), ImplGetSVData(), ImplInvalidateOrRepaint(), ImplInvalidateOutermostBorder(), Timer::IsActive(), Window::IsNativeControlSupported(), Window::IsNativeWidgetEnabled(), Control::LoseFocus(), maSelection, mbActivePopup, mbIsSubEdit, mpSubEdit, mpUpdateDataTimer, PART_ENTIRE_CONTROL, Timer::Stop(), Timer::Timeout(), and WB_NOHIDESELECTION.
| void Edit::Tracking | ( | const TrackingEvent & | rTEvt | ) | [virtual] |
Reimplemented from Window.
Definition at line 1491 of file edit.cxx.
References TrackingEvent::GetMouseEvent(), MouseEvent::GetPosPixel(), ImplCopyToSelectionClipboard(), ImplGetCharPos(), ImplSetCursorPos(), Timer::IsActive(), MouseEvent::IsLeft(), TrackingEvent::IsTrackingEnded(), mbClickedInSelection, mbIsSubEdit, mpUpdateDataTimer, and Timer::Start().
| void Edit::Command | ( | const CommandEvent & | rCEvt | ) | [virtual] |
Reimplemented from Window.
Reimplemented in SpinField.
Definition at line 2083 of file edit.cxx.
References Application::AcquireSolarMutex(), Impl_IMEInfos::aOldTextAfterStartPos, AUTOCOMPLETE_KEYINPUT, Impl_IMEInfos::bCursor, Impl_IMEInfos::bWasCursorOverwrite, Window::Command(), COMMAND_CONTEXTMENU, COMMAND_CURSORPOS, COMMAND_ENDEXTTEXTINPUT, COMMAND_EXTTEXTINPUT, COMMAND_SELECTIONCHANGE, COMMAND_STARTEXTTEXTINPUT, COMMAND_VOICE, Copy(), Impl_IMEInfos::CopyAttribs(), CreatePopupMenu(), Cut(), DeletePopupMenu(), DeleteSelected(), Impl_IMEInfos::DestroyAttribs(), DICTATIONCOMMAND_DEL, DICTATIONCOMMAND_LEFT, DICTATIONCOMMAND_RIGHT, DICTATIONCOMMAND_UNDO, DICTATIONCOMMAND_UNKNOWN, Menu::EnableItem(), PopupMenu::Execute(), Window::GetClipboard(), CommandVoiceData::GetCommand(), CommandEvent::GetCommand(), Window::GetCursor(), CommandExtTextInputData::GetCursorPos(), CommandSelectionChangeData::GetEnd(), CommandEvent::GetExtTextInputData(), OutputDevice::GetFont(), Menu::GetItemPos(), CommandEvent::GetMousePosPixel(), StyleSettings::GetOptions(), OutputDevice::GetOutputSizePixel(), GetSelection(), CommandEvent::GetSelectionChangeData(), OutputDevice::GetSettings(), CommandSelectionChangeData::GetStart(), AllSettings::GetStyleSettings(), CommandExtTextInputData::GetText(), CommandVoiceData::GetText(), CommandExtTextInputData::GetTextAttr(), OutputDevice::GetTextWidth(), CommandVoiceData::GetType(), CommandEvent::GetVoiceData(), Cursor::Hide(), ImplAlignAndPaint(), ImplHandleKeyEvent(), ImplInitSettings(), ImplInsertText(), ImplModified(), ImplSetSelection(), CommandExtTextInputData::IsCursorOverwrite(), CommandExtTextInputData::IsCursorVisible(), IsInsertMode(), CommandEvent::IsMouseEvent(), IsReadOnly(), KEY_LEFT, KEY_MOD1, KEY_RIGHT, KEY_SHIFT, maAutocompleteHdl, maSelection, maText, maUndoText, mbActivePopup, meAutocompleteAction, MENU_FLAG_HIDEDISABLEDENTRIES, mpIMEInfos, Impl_IMEInfos::nLen, Impl_IMEInfos::nPos, Paste(), pImplFncGetSpecialChars, Application::ReleaseSolarMutex(), Menu::RemoveItem(), ReplaceSelected(), Window::SetCursorRect(), SetInsertMode(), Menu::SetMenuFlags(), SetSelection(), Cursor::Show(), STYLE_OPTION_HIDEDISABLED, Undo(), and VOICECOMMANDTYPE_DICTATION.
Referenced by SpinField::Command().
| void Edit::StateChanged | ( | StateChangedType | nType | ) | [virtual] |
Reimplemented from Control.
Reimplemented in ComboBox, and SpinField.
Definition at line 2328 of file edit.cxx.
References EDIT_ALIGN_CENTER, EDIT_ALIGN_LEFT, EDIT_ALIGN_RIGHT, Window::GetParent(), Window::GetStyle(), ImplAlign(), ImplInitSettings(), ImplInitStyle(), ImplInvalidateOrRepaint(), ImplShowCursor(), Window::Invalidate(), OutputDevice::IsRTLEnabled(), maText, mbIsSubEdit, mnAlign, mnXOffset, mpSubEdit, OutputDevice::SetLayoutMode(), Window::SetStyle(), STATE_CHANGE_CONTROLBACKGROUND, STATE_CHANGE_CONTROLFONT, STATE_CHANGE_CONTROLFOREGROUND, STATE_CHANGE_ENABLE, STATE_CHANGE_INITSHOW, STATE_CHANGE_MIRRORING, STATE_CHANGE_STYLE, STATE_CHANGE_ZOOM, Control::StateChanged(), TEXT_LAYOUT_BIDI_LTR, TEXT_LAYOUT_BIDI_RTL, TEXT_LAYOUT_TEXTORIGIN_LEFT, WB_CENTER, WB_LEFT, and WB_RIGHT.
Referenced by SetReadOnly(), SpinField::StateChanged(), and ComboBox::StateChanged().
| void Edit::DataChanged | ( | const DataChangedEvent & | rDCEvt | ) | [virtual] |
Reimplemented from Control.
Reimplemented in ComboBox, NumericField, MetricField, CurrencyField, DateField, TimeField, NumericBox, MetricBox, CurrencyBox, DateBox, TimeBox, and SpinField.
Definition at line 2429 of file edit.cxx.
References Control::DataChanged(), DATACHANGED_FONTS, DATACHANGED_FONTSUBSTITUTION, DATACHANGED_SETTINGS, DataChangedEvent::GetFlags(), DataChangedEvent::GetType(), ImplInitSettings(), ImplShowCursor(), Window::Invalidate(), mpSubEdit, and SETTINGS_STYLE.
Referenced by SpinField::DataChanged().
| Window * Edit::GetPreferredKeyInputWindow | ( | ) | [virtual] |
Reimplemented from Window.
Definition at line 2044 of file edit.cxx.
References GetPreferredKeyInputWindow(), and mpSubEdit.
Referenced by GetPreferredKeyInputWindow().
| void Edit::Modify | ( | ) | [virtual] |
Reimplemented in ComboBox, PatternField, NumericField, MetricField, CurrencyField, DateField, TimeField, PatternBox, NumericBox, MetricBox, CurrencyBox, DateBox, TimeBox, LongCurrencyField, LongCurrencyBox, and ImplSubEdit.
Definition at line 2477 of file edit.cxx.
References CTRL_EDITBOX, Window::GetParent(), Window::ImplCallEventListeners(), Control::ImplCallEventListenersAndHandler(), ImplGetSVData(), ImplInvalidateOutermostBorder(), Window::IsNativeControlSupported(), Window::IsNativeWidgetEnabled(), maModifyHdl, mbIsSubEdit, mpUpdateDataTimer, PART_ENTIRE_CONTROL, Timer::Start(), VCLEVENT_EDIT_MODIFY, and VCLEVENT_EDIT_SELECTIONCHANGED.
Referenced by ImplModified(), TimeFormatter::ImplNewFieldValue(), DateFormatter::ImplNewFieldValue(), NumericFormatter::ImplNewFieldValue(), ImplPatternProcessKeyInput(), LongCurrencyField::Modify(), TimeField::Modify(), DateField::Modify(), PatternField::Modify(), CurrencyField::Modify(), MetricField::Modify(), NumericField::Modify(), ImplSubEdit::Modify(), ComboBox::Modify(), and LongCurrencyField::Notify().
| void Edit::UpdateData | ( | ) | [virtual] |
| BOOL Edit::IsCharInput | ( | const KeyEvent & | rKEvt | ) | [static] |
Definition at line 379 of file edit.cxx.
References KeyEvent::GetCharCode(), KeyEvent::GetKeyCode(), KeyCode::IsMod1(), KeyCode::IsMod2(), and KeyCode::IsMod3().
Referenced by ImplHandleKeyEvent().
| void Edit::SetModifyFlag | ( | ) | [virtual] |
Definition at line 2794 of file edit.cxx.
References mbModified, and mpSubEdit.
Referenced by IMPL_LINK(), TimeFormatter::ImplNewFieldValue(), DateFormatter::ImplNewFieldValue(), NumericFormatter::ImplNewFieldValue(), ImplNewLongCurrencyFieldValue(), and ImplPatternProcessKeyInput().
| void Edit::ClearModifyFlag | ( | ) | [virtual] |
| void Edit::EnableUpdateData | ( | ULONG | nTimeout = EDIT_UPDATEDATA_TIMEOUT |
) | [virtual] |
Definition at line 2523 of file edit.cxx.
References DisableUpdateData(), mpUpdateDataTimer, Timer::SetTimeout(), and Timer::SetTimeoutHdl().
| virtual void Edit::DisableUpdateData | ( | ) | [inline, virtual] |
| ULONG Edit::IsUpdateDataEnabled | ( | ) | const [inline, virtual] |
| void Edit::SetEchoChar | ( | xub_Unicode | c | ) |
Definition at line 2541 of file edit.cxx.
References mcEchoChar, mpSubEdit, and SetEchoChar().
Referenced by SetEchoChar().
| void Edit::SetReadOnly | ( | BOOL | bReadOnly = TRUE |
) | [virtual] |
Definition at line 2550 of file edit.cxx.
References mbReadOnly, mpSubEdit, SetReadOnly(), STATE_CHANGE_READONLY, and StateChanged().
Referenced by SetReadOnly(), and SetSubEdit().
| virtual BOOL Edit::IsReadOnly | ( | ) | const [inline, virtual] |
Definition at line 191 of file edit.hxx.
Referenced by Command(), dragGestureRecognized(), dragOver(), GetFocus(), IMPL_LINK(), SpinField::MouseButtonDown(), SpinField::Notify(), ComboBox::Notify(), and ComboBox::StateChanged().
| void Edit::SetInsertMode | ( | BOOL | bInsert | ) |
Definition at line 2573 of file edit.cxx.
References ImplShowCursor(), mbInsertMode, mpSubEdit, and SetInsertMode().
Referenced by Command(), ImplHandleKeyEvent(), PatternFormatter::Reformat(), and SetInsertMode().
| BOOL Edit::IsInsertMode | ( | ) | const |
Definition at line 2587 of file edit.cxx.
References IsInsertMode(), mbInsertMode, and mpSubEdit.
Referenced by Command(), ImplPatternProcessKeyInput(), and IsInsertMode().
| void Edit::SetMaxTextLen | ( | xub_StrLen | nMaxLen = EDIT_NOLIMIT |
) | [virtual] |
Definition at line 2597 of file edit.cxx.
References EDIT_DEL_RIGHT, EDIT_DELMODE_SIMPLE, EDIT_NOLIMIT, ImplDelete(), maText, mnMaxTextLen, mpSubEdit, and SetMaxTextLen().
Referenced by DbgDialog::DbgDialog(), ImplLoadRes(), and SetMaxTextLen().
| virtual xub_StrLen Edit::GetMaxTextLen | ( | ) | const [inline, virtual] |
| void Edit::SetSelection | ( | const Selection & | rSelection | ) | [virtual] |
Definition at line 2612 of file edit.cxx.
References Window::EndTracking(), ImplSetSelection(), Window::IsTracking(), and mpSubEdit.
Referenced by Command(), IMPL_LINK(), ImplHandleKeyEvent(), ImplNewLongCurrencyFieldValue(), ImplPatternProcessKeyInput(), ComboBox::Notify(), LongCurrencyFormatter::SetUserValue(), and ComboBox::ToggleDropDown().
| const Selection & Edit::GetSelection | ( | ) | const [virtual] |
Definition at line 2668 of file edit.cxx.
References GetSelection(), maSelection, and mpSubEdit.
Referenced by Command(), GetSelection(), GetSurroundingTextSelection(), ImplCopyToSelectionClipboard(), DateField::ImplDateSpinArea(), ImplHandleKeyEvent(), TimeFormatter::ImplNewFieldValue(), DateFormatter::ImplNewFieldValue(), NumericFormatter::ImplNewFieldValue(), ImplNewLongCurrencyFieldValue(), ImplPatternProcessKeyInput(), ImplPatternProcessStrictModify(), FormatterBase::ImplSetText(), TimeField::ImplTimeSpinArea(), FormatterBase::SetFieldText(), and LongCurrencyFormatter::SetUserValue().
| void Edit::ReplaceSelected | ( | const XubString & | rStr | ) | [virtual] |
Definition at line 2678 of file edit.cxx.
References ImplInsertText(), mpSubEdit, and ReplaceSelected().
Referenced by Command(), Cut(), and ReplaceSelected().
| void Edit::DeleteSelected | ( | ) | [virtual] |
Definition at line 2688 of file edit.cxx.
References DeleteSelected(), EDIT_DEL_RIGHT, EDIT_DELMODE_SIMPLE, ImplDelete(), maSelection, and mpSubEdit.
Referenced by Command(), and DeleteSelected().
| XubString Edit::GetSelected | ( | ) | const [virtual] |
Definition at line 2701 of file edit.cxx.
References GetSelected(), maSelection, maText, and mpSubEdit.
Referenced by dragGestureRecognized(), and GetSelected().
| void Edit::Cut | ( | ) | [virtual] |
Definition at line 2715 of file edit.cxx.
References Copy(), Window::GetStyle(), ImplGetSVEmptyStr(), ReplaceSelected(), and WB_PASSWORD.
Referenced by Command(), and ImplHandleKeyEvent().
| void Edit::Copy | ( | ) | [virtual] |
Definition at line 2726 of file edit.cxx.
References Window::GetClipboard(), Window::GetStyle(), ImplCopy(), and WB_PASSWORD.
Referenced by Command(), Cut(), and ImplHandleKeyEvent().
| void Edit::Paste | ( | ) | [virtual] |
Definition at line 2737 of file edit.cxx.
References Window::GetClipboard(), and ImplPaste().
Referenced by Command(), and ImplHandleKeyEvent().
| void Edit::Undo | ( | ) |
Definition at line 2745 of file edit.cxx.
References EDIT_DEL_RIGHT, EDIT_DELMODE_SIMPLE, ImplDelete(), ImplInsertText(), ImplSetSelection(), maText, maUndoText, mpSubEdit, and Undo().
Referenced by Command(), ImplHandleKeyEvent(), and Undo().
| void Edit::SetText | ( | const XubString & | rStr | ) | [virtual] |
Reimplemented from Window.
Reimplemented in ComboBox.
Definition at line 2761 of file edit.cxx.
References ImplSetText(), mpSubEdit, and SetText().
Referenced by DateField::DateField(), DbgDialog::DbgDialog(), IMPL_LINK(), ImplPatternProcessKeyInput(), ImplPatternProcessStrictModify(), FormatterBase::ImplSetText(), ImplUpdateSeparators(), LongCurrencyFormatter::Reformat(), FormatterBase::SetEmptyFieldValue(), LongCurrencyFormatter::SetEmptyValue(), ComboBox::SetNoSelection(), PatternFormatter::SetString(), SetText(), ComboBox::SetText(), LongCurrencyFormatter::SetUserValue(), and TimeField::TimeField().
| void Edit::SetText | ( | const XubString & | rStr, | |
| const Selection & | rNewSelection | |||
| ) | [virtual] |
| XubString Edit::GetText | ( | ) | const [virtual] |
Reimplemented from Window.
Definition at line 2784 of file edit.cxx.
References GetText(), maText, and mpSubEdit.
Referenced by CalcMinimumSize(), GetText(), IMPL_LINK(), DateField::ImplDateSpinArea(), TimeFormatter::ImplNewFieldValue(), DateFormatter::ImplNewFieldValue(), NumericFormatter::ImplNewFieldValue(), ImplNewLongCurrencyFieldValue(), ImplPatternProcessKeyInput(), ImplPatternProcessStrictModify(), TimeField::ImplTimeSpinArea(), ComboBox::ImplUpdateFloatSelection(), ImplUpdateSeparators(), FormatterBase::IsEmptyFieldValue(), LongCurrencyFormatter::IsEmptyValue(), TimeBox::Notify(), TimeField::Notify(), DateBox::Notify(), DateField::Notify(), PatternBox::Notify(), PatternField::Notify(), CurrencyBox::Notify(), CurrencyField::Notify(), MetricBox::Notify(), MetricField::Notify(), NumericBox::Notify(), NumericField::Notify(), MetricFormatter::Reformat(), ComboBox::Resize(), and TimeField::SetExtFormat().
| void Edit::SaveValue | ( | ) | [inline] |
| virtual void Edit::SetModifyHdl | ( | const Link & | rLink | ) | [inline, virtual] |
| virtual const Link& Edit::GetModifyHdl | ( | ) | const [inline, virtual] |
| virtual void Edit::SetUpdateDataHdl | ( | const Link & | rLink | ) | [inline, virtual] |
| virtual const Link& Edit::GetUpdateDataHdl | ( | ) | const [inline, virtual] |
| void Edit::SetSubEdit | ( | Edit * | pEdit | ) |
Definition at line 2814 of file edit.cxx.
References mbIsSubEdit, mbReadOnly, mpSubEdit, POINTER_ARROW, Window::SetPointer(), and SetReadOnly().
Referenced by SpinField::ImplInit(), ComboBox::ImplInit(), ImplSubEdit::ImplSubEdit(), and ComboBox::~ComboBox().
| Edit* Edit::GetSubEdit | ( | ) | const [inline] |
| void Edit::SetAutocompleteHdl | ( | const Link & | rHdl | ) |
Definition at line 2564 of file edit.cxx.
References maAutocompleteHdl, mpSubEdit, and SetAutocompleteHdl().
Referenced by ComboBox::EnableAutocomplete(), and SetAutocompleteHdl().
| const Link& Edit::GetAutocompleteHdl | ( | ) | const [inline] |
| AutocompleteAction Edit::GetAutocompleteAction | ( | ) | const [inline] |
| Size Edit::CalcMinimumSize | ( | ) | const [virtual] |
Reimplemented in ComboBox, and SpinField.
Definition at line 2828 of file edit.cxx.
References Window::CalcWindowSize(), GetText(), OutputDevice::GetTextHeight(), and OutputDevice::GetTextWidth().
Referenced by SpinField::CalcMinimumSize(), and GetOptimalSize().
| Size Edit::GetOptimalSize | ( | WindowSizeType | eType | ) | const [virtual] |
Reimplemented from Control.
Reimplemented in ComboBox, and SpinField.
Definition at line 2836 of file edit.cxx.
References CalcMinimumSize(), Control::GetOptimalSize(), and WINDOWSIZE_MINIMUM.
Referenced by SpinField::GetOptimalSize(), and ComboBox::GetOptimalSize().
| virtual Size Edit::CalcSize | ( | USHORT | nChars | ) | const [virtual] |
| xub_StrLen Edit::GetMaxVisChars | ( | ) | const [virtual] |
Definition at line 2860 of file edit.cxx.
References OutputDevice::GetOutputSizePixel(), OutputDevice::GetTextWidth(), and mpSubEdit.
| xub_StrLen Edit::GetCharPos | ( | const Point & | rWindowPos | ) | const |
| void Edit::ShowTruncationWarning | ( | Window * | pParent | ) | [static] |
| void Edit::SetGetSpecialCharsFunction | ( | FncGetSpecialChars | fn | ) | [static] |
| FncGetSpecialChars Edit::GetGetSpecialCharsFunction | ( | ) | [static] |
| PopupMenu * Edit::CreatePopupMenu | ( | ) | [static] |
Definition at line 2891 of file edit.cxx.
References ImplGetResMgr(), KEY_A, KEY_S, KEYFUNC_COPY, KEYFUNC_CUT, KEYFUNC_DELETE, KEYFUNC_PASTE, KEYFUNC_UNDO, and Menu::SetAccelKey().
Referenced by Command().
| void Edit::DeletePopupMenu | ( | PopupMenu * | pMenu | ) | [static] |
| XubString Edit::GetSurroundingText | ( | ) | const [virtual] |
Reimplemented from Window.
Definition at line 3099 of file edit.cxx.
References GetSurroundingText(), maText, and mpSubEdit.
Referenced by GetSurroundingText().
| Selection Edit::GetSurroundingTextSelection | ( | ) | const [virtual] |
Edit* Edit::mpSubEdit [private] |
Reimplemented in ComboBox.
Definition at line 69 of file edit.hxx.
Referenced by ClearModifyFlag(), DataChanged(), DeleteSelected(), GetFocus(), GetMaxVisChars(), GetPreferredKeyInputWindow(), GetSelected(), GetSelection(), GetSurroundingText(), GetText(), ImplInitEditData(), ImplSetSelection(), IsInsertMode(), KeyInput(), LoseFocus(), MouseButtonDown(), Paint(), ReplaceSelected(), Resize(), SetAutocompleteHdl(), SetEchoChar(), SetInsertMode(), SetMaxTextLen(), SetModifyFlag(), SetReadOnly(), SetSelection(), SetSubEdit(), SetText(), StateChanged(), and Undo().
Timer* Edit::mpUpdateDataTimer [private] |
Definition at line 70 of file edit.hxx.
Referenced by EnableUpdateData(), ImplInitEditData(), IsUpdateDataEnabled(), KeyInput(), LoseFocus(), Modify(), Tracking(), and ~Edit().
DDInfo* Edit::mpDDInfo [private] |
Definition at line 71 of file edit.hxx.
Referenced by dragDropEnd(), dragEnter(), dragGestureRecognized(), dragOver(), drop(), ImplHideDDCursor(), ImplInitEditData(), ImplShowDDCursor(), and ~Edit().
Impl_IMEInfos* Edit::mpIMEInfos [private] |
Definition at line 72 of file edit.hxx.
Referenced by Command(), ImplHandleKeyEvent(), ImplInitEditData(), ImplRepaint(), and ~Edit().
XubString Edit::maText [private] |
Definition at line 73 of file edit.hxx.
Referenced by Command(), GetFocus(), GetSelected(), GetSurroundingText(), GetText(), ImplDelete(), ImplGetText(), ImplHandleKeyEvent(), ImplInsertText(), ImplSetSelection(), ImplSetText(), ImplShowDDCursor(), ImplTruncateToMaxLen(), MouseButtonDown(), SetMaxTextLen(), StateChanged(), and Undo().
XubString Edit::maSaveValue [private] |
XubString Edit::maUndoText [private] |
XubString Edit::maRedoText [private] |
long Edit::mnXOffset [private] |
Definition at line 77 of file edit.hxx.
Referenced by ImplAlign(), ImplGetCharPos(), ImplInitEditData(), ImplRepaint(), ImplSetText(), ImplShowCursor(), ImplShowDDCursor(), Resize(), and StateChanged().
Selection Edit::maSelection [private] |
Definition at line 78 of file edit.hxx.
Referenced by Command(), DeleteSelected(), dragGestureRecognized(), dragOver(), drop(), GetFocus(), GetSelected(), GetSelection(), ImplDelete(), ImplHandleKeyEvent(), ImplInsertText(), ImplRepaint(), ImplSetCursorPos(), ImplSetSelection(), ImplSetText(), ImplShowCursor(), LoseFocus(), and MouseButtonDown().
USHORT Edit::mnAlign [private] |
Definition at line 79 of file edit.hxx.
Referenced by ImplAlign(), ImplInit(), ImplInitEditData(), and StateChanged().
xub_StrLen Edit::mnMaxTextLen [private] |
Definition at line 80 of file edit.hxx.
Referenced by ImplInitEditData(), ImplSetText(), ImplTruncateToMaxLen(), and SetMaxTextLen().
AutocompleteAction Edit::meAutocompleteAction [private] |
Definition at line 81 of file edit.hxx.
Referenced by Command(), ImplHandleKeyEvent(), and ImplInitEditData().
xub_Unicode Edit::mcEchoChar [private] |
Definition at line 82 of file edit.hxx.
Referenced by ImplGetText(), ImplInitEditData(), and SetEchoChar().
BOOL Edit::mbModified [private] |
Definition at line 83 of file edit.hxx.
Referenced by ClearModifyFlag(), ImplInitEditData(), ImplModified(), and SetModifyFlag().
BOOL Edit::mbInternModified [private] |
Definition at line 83 of file edit.hxx.
Referenced by ImplDelete(), ImplHandleKeyEvent(), ImplInitEditData(), and ImplInsertText().
BOOL Edit::mbReadOnly [private] |
Definition at line 83 of file edit.hxx.
Referenced by drop(), ImplHandleKeyEvent(), ImplInit(), ImplInitEditData(), MouseButtonUp(), SetReadOnly(), and SetSubEdit().
BOOL Edit::mbInsertMode [private] |
Definition at line 83 of file edit.hxx.
Referenced by ImplHandleKeyEvent(), ImplInitEditData(), ImplInsertText(), ImplShowCursor(), IsInsertMode(), and SetInsertMode().
BOOL Edit::mbClickedInSelection [private] |
Definition at line 83 of file edit.hxx.
Referenced by ImplInitEditData(), MouseButtonDown(), MouseButtonUp(), and Tracking().
BOOL Edit::mbIsSubEdit [private] |
Definition at line 83 of file edit.hxx.
Referenced by GetFocus(), ImplAlign(), ImplClearBackground(), ImplGetExtraOffset(), ImplGetNativeControlType(), ImplInitEditData(), ImplSetSelection(), ImplUseNativeBorder(), KeyInput(), LoseFocus(), Modify(), SetSubEdit(), StateChanged(), and Tracking().
BOOL Edit::mbInMBDown [private] |
BOOL Edit::mbActivePopup [private] |
Definition at line 83 of file edit.hxx.
Referenced by Command(), GetFocus(), ImplInitEditData(), ImplRepaint(), and LoseFocus().
Link Edit::maModifyHdl [private] |
Link Edit::maUpdateDataHdl [private] |
Link Edit::maAutocompleteHdl [private] |
Definition at line 93 of file edit.hxx.
Referenced by Command(), ImplHandleKeyEvent(), and SetAutocompleteHdl().
::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDragSourceListener > Edit::mxDnDListener [protected] |
Definition at line 133 of file edit.hxx.
Referenced by dragGestureRecognized(), ImplInit(), ImplInitEditData(), and ~Edit().
1.5.6