Kaydet (Commit) 0636e34f authored tarafından Oliver Bolte's avatar Oliver Bolte

INTEGRATION: CWS dba20 (1.2.278); FILE MERGED

2004/11/29 11:19:58 oj 1.2.278.2: RESYNC: (1.2-1.3); FILE MERGED
2004/11/19 15:11:52 fs 1.2.278.1: #i37434# canColorBorder: also take into account the type of the control
üst bf481282
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: fmcontrolbordermanager.hxx,v $ * $RCSfile: fmcontrolbordermanager.hxx,v $
* *
* $Revision: 1.3 $ * $Revision: 1.4 $
* *
* last change: $Author: obo $ $Date: 2004-11-16 11:29:29 $ * last change: $Author: obo $ $Date: 2005-01-05 12:22:58 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -76,6 +76,9 @@ ...@@ -76,6 +76,9 @@
#include <com/sun/star/awt/XVclWindowPeer.hpp> #include <com/sun/star/awt/XVclWindowPeer.hpp>
#endif #endif
/** === end UNO includes === **/ /** === end UNO includes === **/
#ifndef _COMPHELPER_STLTYPES_HXX_
#include <comphelper/stl_types.hxx>
#endif
#ifndef _COMPHELPER_STLTYPES_HXX_ #ifndef _COMPHELPER_STLTYPES_HXX_
#include <comphelper/stl_types.hxx> #include <comphelper/stl_types.hxx>
...@@ -112,6 +115,11 @@ namespace svxform ...@@ -112,6 +115,11 @@ namespace svxform
,nBorderColor( 0x00000000 ) ,nBorderColor( 0x00000000 )
{ {
} }
inline void clear()
{
nBorderType = ::com::sun::star::awt::VisualEffect::FLAT;
nBorderColor = 0x00000000;
}
}; };
//==================================================================== //====================================================================
...@@ -133,6 +141,12 @@ namespace svxform ...@@ -133,6 +141,12 @@ namespace svxform
,nUnderlineColor( _nUnderlineColor ) ,nUnderlineColor( _nUnderlineColor )
{ {
} }
inline void clear()
{
nUnderlineType = ::com::sun::star::awt::FontUnderline::NONE;
nUnderlineColor = 0x00000000;
}
}; };
//==================================================================== //====================================================================
...@@ -148,6 +162,13 @@ namespace svxform ...@@ -148,6 +162,13 @@ namespace svxform
:xControl( _rxControl ) :xControl( _rxControl )
{ {
} }
void clear()
{
BorderDescriptor::clear();
UnderlineDescriptor::clear();
xControl.clear();
sOriginalHelpText = ::rtl::OUString();
}
}; };
//==================================================================== //====================================================================
...@@ -172,13 +193,19 @@ namespace svxform ...@@ -172,13 +193,19 @@ namespace svxform
}; };
typedef ::std::set< ControlData, ControlDataCompare > ControlBag; typedef ::std::set< ControlData, ControlDataCompare > ControlBag;
typedef ::com::sun::star::awt::XVclWindowPeer WindowPeer;
typedef ::com::sun::star::uno::Reference< ::com::sun::star::awt::XVclWindowPeer > WindowPeerRef;
typedef ::std::set< WindowPeerRef, ::comphelper::OInterfaceCompare< WindowPeer > > PeerBag;
PeerBag m_aColorableControls;
PeerBag m_aNonColorableControls;
// ----------------
// attributes
ControlData m_aFocusControl; ControlData m_aFocusControl;
ControlData m_aMouseHoverControl; ControlData m_aMouseHoverControl;
ControlBag m_aInvalidControls; ControlBag m_aInvalidControls;
// ----------------
// attributes
sal_Int32 m_nFocusColor; sal_Int32 m_nFocusColor;
sal_Int32 m_nMouseHoveColor; sal_Int32 m_nMouseHoveColor;
sal_Int32 m_nInvalidColor; sal_Int32 m_nInvalidColor;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment