зеркало из https://github.com/mozilla/gecko-dev.git
no longer derived nsWindow, it is truely a delegated helper
This commit is contained in:
Родитель
d560fe75b0
Коммит
e391c9d627
|
@ -27,6 +27,27 @@
|
|||
|
||||
#define DBG 0
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
//
|
||||
// nsTextHelper constructor
|
||||
//
|
||||
//-------------------------------------------------------------------------
|
||||
|
||||
nsTextHelper::nsTextHelper(Widget aWidget)
|
||||
{
|
||||
mWidget = aWidget;
|
||||
mIsReadOnly = PR_FALSE;
|
||||
mIsPassword = PR_FALSE;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
//
|
||||
// nsTextHelper destructor
|
||||
//
|
||||
//-------------------------------------------------------------------------
|
||||
nsTextHelper::~nsTextHelper()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
void nsTextHelper::SetMaxTextLength(PRUint32 aChars)
|
||||
|
@ -141,26 +162,6 @@ PRUint32 nsTextHelper::GetCaretPosition()
|
|||
return (PRUint32)XmTextGetInsertionPosition(mWidget);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
//
|
||||
// nsTextHelper constructor
|
||||
//
|
||||
//-------------------------------------------------------------------------
|
||||
|
||||
nsTextHelper::nsTextHelper(nsISupports *aOuter) : nsWindow(aOuter)
|
||||
{
|
||||
mIsReadOnly = PR_FALSE;
|
||||
mIsPassword = PR_FALSE;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
//
|
||||
// nsTextHelper destructor
|
||||
//
|
||||
//-------------------------------------------------------------------------
|
||||
nsTextHelper::~nsTextHelper()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
PRBool nsTextHelper::AutoErase()
|
||||
|
|
|
@ -20,16 +20,17 @@
|
|||
|
||||
#include "nsITextWidget.h"
|
||||
#include "nsWindow.h"
|
||||
#include <Xm/Xm.h>
|
||||
|
||||
/**
|
||||
* Base class for nsTextAreaWidget and nsTextWidget
|
||||
*/
|
||||
|
||||
class nsTextHelper : public nsWindow
|
||||
class nsTextHelper
|
||||
{
|
||||
|
||||
public:
|
||||
nsTextHelper(nsISupports *aOuter);
|
||||
nsTextHelper(Widget aWidget);
|
||||
virtual ~nsTextHelper();
|
||||
|
||||
virtual void SelectAll();
|
||||
|
@ -48,7 +49,7 @@ public:
|
|||
virtual PRBool AutoErase();
|
||||
|
||||
protected:
|
||||
|
||||
Widget mWidget;
|
||||
PRBool mIsPassword;
|
||||
PRBool mIsReadOnly;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче