/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * 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 * * This file is part of OpenOffice.org. * * OpenOffice.org is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 3 * only, as published by the Free Software Foundation. * * OpenOffice.org is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License version 3 for more details * (a copy is included in the LICENSE file that accompanied this code). * * You should have received a copy of the GNU Lesser General Public License * version 3 along with OpenOffice.org. If not, see * * for a copy of the LGPLv3 License. * ************************************************************************/ #ifndef _FORMS_PATTERN_HXX_ #define _FORMS_PATTERN_HXX_ #include "EditBase.hxx" #include #include //......................................................................... namespace frm { //......................................................................... //================================================================== //= OPatternModel //================================================================== class OPatternModel :public OEditBaseModel { private: ::com::sun::star::uno::Any m_aLastKnownValue; ::std::auto_ptr< ::dbtools::FormattedColumnValue > m_pFormattedValue; protected: virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> _getTypes(); public: DECLARE_DEFAULT_LEAF_XTOR( OPatternModel ); // ::com::sun::star::lang::XServiceInfo IMPLEMENTATION_NAME(OPatternModel); virtual StringSequence SAL_CALL getSupportedServiceNames() throw(); // ::com::sun::star::io::XPersistObject virtual ::rtl::OUString SAL_CALL getServiceName() throw ( ::com::sun::star::uno::RuntimeException); // OControlModel's property handling virtual void describeFixedProperties( ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property >& /* [out] */ _rProps ) const; protected: // OBoundControlModel overridables virtual ::com::sun::star::uno::Any translateDbColumnToControlValue( ); virtual sal_Bool commitControlValueToDbColumn( bool _bPostReset ); virtual void onConnectedDbColumn( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxForm ); virtual void onDisconnectedDbColumn(); virtual ::com::sun::star::uno::Any getDefaultForReset() const; virtual void resetNoBroadcast(); protected: DECLARE_XCLONEABLE(); }; //================================================================== //= OPatternControl //================================================================== class OPatternControl: public OBoundControl { protected: virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> _getTypes(); public: OPatternControl(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory>& _rxFactory); // ::com::sun::star::lang::XServiceInfo IMPLEMENTATION_NAME(OPatternControl); virtual StringSequence SAL_CALL getSupportedServiceNames() throw(); }; //......................................................................... } // namespace frm //......................................................................... #endif // _FORMS_PATTERN_HXX_ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ tro/collabora/libreoffice-4.0.6.2'>distro/collabora/libreoffice-4.0.6.2 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/basic/inc
AgeCommit message (Expand)Author
2018-03-20drop unnecessary includesCaolán McNamara
2018-01-02RID_* can be extern global variablesNoel Grandin
2017-11-10loplugin:finalclasses in basic,basegfxNoel Grandin
2017-10-23loplugin:includeform: basicStephan Bergmann
2017-10-10basic: consistently use "" and <> in include directivesMike Kaganski
2017-09-22Fresh run of bin/update_pch.shMike Kaganski
2017-08-25no need to use ERRCODE_RES_MASK hereNoel Grandin
2017-08-02normalize resource locale ctor construction mechanismsCaolán McNamara
2017-08-01loplugin:checkunusedparamsNoel Grandin
2017-07-21migrate to boost::gettextCaolán McNamara
2017-07-20loplugin:constparams in basicNoel Grandin
2017-07-02loplugin:casttovoid: basicStephan Bergmann
2017-06-15replace SbxError typedef with ErrCodeNoel Grandin
2017-05-02loplugin:checkunusedparams in basctl and basicNoel Grandin
2017-04-27tools: move errcode.hxx to the vcl moduleChris Sherlock
2017-03-17remove unused defines from HRC files in variousNoel Grandin
2017-01-26Remove dynamic exception specificationsStephan Bergmann
2017-01-19New loplugin:dynexcspec: Add @throws documentation, basicStephan Bergmann
2016-10-19loplugin:expandablemethodds in basctl..chart2Noel Grandin
2016-09-13loplugin:dllprivateStephan Bergmann
2016-09-13loplugin:override: No more need for the "MSVC dtor override" workaroundStephan Bergmann
2016-08-29BASIC : Remove useless SbxBase::GetCreatorArnaud Versini
2016-08-13BASIC: Use more often std::unique_ptrArnaud Versini