diff options
Diffstat (limited to 'fpicker/source/win32/filepicker/controlcommand.cxx')
-rw-r--r-- | fpicker/source/win32/filepicker/controlcommand.cxx | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/fpicker/source/win32/filepicker/controlcommand.cxx b/fpicker/source/win32/filepicker/controlcommand.cxx index 464d7c72df3f..77385fe5fa49 100644 --- a/fpicker/source/win32/filepicker/controlcommand.cxx +++ b/fpicker/source/win32/filepicker/controlcommand.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -115,8 +115,8 @@ sal_Int16 SAL_CALL CControlCommand::getControlId( ) const // //--------------------------------------------- -CValueControlCommand::CValueControlCommand( - sal_Int16 aControlId, +CValueControlCommand::CValueControlCommand( + sal_Int16 aControlId, sal_Int16 aControlAction, const ::com::sun::star::uno::Any& aValue ) : CControlCommand( aControlId ), @@ -133,7 +133,7 @@ void SAL_CALL CValueControlCommand::exec( CFilePickerState* aFilePickerState ) { OSL_ENSURE( aFilePickerState, "empty reference" ); - aFilePickerState->setValue( + aFilePickerState->setValue( getControlId( ), m_aControlAction, m_aValue ); @@ -145,14 +145,14 @@ void SAL_CALL CValueControlCommand::exec( CFilePickerState* aFilePickerState ) CControlCommandResult* SAL_CALL CValueControlCommand::handleRequest( CControlCommandRequest* aRequest ) { - CValueControlCommandRequest* value_request = + CValueControlCommandRequest* value_request = dynamic_cast< CValueControlCommandRequest* >( aRequest ); CControlCommandResult* result; CControlCommand* nextCommand; - if ( value_request && - (value_request->getControlId( ) == getControlId( )) && + if ( value_request && + (value_request->getControlId( ) == getControlId( )) && (value_request->getControlAction( ) == m_aControlAction) ) { result = new CValueCommandResult( sal_True, m_aValue ); @@ -190,15 +190,15 @@ sal_Int16 SAL_CALL CValueControlCommand::getControlAction( ) const { return m_aValue; } - + //--------------------------------------------- // //--------------------------------------------- -CLabelControlCommand::CLabelControlCommand( - sal_Int16 aControlId, - const rtl::OUString& aLabel ) : +CLabelControlCommand::CLabelControlCommand( + sal_Int16 aControlId, + const rtl::OUString& aLabel ) : CControlCommand( aControlId ), m_aLabel( aLabel ) { @@ -226,10 +226,10 @@ CControlCommandResult* SAL_CALL CLabelControlCommand::handleRequest( CControlCom CControlCommandResult* result; CControlCommand* nextCommand; - CValueControlCommandRequest* value_request = + CValueControlCommandRequest* value_request = dynamic_cast< CValueControlCommandRequest* >( aRequest ); - if ( !value_request && + if ( !value_request && (aRequest->getControlId( ) == getControlId( )) ) { result = new CLabelCommandResult( sal_True, m_aLabel ); @@ -263,8 +263,8 @@ rtl::OUString SAL_CALL CLabelControlCommand::getLabel( ) const // //--------------------------------------------- -CEnableControlCommand::CEnableControlCommand( - sal_Int16 aControlId, +CEnableControlCommand::CEnableControlCommand( + sal_Int16 aControlId, sal_Bool bEnable ) : CControlCommand( aControlId ), m_bEnable( bEnable ) |