diff options
Diffstat (limited to 'forms/source/component/DatabaseForm.cxx')
-rw-r--r-- | forms/source/component/DatabaseForm.cxx | 63 |
1 files changed, 31 insertions, 32 deletions
diff --git a/forms/source/component/DatabaseForm.cxx b/forms/source/component/DatabaseForm.cxx index 7dcec5fd63b6..326acecc9f6f 100644 --- a/forms/source/component/DatabaseForm.cxx +++ b/forms/source/component/DatabaseForm.cxx @@ -123,14 +123,14 @@ extern "C" void SAL_CALL createRegistryInfo_ODatabaseForm() static ::frm::OMultiInstanceAutoRegistration< ::frm::ODatabaseForm > aAutoRegistration; } -//......................................................................... + namespace frm { -//......................................................................... -//================================================================== + + //= DocumentModifyGuard -//================================================================== + class DocumentModifyGuard { public: @@ -162,11 +162,11 @@ private: Reference< XModifiable2 > m_xDocumentModify; }; -//================================================================== + //= OFormSubmitResetThread //=----------------------------------------------------------------- //= submitting and resetting html-forms asynchronously -//================================================================== + class OFormSubmitResetThread: public OComponentEventThread @@ -208,9 +208,9 @@ void OFormSubmitResetThread::processEvent( ((ODatabaseForm *)pCompImpl)->reset_impl(true); } -//================================================================== + //= ODatabaseForm -//================================================================== + Reference< XInterface > SAL_CALL ODatabaseForm::Create( const Reference< XMultiServiceFactory >& _rxFactory ) @@ -470,7 +470,7 @@ ODatabaseForm::~ODatabaseForm() } } -//============================================================================== + // html tools OUString ODatabaseForm::GetDataURLEncoded(const Reference<XControl>& SubmitButton, const ::com::sun::star::awt::MouseEvent& MouseEvt) @@ -528,7 +528,7 @@ OUString ODatabaseForm::GetDataEncoded(bool _bURLEncoded,const Reference<XContro return aResult.makeStringAndClear(); } -//============================================================================== + // html tools OUString ODatabaseForm::GetDataTextEncoded(const Reference<XControl>& SubmitButton, const ::com::sun::star::awt::MouseEvent& MouseEvt) @@ -1095,7 +1095,7 @@ sal_Bool ODatabaseForm::InsertFilePart( INetMIMEMessage& rParent, const OUString return sal_True; } -//============================================================================== + // internals void ODatabaseForm::onError( const SQLErrorEvent& _rEvent ) @@ -1351,7 +1351,7 @@ Reference< XConnection > ODatabaseForm::getConnection() return m_aMutex; } -//============================================================================== + // property handling void ODatabaseForm::describeFixedAndAggregateProperties( @@ -1821,7 +1821,7 @@ void SAL_CALL ODatabaseForm::forwardedPropertyValue( sal_Int32 _nHandle, bool /* } } -//============================================================================== + // com::sun::star::beans::XPropertyState PropertyState ODatabaseForm::getPropertyStateByHandle(sal_Int32 nHandle) @@ -1934,7 +1934,7 @@ Any ODatabaseForm::getPropertyDefaultByHandle( sal_Int32 nHandle ) const return aReturn; } -//============================================================================== + // com::sun::star::form::XReset void SAL_CALL ODatabaseForm::reset() throw( RuntimeException, std::exception ) @@ -2108,7 +2108,7 @@ void SAL_CALL ODatabaseForm::removeResetListener(const Reference<XResetListener> m_aResetListeners.removeTypedListener( _rListener ); } -//============================================================================== + // com::sun::star::form::XSubmit void SAL_CALL ODatabaseForm::submit( const Reference<XControl>& Control, @@ -2326,7 +2326,7 @@ void SAL_CALL ODatabaseForm::removeSubmitListener(const Reference<XSubmitListene m_aSubmitListeners.removeInterface(_rListener); } -//============================================================================== + // com::sun::star::sdbc::XSQLErrorBroadcaster void SAL_CALL ODatabaseForm::addSQLErrorListener(const Reference<XSQLErrorListener>& _rListener) throw( RuntimeException, std::exception ) @@ -2347,7 +2347,7 @@ void ODatabaseForm::invlidateParameters() m_aParameterManager.clearAllParameterInformation(); } -//============================================================================== + // OChangeListener void ODatabaseForm::_propertyChanged(const PropertyChangeEvent& evt) throw( RuntimeException ) @@ -2366,7 +2366,7 @@ void ODatabaseForm::_propertyChanged(const PropertyChangeEvent& evt) throw( Runt } } -//============================================================================== + // smartXChild void SAL_CALL ODatabaseForm::setParent(const InterfaceRef& Parent) throw ( ::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException, std::exception) @@ -2427,7 +2427,7 @@ void SAL_CALL ODatabaseForm::setParent(const InterfaceRef& Parent) throw ( ::com xAggregateProperties->setPropertyValue( PROPERTY_DATASOURCE, makeAny( OUString() ) ); } -//============================================================================== + // smartXTabControllerModel sal_Bool SAL_CALL ODatabaseForm::getGroupControl() throw(com::sun::star::uno::RuntimeException, std::exception) @@ -2548,7 +2548,7 @@ void SAL_CALL ODatabaseForm::getGroupByName(const OUString& Name, Sequence< Refe m_pGroupManager->getGroupByName( Name, _rGroup ); } -//============================================================================== + // com::sun::star::lang::XEventListener void SAL_CALL ODatabaseForm::disposing(const EventObject& Source) throw( RuntimeException, std::exception ) @@ -2589,7 +2589,7 @@ void ODatabaseForm::impl_createLoadTimer() m_pLoadTimer->SetTimeoutHdl(LINK(this,ODatabaseForm,OnTimeout)); } -//============================================================================== + // com::sun::star::form::XLoadListener void SAL_CALL ODatabaseForm::loaded(const EventObject& /*aEvent*/) throw( RuntimeException, std::exception ) @@ -2661,7 +2661,7 @@ IMPL_LINK_NOARG(ODatabaseForm, OnTimeout) return 1; } -//============================================================================== + // com::sun::star::form::XLoadable void SAL_CALL ODatabaseForm::load() throw( RuntimeException, std::exception ) @@ -3026,16 +3026,15 @@ void SAL_CALL ODatabaseForm::removeLoadListener(const Reference<XLoadListener>& m_aLoadListeners.removeInterface(aListener); } -//============================================================================== + // com::sun::star::sdbc::XCloseable -//============================================================================== void SAL_CALL ODatabaseForm::close() throw( SQLException, RuntimeException, std::exception ) { // unload will close the aggregate unload(); } -//============================================================================== + // com::sun::star::sdbc::XRowSetListener void SAL_CALL ODatabaseForm::cursorMoved(const EventObject& /*event*/) throw( RuntimeException, std::exception ) @@ -3227,7 +3226,7 @@ sal_Bool SAL_CALL ODatabaseForm::approveRowSetChange(const EventObject& event) t return sal_True; } -//============================================================================== + // com::sun::star::sdb::XRowSetApproveBroadcaster void SAL_CALL ODatabaseForm::addRowSetApproveListener(const Reference<XRowSetApproveListener>& _rListener) throw( RuntimeException, std::exception ) @@ -3264,7 +3263,7 @@ void SAL_CALL ODatabaseForm::removeRowSetApproveListener(const Reference<XRowSet } } -//============================================================================== + // com::sun:star::form::XDatabaseParameterBroadcaster void SAL_CALL ODatabaseForm::addDatabaseParameterListener(const Reference<XDatabaseParameterListener>& _rListener) throw( RuntimeException, std::exception ) @@ -3289,7 +3288,7 @@ void SAL_CALL ODatabaseForm::removeParameterListener(const Reference<XDatabasePa ODatabaseForm::removeDatabaseParameterListener( _rListener ); } -//============================================================================== + // com::sun::star::sdb::XCompletedExecution void SAL_CALL ODatabaseForm::executeWithCompletion( const Reference< XInteractionHandler >& _rxHandler ) throw(SQLException, RuntimeException, std::exception) @@ -3313,7 +3312,7 @@ void SAL_CALL ODatabaseForm::executeWithCompletion( const Reference< XInteractio } } -//============================================================================== + // com::sun::star::sdbc::XRowSet void SAL_CALL ODatabaseForm::execute() throw( SQLException, RuntimeException, std::exception ) @@ -3353,7 +3352,7 @@ void SAL_CALL ODatabaseForm::removeRowSetListener(const Reference<XRowSetListene m_xAggregateAsRowSet->removeRowSetListener(_rListener); } -//============================================================================== + // com::sun::star::sdbc::XResultSet sal_Bool SAL_CALL ODatabaseForm::next() throw( SQLException, RuntimeException, std::exception ) @@ -4111,8 +4110,8 @@ void SAL_CALL ODatabaseForm::setName(const OUString& aName) throw( RuntimeExcept setFastPropertyValue(PROPERTY_ID_NAME, makeAny(aName)); } -//......................................................................... + } // namespace frm -//......................................................................... + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |