Inheritance diagram for CP_View_Imp_Rich:

Events | |
| virtual void | InitEventHandler (CP_EventHandler &inEventHandler) |
| LRESULT | HandleWinProcMessage (HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam) |
| void | HandleMouseEnteredEvent (CP_Event_Base &inEvent) |
| void | HandleMouseExitedEvent (CP_Event_Base &inEvent) |
Getters | |
| virtual CP_EventHandler & | GetEventHandler () |
| WNDPROC | GetOldWinProc () |
| HBRUSH | GetBackgroundBrush () |
| static CP_View_Imp_Win * | GetLastViewWithMouse () |
| static void | SetLastViewWithMouse (CP_View_Imp_Win *inView) |
Public Member Functions | |
| CP_View_Imp_Rich (CP_View_Imp *inOwnerViewImp, CP_View *inSuperview, const CP_Point &inUpperLeft, const CP_Size &inContentSize, bool inHasHorizontalScroll=true, bool inHasVerticalScroll=true, bool inReadOnly=false) | |
| virtual | ~CP_View_Imp_Rich () throw () |
| void | disconnect_all () |
| void | signal_connect (CP_Signal *inSender) |
| void | signal_disconnect (CP_Signal *inSender) |
| void | SetID (FourCharCode inIdentifier) |
| FourCharCode | GetID () |
| void | RegisterSignal (const CP_SignalHolder &inSignal) |
| CP_DataValueSignal * | FindSignal (const CP_String &inSignalName) |
| UInt32 | GetNumberSignals () |
| CP_String | GetNthSignalName (UInt32 inSignalIndex) |
| void | RegisterSlot (const CP_SlotHolder &inSlot) |
| CP_DataValueSlot | FindSlot (const CP_String &inSlotName) |
| UInt32 | GetNumberSlots () |
| CP_String | GetNthSlotName (UInt32 inSlotIndex) |
| template<class R, class P1, class P2> | |
| CP_CommandHandlerSignal * | Connect (CPLAT::CP_CommandNo cmd, void(R::*handler)(P1, P2), SInt32 mode) |
| template<class R, class P1, class P2> | |
| void | Connect (CP_Object *control, const CPLAT::CP_String &signalName, void(R::*handler)(P1, P2)) |
Appearance | |
| void | Activate () |
| void | Deactivate () |
Command Handling | |
| void | HandleCommandStatus (CP_CommandStatus &inCommandStatus, bool &inOutResult, CP_CommandNo &inCommandNo) |
| void | HandleCutCommand (OSStatus &inOutStatus) |
| void | HandleCopyCommand (OSStatus &inOutStatus) |
| void | HandleClearCommand (OSStatus &inOutStatus) |
| void | HandlePasteCommand (OSStatus &inOutStatus) |
| void | HandleSelectAllCommand (OSStatus &inOutStatus) |
| void | HandleUndoCommand (OSStatus &inOutStatus) |
| void | HandleRedoCommand (OSStatus &inOutStatus) |
Drawing | |
| virtual void | HandleDraw (OSControl inControl) |
Focus | |
| virtual void | OnLosingFocus () |
Getters | |
| OSStatus | ReadTextFromFile (const CP_FileSystemSpec &inFileSpec) |
Getters | |
| CP_String | GetText (char inLineEnd=CP_LF) |
| UInt32 | GetTextLength () |
Key Filter | |
| void | AttachFilter (CP_KeyInputFilter *inFilter) |
| CP_KeyInputFilter * | GetFilter () |
Printing | |
| void | Print () |
Selection | |
| void | GetSelection (UInt32 *inStartSelection, UInt32 *inEndSelection) |
| void | SetSelection (UInt32 inStartSelection, UInt32 inEndSelection) |
| bool | HasSelection () |
Setters | |
| void | SetText (const CP_String &inText) |
| void | SetText (CP_InStream *inStream) |
| void | InsertText (const CP_String &inText) |
| void | InsertText (const char *inTextPtr, SInt32 inTextLength) |
| void | SetFontSpec (CP_FontSpec &inFontSpec) |
Testers | |
| bool | HasTextToPaste () |
Static Public Member Functions | |
| static void | Connect (CP_Object *sender, const CP_String &signalName, CP_Object *receiver, const CP_String &slotName, const bool reciprocal=false) |
| static void | Connect (CP_Object *sender, CP_Object *receiver, const bool reciprocal=false, const CP_String &signalName=kCP_Signal_ValueChanged, const CP_String &slotName=kCP_Slot_SetValue) |
Protected Member Functions | |
Setters | |
| virtual void | SetPortBounds (const CP_Rect &inBounds) |
| void | SetTextFont (const CP_String &inFontName) |
| void | SetTextSize (SInt16 inFontSize) |
| void | SetTextFace (SInt16 inFace) |
| void | SetTextColor (const CP_RGBColor &inForeColor) |
Protected Attributes | |
| CP_KeyInputFilter * | fKeyFilter |
| CP_DataValueSignal | fFieldExitSignal |
| CP_EventHandler | fEventHandler |
| CP_Point | fLocation |
| UInt32 | fWinStyleFlags |
| UInt32 | fWinExtStyleFlags |
| WNDPROC | fnOldWndProc |
| bool | fIsCustomPane |
| CP_View * | fSuperview |
| CP_Point | fOrigin |
| CP_View_Imp * | fOwnerViewImp |
| OSControl | fOSControl |
| CP_EventHandler | fDummyEventHandler |
| CP_Size | fSize |
| CP_Commands_Array * | fCommands |
| CP_MenuSelectionSignal * | fMennuSelectionSignal |
| sender_set | fSenders |
| CP_Signals_Array * | fSignals |
| CP_Slots_Array * | fSlots |
| FourCharCode | fObjectID |
Static Protected Attributes | |
| static SInt16 | fsWinViewID = 0 |
| static HBRUSH | fsBackgroundBrush |
| static CP_View_Imp_Win * | fsLastViewWithMouse = NULL |
| static FourCharCode | fObjectIDCount = 0 |
Private Member Functions | |
Events | |
| void | HandleKeyboardInput_Win (CP_Event_Base &inEvent) |
| void | CommandProcess (CP_Event_Base &inEvent) |
| void | CommandUpdateStatus (CP_Event_Base &inEvent) |
Initialization | |
| void | Init (CP_View *inSuperview, const CP_Point &inLocation, const CP_Size &inContentSize, bool inHasHorizontalScroll=true, bool inHasVerticalScroll=true, bool inReadOnly=false) |
| void | InitEventHandler (CPLAT::CP_EventHandler &inEventHandler) |
| bool | HandleFieldExitChar (char inChar) |
Misc | |
| void | TextChanged () |
Static Private Member Functions | |
| static DWORD CALLBACK | CP_RichText_StreamInCallback (DWORD dwCookie, LPBYTE pbBuff, LONG cb, LONG *pcb) |
|
||||||||||||||||||||||||||||||||
|
|
|
|
Destructor.
|
|
|
Activate this view.
Reimplemented from CP_View_Imp_Base. |
|
|
Deactivate this view.
Reimplemented from CP_View_Imp_Base. |
|
||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Attach a text field to this field. NOTE: It is possible to pass a NULL validator in, which will remove any existing one.
|
|
|
Return the key input filter associated with this field. |
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
Do we have text in our scrap to paste into our field. |
|
|
Sets the port bounds of the child window.
Reimplemented from CP_View_Imp_Win. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||||||
|
|
|
|
Show this view.
Reimplemented from CP_View_Imp_Base. |
|
|
Hide this view.
Reimplemented from CP_View_Imp_Base. |
|
|
Enable this control.
Reimplemented from CP_View_Imp_Base. |
|
|
Disable this control.
Reimplemented from CP_View_Imp_Base. |
|
|
Used when the user needs to draw into a view at times other than the normal drawing times. This will setup the control for drawing into, and return a canvas object suitable for use.
Reimplemented from CP_View_Imp_Base. |
|
|
Reimplemented from CP_View_Imp_Base. |
|
|
Cause the control to refresh itself by invalidating the bounds of this control.
Reimplemented from CP_View_Imp_Base. |
|
|
Reimplemented from CP_View_Imp_Base. |
|
|
Return the port bounds of this pane. This is the bounds of the pane in port coordinates.
Reimplemented from CP_View_Imp_Base. |
|
||||||||||||||||||||||||||||
|
Create the Windows child window that is used to display the contents of this pane.
|
|
||||||||||||
|
Creates the Windows child HWND that is used to implement this class under Windows. If the user has not changed the default flags used to create the child window, they will be created with the following flags:
|
|
|
|
|
|
|
|
|
Initialize the event handler data member for this class. This will register the Windows messages that are handled by this class with their respective CP_EventSignal handlers.
Reimplemented from CP_View_Imp_Base. Reimplemented in CP_View_Imp_WinToolbar. |
|
||||||||||||||||||||
|
Handle any Windows specific message for this pane. This is the routine that is called from the windows pane handler. You need override the protected OnHandleWinProcMessage method to handle the specific messages you need to in your class. This method will catch any exceptions thrown in your methods to prevent propagating into the Windows callback.
|
|
|
|
|
|
|
|
|
Reimplemented from CP_View_Imp_Base. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from CP_View_Imp_Base. |
|
|
Sets the data member and event handler to the passed in Windows window proc that was used in a created child window. This is the previous one that we are subclassing.
|
|
|
|
|
|
|
|
|
Returns true if this view is visible.
Reimplemented from CP_View_Imp_Base. |
|
|
Returns true if this view is active.
Reimplemented from CP_View_Imp_Base. |
|
|
Returns true if this view is enabled.
Reimplemented from CP_View_Imp_Base. |
|
|
Cause the passed in area of this pane to become invalid and force the OS to create an update event to redraw that portion.
Reimplemented from CP_View_Imp_Base. |
|
|
|
|
||||||||||||||||
|
Creates the Windows child window for our view class. This is called by the other methods to create our custom window class used to implmement this class under Windows.
|
|
|
Register the window class used for the panes child window with Windows.
|
|
|
Sets the location of this control releative to its superview. The passed in location is relative to the subview that contains this control.
Reimplemented from CP_View_Imp_Base. |
|
|
Sets the size of this control. This will expand or shrink the control relative to its upper left corner.
Reimplemented from CP_View_Imp_Base. |
|
||||||||||||
|
Public method called from the various OS implementations when they need to draw some content. This then calls the CP_View_Imp HandleDraw to notify your object that is should draw something via its OnDraw() method.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Return the local bounds of this pane. This will always have the top left corner at location 0, 0.
|
|
|
Returns the OSControl that is implementing this base view. The will be a MacOS ControlHandle on non HIView OSs or non compositing windows, and an HIViewRef on compositing windows.
|
<