diff options
author | Malte Timmermann <mt@openoffice.org> | 2001-03-23 12:31:49 +0000 |
---|---|---|
committer | Malte Timmermann <mt@openoffice.org> | 2001-03-23 12:31:49 +0000 |
commit | 48ef4b07dbe6806ef35e8a3d719f55086f01d653 (patch) | |
tree | d3daa83968e9734cf5aafed7b726cae9ce6b30fe /toolkit/source | |
parent | f2e2180897797df49e6416b6b9ed3486b83262fa (diff) |
Property HelpText...
Diffstat (limited to 'toolkit/source')
-rw-r--r-- | toolkit/source/awt/vclxwindow.cxx | 25 | ||||
-rw-r--r-- | toolkit/source/controls/unocontrols.cxx | 20 | ||||
-rw-r--r-- | toolkit/source/helper/property.cxx | 5 |
3 files changed, 43 insertions, 7 deletions
diff --git a/toolkit/source/awt/vclxwindow.cxx b/toolkit/source/awt/vclxwindow.cxx index c501fff83977..7f0e24a0eb27 100644 --- a/toolkit/source/awt/vclxwindow.cxx +++ b/toolkit/source/awt/vclxwindow.cxx @@ -2,9 +2,9 @@ * * $RCSfile: vclxwindow.cxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: mt $ $Date: 2001-02-27 13:57:30 $ + * last change: $Author: mt $ $Date: 2001-03-23 13:31:48 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -535,6 +535,14 @@ void VCLXWindow::setProperty( const ::rtl::OUString& PropertyName, const ::com:: } } } + case BASEPROPERTY_HELPTEXT: + { + ::rtl::OUString aHelpText; + if ( Value >>= aHelpText ) + { + pWindow->SetQuickHelpText( aHelpText ); + } + } break; case BASEPROPERTY_FONTDESCRIPTOR: { @@ -703,6 +711,12 @@ void VCLXWindow::setProperty( const ::rtl::OUString& PropertyName, const ::com:: aProp <<= aText; } break; + case BASEPROPERTY_HELPTEXT: + { + ::rtl::OUString aText = GetWindow()->GetQuickHelpText(); + aProp <<= aText; + } + break; case BASEPROPERTY_FONTDESCRIPTOR: { Font aFont = GetWindow()->GetControlFont(); @@ -906,7 +920,12 @@ void VCLXWindow::draw( sal_Int32 nX, sal_Int32 nY ) throw(::com::sun::star::uno: Size aSz = pWindow->GetSizePixel(); aSz = pDev->PixelToLogic( aSz ); Point aP = pDev->PixelToLogic( aPos ); - pWindow->Draw( pDev, aP, aSz, WINDOW_DRAW_NOCONTROLS ); + + ULONG nFlags = WINDOW_DRAW_NOCONTROLS; + if ( pDev->GetOutDevType() == OUTDEV_PRINTER ) + nFlags |= WINDOW_DRAW_MONO; + + pWindow->Draw( pDev, aP, aSz, nFlags ); } } } diff --git a/toolkit/source/controls/unocontrols.cxx b/toolkit/source/controls/unocontrols.cxx index 8dfc18735135..550140c7f3e1 100644 --- a/toolkit/source/controls/unocontrols.cxx +++ b/toolkit/source/controls/unocontrols.cxx @@ -2,9 +2,9 @@ * * $RCSfile: unocontrols.cxx,v $ * - * $Revision: 1.11 $ + * $Revision: 1.12 $ * - * last change: $Author: mt $ $Date: 2001-03-13 15:42:53 $ + * last change: $Author: mt $ $Date: 2001-03-23 13:31:49 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -736,6 +736,7 @@ UnoControlEditModel::UnoControlEditModel() ImplRegisterProperty( BASEPROPERTY_ENABLED ); ImplRegisterProperty( BASEPROPERTY_FONTDESCRIPTOR ); ImplRegisterProperty( BASEPROPERTY_HARDLINEBREAKS ); + ImplRegisterProperty( BASEPROPERTY_HELPTEXT ); ImplRegisterProperty( BASEPROPERTY_HELPURL ); ImplRegisterProperty( BASEPROPERTY_HSCROLL ); ImplRegisterProperty( BASEPROPERTY_MAXTEXTLEN ); @@ -1005,6 +1006,7 @@ UnoControlFormattedFieldModel::UnoControlFormattedFieldModel() ImplRegisterProperty( BASEPROPERTY_FONTDESCRIPTOR ); ImplRegisterProperty( BASEPROPERTY_FORMATKEY ); ImplRegisterProperty( BASEPROPERTY_FORMATSSUPPLIER ); + ImplRegisterProperty( BASEPROPERTY_HELPTEXT ); ImplRegisterProperty( BASEPROPERTY_HELPURL ); ImplRegisterProperty( BASEPROPERTY_MAXTEXTLEN ); ImplRegisterProperty( BASEPROPERTY_PRINTABLE ); @@ -1099,6 +1101,7 @@ UnoControlFileControlModel::UnoControlFileControlModel() ImplRegisterProperty( BASEPROPERTY_DEFAULTCONTROL ); ImplRegisterProperty( BASEPROPERTY_ENABLED ); ImplRegisterProperty( BASEPROPERTY_FONTDESCRIPTOR ); + ImplRegisterProperty( BASEPROPERTY_HELPTEXT ); ImplRegisterProperty( BASEPROPERTY_HELPURL ); ImplRegisterProperty( BASEPROPERTY_PRINTABLE ); ImplRegisterProperty( BASEPROPERTY_TABSTOP ); @@ -1162,6 +1165,7 @@ UnoControlButtonModel::UnoControlButtonModel() ImplRegisterProperty( BASEPROPERTY_DEFAULTCONTROL ); ImplRegisterProperty( BASEPROPERTY_ENABLED ); ImplRegisterProperty( BASEPROPERTY_FONTDESCRIPTOR ); + ImplRegisterProperty( BASEPROPERTY_HELPTEXT ); ImplRegisterProperty( BASEPROPERTY_HELPURL ); ImplRegisterProperty( BASEPROPERTY_IMAGEURL ); ImplRegisterProperty( BASEPROPERTY_LABEL ); @@ -1389,6 +1393,7 @@ UnoControlImageControlModel::UnoControlImageControlModel() ImplRegisterProperty( BASEPROPERTY_BORDER ); ImplRegisterProperty( BASEPROPERTY_DEFAULTCONTROL ); ImplRegisterProperty( BASEPROPERTY_ENABLED ); + ImplRegisterProperty( BASEPROPERTY_HELPTEXT ); ImplRegisterProperty( BASEPROPERTY_HELPURL ); ImplRegisterProperty( BASEPROPERTY_IMAGEURL ); ImplRegisterProperty( BASEPROPERTY_PRINTABLE ); @@ -1575,6 +1580,7 @@ UnoControlRadioButtonModel::UnoControlRadioButtonModel() ImplRegisterProperty( BASEPROPERTY_DEFAULTCONTROL ); ImplRegisterProperty( BASEPROPERTY_ENABLED ); ImplRegisterProperty( BASEPROPERTY_FONTDESCRIPTOR ); + ImplRegisterProperty( BASEPROPERTY_HELPTEXT ); ImplRegisterProperty( BASEPROPERTY_HELPURL ); ImplRegisterProperty( BASEPROPERTY_LABEL ); ImplRegisterProperty( BASEPROPERTY_PRINTABLE ); @@ -1741,6 +1747,7 @@ UnoControlCheckBoxModel::UnoControlCheckBoxModel() ImplRegisterProperty( BASEPROPERTY_DEFAULTCONTROL ); ImplRegisterProperty( BASEPROPERTY_ENABLED ); ImplRegisterProperty( BASEPROPERTY_FONTDESCRIPTOR ); + ImplRegisterProperty( BASEPROPERTY_HELPTEXT ); ImplRegisterProperty( BASEPROPERTY_HELPURL ); ImplRegisterProperty( BASEPROPERTY_LABEL ); ImplRegisterProperty( BASEPROPERTY_PRINTABLE ); @@ -1917,6 +1924,7 @@ UnoControlFixedTextModel::UnoControlFixedTextModel() ImplRegisterProperty( BASEPROPERTY_DEFAULTCONTROL ); ImplRegisterProperty( BASEPROPERTY_ENABLED ); ImplRegisterProperty( BASEPROPERTY_FONTDESCRIPTOR ); + ImplRegisterProperty( BASEPROPERTY_HELPTEXT ); ImplRegisterProperty( BASEPROPERTY_HELPURL ); ImplRegisterProperty( BASEPROPERTY_LABEL ); ImplRegisterProperty( BASEPROPERTY_MULTILINE ); @@ -2055,6 +2063,7 @@ UnoControlGroupBoxModel::UnoControlGroupBoxModel() ImplRegisterProperty( BASEPROPERTY_DEFAULTCONTROL ); ImplRegisterProperty( BASEPROPERTY_ENABLED ); ImplRegisterProperty( BASEPROPERTY_FONTDESCRIPTOR ); + ImplRegisterProperty( BASEPROPERTY_HELPTEXT ); ImplRegisterProperty( BASEPROPERTY_HELPURL ); ImplRegisterProperty( BASEPROPERTY_LABEL ); ImplRegisterProperty( BASEPROPERTY_PRINTABLE ); @@ -2125,6 +2134,7 @@ UnoControlListBoxModel::UnoControlListBoxModel() ImplRegisterProperty( BASEPROPERTY_DROPDOWN ); ImplRegisterProperty( BASEPROPERTY_ENABLED ); ImplRegisterProperty( BASEPROPERTY_FONTDESCRIPTOR ); + ImplRegisterProperty( BASEPROPERTY_HELPTEXT ); ImplRegisterProperty( BASEPROPERTY_HELPURL ); ImplRegisterProperty( BASEPROPERTY_LINECOUNT ); ImplRegisterProperty( BASEPROPERTY_MULTISELECTION ); @@ -2544,6 +2554,7 @@ UnoControlComboBoxModel::UnoControlComboBoxModel() ImplRegisterProperty( BASEPROPERTY_DROPDOWN ); ImplRegisterProperty( BASEPROPERTY_ENABLED ); ImplRegisterProperty( BASEPROPERTY_FONTDESCRIPTOR ); + ImplRegisterProperty( BASEPROPERTY_HELPTEXT ); ImplRegisterProperty( BASEPROPERTY_HELPURL ); ImplRegisterProperty( BASEPROPERTY_LINECOUNT ); ImplRegisterProperty( BASEPROPERTY_MAXTEXTLEN ); @@ -2810,6 +2821,7 @@ UnoControlDateFieldModel::UnoControlDateFieldModel() ImplRegisterProperty( BASEPROPERTY_ENABLED ); ImplRegisterProperty( BASEPROPERTY_EXTDATEFORMAT ); ImplRegisterProperty( BASEPROPERTY_FONTDESCRIPTOR ); + ImplRegisterProperty( BASEPROPERTY_HELPTEXT ); ImplRegisterProperty( BASEPROPERTY_HELPURL ); ImplRegisterProperty( BASEPROPERTY_PRINTABLE ); ImplRegisterProperty( BASEPROPERTY_READONLY ); @@ -3007,6 +3019,7 @@ UnoControlTimeFieldModel::UnoControlTimeFieldModel() ImplRegisterProperty( BASEPROPERTY_ENABLED); ImplRegisterProperty( BASEPROPERTY_EXTTIMEFORMAT ); ImplRegisterProperty( BASEPROPERTY_FONTDESCRIPTOR ); + ImplRegisterProperty( BASEPROPERTY_HELPTEXT ); ImplRegisterProperty( BASEPROPERTY_HELPURL ); ImplRegisterProperty( BASEPROPERTY_PRINTABLE ); ImplRegisterProperty( BASEPROPERTY_READONLY ); @@ -3195,6 +3208,7 @@ UnoControlNumericFieldModel::UnoControlNumericFieldModel() ImplRegisterProperty( BASEPROPERTY_DEFAULTCONTROL ); ImplRegisterProperty( BASEPROPERTY_ENABLED ); ImplRegisterProperty( BASEPROPERTY_FONTDESCRIPTOR ); + ImplRegisterProperty( BASEPROPERTY_HELPTEXT ); ImplRegisterProperty( BASEPROPERTY_HELPURL ); ImplRegisterProperty( BASEPROPERTY_NUMSHOWTHOUSANDSEP ); ImplRegisterProperty( BASEPROPERTY_PRINTABLE ); @@ -3389,6 +3403,7 @@ UnoControlCurrencyFieldModel::UnoControlCurrencyFieldModel() ImplRegisterProperty( BASEPROPERTY_DEFAULTCONTROL ); ImplRegisterProperty( BASEPROPERTY_ENABLED ); ImplRegisterProperty( BASEPROPERTY_FONTDESCRIPTOR ); + ImplRegisterProperty( BASEPROPERTY_HELPTEXT ); ImplRegisterProperty( BASEPROPERTY_HELPURL ); ImplRegisterProperty( BASEPROPERTY_NUMSHOWTHOUSANDSEP ); ImplRegisterProperty( BASEPROPERTY_PRINTABLE ); @@ -3585,6 +3600,7 @@ UnoControlPatternFieldModel::UnoControlPatternFieldModel() ImplRegisterProperty( BASEPROPERTY_EDITMASK ); ImplRegisterProperty( BASEPROPERTY_ENABLED ); ImplRegisterProperty( BASEPROPERTY_FONTDESCRIPTOR ); + ImplRegisterProperty( BASEPROPERTY_HELPTEXT ); ImplRegisterProperty( BASEPROPERTY_HELPURL ); ImplRegisterProperty( BASEPROPERTY_LITERALMASK ); ImplRegisterProperty( BASEPROPERTY_PRINTABLE ); diff --git a/toolkit/source/helper/property.cxx b/toolkit/source/helper/property.cxx index 37bf6a4904e0..1c89291660e9 100644 --- a/toolkit/source/helper/property.cxx +++ b/toolkit/source/helper/property.cxx @@ -2,9 +2,9 @@ * * $RCSfile: property.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: jl $ $Date: 2001-03-21 14:26:20 $ + * last change: $Author: mt $ $Date: 2001-03-23 13:31:49 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -198,6 +198,7 @@ ImplPropertyInfo* ImplGetPropertyInfos( sal_uInt16& rElementCount ) ImplPropertyInfo( ::rtl::OUString::createFromAscii( "FormatKey" ), BASEPROPERTY_FORMATKEY, ::getCppuType((const sal_Int32*)0), ::com::sun::star::beans::PropertyAttribute::BOUND|::com::sun::star::beans::PropertyAttribute::MAYBEVOID|::com::sun::star::beans::PropertyAttribute::TRANSIENT ), ImplPropertyInfo( ::rtl::OUString::createFromAscii( "FormatsSupplier" ), BASEPROPERTY_FORMATSSUPPLIER, ::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier >*)0), ::com::sun::star::beans::PropertyAttribute::BOUND|::com::sun::star::beans::PropertyAttribute::MAYBEVOID|::com::sun::star::beans::PropertyAttribute::TRANSIENT ), + ImplPropertyInfo( ::rtl::OUString::createFromAscii( "HelpText" ), BASEPROPERTY_HELPTEXT, ::getCppuType((const ::rtl::OUString*)0), ::com::sun::star::beans::PropertyAttribute::BOUND|::com::sun::star::beans::PropertyAttribute::MAYBEDEFAULT ), ImplPropertyInfo( ::rtl::OUString::createFromAscii( "HelpURL" ), BASEPROPERTY_HELPURL, ::getCppuType((const ::rtl::OUString*)0), ::com::sun::star::beans::PropertyAttribute::BOUND|::com::sun::star::beans::PropertyAttribute::MAYBEDEFAULT ), ImplPropertyInfo( ::rtl::OUString::createFromAscii( "HScroll" ), BASEPROPERTY_HSCROLL, ::getBooleanCppuType(), ::com::sun::star::beans::PropertyAttribute::BOUND|::com::sun::star::beans::PropertyAttribute::MAYBEDEFAULT ), ImplPropertyInfo( ::rtl::OUString::createFromAscii( "HardLineBreaks" ), BASEPROPERTY_HARDLINEBREAKS, ::getBooleanCppuType(), ::com::sun::star::beans::PropertyAttribute::BOUND|::com::sun::star::beans::PropertyAttribute::MAYBEDEFAULT ), |