Kaydet (Commit) 4d6bcb34 authored tarafından Thomas Arnhold's avatar Thomas Arnhold

Remove FS_PRIV_DEBUG directive.

üst 8918fd30
...@@ -194,148 +194,4 @@ namespace comphelper ...@@ -194,148 +194,4 @@ namespace comphelper
} // namespace comphelper } // namespace comphelper
//......................................................................... //.........................................................................
#ifdef FS_PRIV_DEBUG
#define STATECONTAINER_TEST
#endif
#ifdef STATECONTAINER_TEST
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <comphelper/proparrhlp.hxx>
#include <comphelper/broadcasthelper.hxx>
//.........................................................................
namespace comphelper
{
//.........................................................................
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::beans;
//=====================================================================
//= Test - compiler test
//=====================================================================
typedef ::cppu::OWeakAggObject Test_RefCountBase;
class Test :public OMutexAndBroadcastHelper
,public OPropertyStateContainer
,public OPropertyArrayUsageHelper< Test >
,public Test_RefCountBase
{
private:
::rtl::OUString m_sStringProperty;
Reference< XInterface > m_xInterfaceProperty;
Any m_aMayBeVoidProperty;
protected:
Test( );
DECLARE_XINTERFACE( )
public:
static Test* Create( );
protected:
virtual Reference< XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(RuntimeException);
virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const;
protected:
// OPropertyStateContainer overridables
virtual void getPropertyDefaultByHandle( sal_Int32 _nHandle, Any& _rDefault ) const;
};
//---------------------------------------------------------------------
Test::Test( )
:OPropertyStateContainer( GetBroadcastHelper() )
{
registerProperty(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "StringProperty" )),
1,
PropertyAttribute::BOUND,
&m_sStringProperty,
::getCppuType( &m_sStringProperty )
);
registerProperty(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "InterfaceProperty" )),
2,
PropertyAttribute::BOUND,
&m_xInterfaceProperty,
::getCppuType( &m_xInterfaceProperty )
);
registerMayBeVoidProperty(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IntProperty" )),
3,
PropertyAttribute::BOUND,
&m_aMayBeVoidProperty,
::getCppuType( static_cast< sal_Int32* >( NULL ) )
);
registerPropertyNoMember(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "OtherInterfaceProperty" )),
4,
PropertyAttribute::BOUND | PropertyAttribute::MAYBEVOID,
::getCppuType( static_cast< Reference< XInterface >* >( NULL ) ),
NULL
);
}
//---------------------------------------------------------------------
IMPLEMENT_FORWARD_XINTERFACE2( Test, Test_RefCountBase, OPropertyStateContainer )
//---------------------------------------------------------------------
void Test::getPropertyDefaultByHandle( sal_Int32 _nHandle, Any& _rDefault ) const
{
switch ( _nHandle )
{
case 1:
_rDefault = makeAny( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "StringPropertyDefault" ) ) );
break;
case 2:
_rDefault = makeAny( Reference< XInterface >( ) );
break;
case 3:
// void
break;
case 4:
_rDefault = makeAny( Reference< XInterface >( ) );
break;
default:
OSL_ENSURE( sal_False, "Test::getPropertyDefaultByHandle: invalid handle!" );
}
}
//---------------------------------------------------------------------
Reference< XPropertySetInfo > SAL_CALL Test::getPropertySetInfo( ) throw(RuntimeException)
{
return createPropertySetInfo( getInfoHelper() );
}
//---------------------------------------------------------------------
::cppu::IPropertyArrayHelper& SAL_CALL Test::getInfoHelper()
{
return *getArrayHelper();
}
//---------------------------------------------------------------------
::cppu::IPropertyArrayHelper* Test::createArrayHelper( ) const
{
Sequence< Property > aProps;
describeProperties( aProps );
return new ::cppu::OPropertyArrayHelper( aProps );
}
//---------------------------------------------------------------------
Test* Test::Create( )
{
Test* pInstance = new Test;
return pInstance;
}
//.........................................................................
} // namespace comphelper
//.........................................................................
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -62,14 +62,14 @@ class SVT_DLLPUBLIC SvtTabAppearanceCfg : public utl::ConfigItem ...@@ -62,14 +62,14 @@ class SVT_DLLPUBLIC SvtTabAppearanceCfg : public utl::ConfigItem
short nScaleFactor ; short nScaleFactor ;
short nSnapMode ; short nSnapMode ;
short nMiddleMouse; short nMiddleMouse;
#if defined( UNX ) || defined ( FS_PRIV_DEBUG ) #if defined( UNX )
short nAAMinPixelHeight ; short nAAMinPixelHeight ;
#endif #endif
BOOL bMenuMouseFollow ; BOOL bMenuMouseFollow ;
BOOL bSingleLineTabCtrl ; BOOL bSingleLineTabCtrl ;
BOOL bColoredTabCtrl ; BOOL bColoredTabCtrl ;
#if defined( UNX ) || defined ( FS_PRIV_DEBUG ) #if defined( UNX )
BOOL bFontAntialiasing ; BOOL bFontAntialiasing ;
#endif #endif
...@@ -107,7 +107,7 @@ public: ...@@ -107,7 +107,7 @@ public:
void SetSingleLineTabCtrl(BOOL bSet) {bSingleLineTabCtrl = bSet; SetModified();} void SetSingleLineTabCtrl(BOOL bSet) {bSingleLineTabCtrl = bSet; SetModified();}
BOOL IsSingleLineTabCtrl()const {return bSingleLineTabCtrl;} BOOL IsSingleLineTabCtrl()const {return bSingleLineTabCtrl;}
#if defined( UNX ) || defined ( FS_PRIV_DEBUG ) #if defined( UNX )
void SetFontAntiAliasing( BOOL bSet ) { bFontAntialiasing = bSet; SetModified(); } void SetFontAntiAliasing( BOOL bSet ) { bFontAntialiasing = bSet; SetModified(); }
BOOL IsFontAntiAliasing() const { return bFontAntialiasing; } BOOL IsFontAntiAliasing() const { return bFontAntialiasing; }
......
...@@ -56,13 +56,13 @@ SvtTabAppearanceCfg::SvtTabAppearanceCfg() ...@@ -56,13 +56,13 @@ SvtTabAppearanceCfg::SvtTabAppearanceCfg()
,nScaleFactor ( DEFAULT_SCALEFACTOR ) ,nScaleFactor ( DEFAULT_SCALEFACTOR )
,nSnapMode ( DEFAULT_SNAPMODE ) ,nSnapMode ( DEFAULT_SNAPMODE )
,nMiddleMouse ( MOUSE_MIDDLE_AUTOSCROLL ) ,nMiddleMouse ( MOUSE_MIDDLE_AUTOSCROLL )
#if defined( UNX ) || defined ( FS_PRIV_DEBUG ) #if defined( UNX )
,nAAMinPixelHeight ( DEFAULT_AAMINHEIGHT ) ,nAAMinPixelHeight ( DEFAULT_AAMINHEIGHT )
#endif #endif
,bMenuMouseFollow(FALSE) ,bMenuMouseFollow(FALSE)
,bSingleLineTabCtrl(FALSE) ,bSingleLineTabCtrl(FALSE)
,bColoredTabCtrl(FALSE) ,bColoredTabCtrl(FALSE)
#if defined( UNX ) || defined ( FS_PRIV_DEBUG ) #if defined( UNX )
,bFontAntialiasing ( TRUE ) ,bFontAntialiasing ( TRUE )
#endif #endif
{ {
...@@ -89,7 +89,7 @@ SvtTabAppearanceCfg::SvtTabAppearanceCfg() ...@@ -89,7 +89,7 @@ SvtTabAppearanceCfg::SvtTabAppearanceCfg()
case 5: bColoredTabCtrl = *(sal_Bool*)pValues->getValue(); break; //"Dialog/ColoredTab", case 5: bColoredTabCtrl = *(sal_Bool*)pValues->getValue(); break; //"Dialog/ColoredTab",
case 6: *pValues >>= nSnapMode; break; //"Dialog/MousePositioning", case 6: *pValues >>= nSnapMode; break; //"Dialog/MousePositioning",
case 7: *pValues >>= nMiddleMouse; break; //"Dialog/MiddleMouseButton", case 7: *pValues >>= nMiddleMouse; break; //"Dialog/MiddleMouseButton",
#if defined( UNX ) || defined ( FS_PRIV_DEBUG ) #if defined( UNX )
case 8: bFontAntialiasing = *(sal_Bool*)pValues->getValue(); break; // "FontAntialising/Enabled", case 8: bFontAntialiasing = *(sal_Bool*)pValues->getValue(); break; // "FontAntialising/Enabled",
case 9: *pValues >>= nAAMinPixelHeight; break; // "FontAntialising/MinPixelHeight", case 9: *pValues >>= nAAMinPixelHeight; break; // "FontAntialising/MinPixelHeight",
#endif #endif
...@@ -118,7 +118,7 @@ const Sequence<OUString>& SvtTabAppearanceCfg::GetPropertyNames() ...@@ -118,7 +118,7 @@ const Sequence<OUString>& SvtTabAppearanceCfg::GetPropertyNames()
,"Dialog/ColoredTab" // 5 ,"Dialog/ColoredTab" // 5
,"Dialog/MousePositioning" // 6 ,"Dialog/MousePositioning" // 6
,"Dialog/MiddleMouseButton" // 7 ,"Dialog/MiddleMouseButton" // 7
#if defined( UNX ) || defined ( FS_PRIV_DEBUG ) #if defined( UNX )
,"FontAntiAliasing/Enabled" // 8 ,"FontAntiAliasing/Enabled" // 8
,"FontAntiAliasing/MinPixelHeight" // 9 ,"FontAntiAliasing/MinPixelHeight" // 9
#endif #endif
...@@ -153,7 +153,7 @@ void SvtTabAppearanceCfg::Commit() ...@@ -153,7 +153,7 @@ void SvtTabAppearanceCfg::Commit()
case 5: pValues[nProp].setValue(&bColoredTabCtrl, rType); break; //"Dialog/ColoredTab", case 5: pValues[nProp].setValue(&bColoredTabCtrl, rType); break; //"Dialog/ColoredTab",
case 6: pValues[nProp] <<= nSnapMode; break; //"Dialog/MousePositioning", case 6: pValues[nProp] <<= nSnapMode; break; //"Dialog/MousePositioning",
case 7: pValues[nProp] <<= nMiddleMouse; break; //"Dialog/MiddleMouseButton", case 7: pValues[nProp] <<= nMiddleMouse; break; //"Dialog/MiddleMouseButton",
#if defined( UNX ) || defined ( FS_PRIV_DEBUG ) #if defined( UNX )
case 8: pValues[nProp].setValue(&bFontAntialiasing, rType); break; // "FontAntialising/Enabled", case 8: pValues[nProp].setValue(&bFontAntialiasing, rType); break; // "FontAntialising/Enabled",
case 9: pValues[nProp] <<= nAAMinPixelHeight; break; // "FontAntialising/MinPixelHeight", case 9: pValues[nProp] <<= nAAMinPixelHeight; break; // "FontAntialising/MinPixelHeight",
#endif #endif
...@@ -234,7 +234,7 @@ void SvtTabAppearanceCfg::SetApplicationDefaults ( Application* pApp ) ...@@ -234,7 +234,7 @@ void SvtTabAppearanceCfg::SetApplicationDefaults ( Application* pApp )
hAppStyle.SetScreenZoom( nScaleFactor ); hAppStyle.SetScreenZoom( nScaleFactor );
hAppStyle.SetScreenFontZoom( nScaleFactor ); hAppStyle.SetScreenFontZoom( nScaleFactor );
#if defined( UNX ) || defined ( FS_PRIV_DEBUG ) #if defined( UNX )
// font anti aliasing // font anti aliasing
hAppStyle.SetAntialiasingMinPixelHeight( nAAMinPixelHeight ); hAppStyle.SetAntialiasingMinPixelHeight( nAAMinPixelHeight );
hAppStyle.SetDisplayOptions( bFontAntialiasing ? 0 : DISPLAY_OPTION_AA_DISABLE ); hAppStyle.SetDisplayOptions( bFontAntialiasing ? 0 : DISPLAY_OPTION_AA_DISABLE );
......
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