diff options
-rw-r--r-- | dbaccess/source/ui/control/curledit.cxx | 23 | ||||
-rw-r--r-- | dbaccess/source/ui/inc/curledit.hxx | 12 |
2 files changed, 31 insertions, 4 deletions
diff --git a/dbaccess/source/ui/control/curledit.cxx b/dbaccess/source/ui/control/curledit.cxx index 9b0df20966f3..01ead622f571 100644 --- a/dbaccess/source/ui/control/curledit.cxx +++ b/dbaccess/source/ui/control/curledit.cxx @@ -2,9 +2,9 @@ * * $RCSfile: curledit.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: fs $ $Date: 2000-10-18 16:00:47 $ + * last change: $Author: fs $ $Date: 2000-10-24 12:08:19 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -99,6 +99,22 @@ OConnectionURLEdit::~OConnectionURLEdit() } //------------------------------------------------------------------------- +void OConnectionURLEdit::SetTextNoPrefix(const String& _rText) +{ + DBG_ASSERT(GetSubEdit(), "OConnectionURLEdit::SetTextNoPrefix: have no current type, not changing the text!"); + if (GetSubEdit()) + GetSubEdit()->SetText(_rText); +} + +//------------------------------------------------------------------------- +String OConnectionURLEdit::GetTextNoPrefix() const +{ + if (GetSubEdit()) + return GetSubEdit()->GetText(); + return GetText(); +} + +//------------------------------------------------------------------------- void OConnectionURLEdit::SetText(const String& _rStr) { Selection aNoSelection(0,0); @@ -167,6 +183,9 @@ String OConnectionURLEdit::GetText() const /************************************************************************* * history: * $Log: not supported by cvs2svn $ + * Revision 1.2 2000/10/18 16:00:47 fs + * use the system's DialogColor as background for the fixed text - looks much better + * * Revision 1.1 2000/10/05 09:59:38 fs * edit control for connection urls * diff --git a/dbaccess/source/ui/inc/curledit.hxx b/dbaccess/source/ui/inc/curledit.hxx index 17f59d481a28..07cd1885aca0 100644 --- a/dbaccess/source/ui/inc/curledit.hxx +++ b/dbaccess/source/ui/inc/curledit.hxx @@ -2,9 +2,9 @@ * * $RCSfile: curledit.hxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: fs $ $Date: 2000-10-05 10:08:07 $ + * last change: $Author: fs $ $Date: 2000-10-24 12:07:36 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -99,6 +99,11 @@ public: virtual void SetText(const String& _rStr); virtual void SetText(const String& _rStr, const Selection& _rNewSelection); virtual String GetText() const; + + /// get the currently set text, excluding the prefix indicating the type + virtual String GetTextNoPrefix() const; + /// set a new text, leave the current prefix unchanged + virtual void SetTextNoPrefix(const String& _rText); }; //......................................................................... @@ -110,6 +115,9 @@ public: /************************************************************************* * history: * $Log: not supported by cvs2svn $ + * Revision 1.1 2000/10/05 10:08:07 fs + * initial checkin + * * * Revision 1.0 28.09.00 13:11:23 fs ************************************************************************/ |