/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #ifndef INCLUDED_FORMS_SOURCE_COMPONENT_RADIOBUTTON_HXX #define INCLUDED_FORMS_SOURCE_COMPONENT_RADIOBUTTON_HXX #include "refvaluecomponent.hxx" namespace frm { class ORadioButtonModel final : public OReferenceValueComponent { public: DECLARE_DEFAULT_LEAF_XTOR( ORadioButtonModel ); // XServiceInfo OUString SAL_CALL getImplementationName() override { return OUString("com.sun.star.form.ORadioButtonModel"); } virtual css::uno::Sequence SAL_CALL getSupportedServiceNames() override; // OPropertySetHelper virtual void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const css::uno::Any& rValue ) override; // XPersistObject virtual OUString SAL_CALL getServiceName() override; virtual void SAL_CALL write(const css::uno::Reference< css::io::XObjectOutputStream>& _rxOutStream) override; virtual void SAL_CALL read(const css::uno::Reference< css::io::XObjectInputStream>& _rxInStream) override; // OPropertyChangeListener virtual void _propertyChanged(const css::beans::PropertyChangeEvent& evt) override; // OControlModel's property handling virtual void describeFixedProperties( css::uno::Sequence< css::beans::Property >& /* [out] */ _rProps ) const override; private: // OBoundControlModel overridables virtual css::uno::Any translateDbColumnToControlValue( ) override; virtual bool commitControlValueToDbColumn( bool _bPostReset ) override; virtual css::uno::Any translateExternalValueToControlValue( const css::uno::Any& _rExternalValue ) const override; void SetSiblingPropsTo(const OUString& rPropName, const css::uno::Any& rValue); virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone( ) override; void setControlSource(); }; class ORadioButtonControl: public OBoundControl { public: explicit ORadioButtonControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory); // XServiceInfo OUString SAL_CALL getImplementationName() override { return OUString("com.sun.star.form.ORadioButtonControl"); } virtual css::uno::Sequence SAL_CALL getSupportedServiceNames() override; }; } #endif // INCLUDED_FORMS_SOURCE_COMPONENT_RADIOBUTTON_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ o/collabora/co-24.04.4'>distro/collabora/co-24.04.4 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2015-08-29o3tl/cow_wrapper: remove boost dependencyDaniel Robertson
2015-08-24slideshow: replace for_each with range-based loopDaniel Robertson
2015-08-20loplugin: defaultparamsNoel Grandin
2015-08-12Range-based for-loops.Jan Holesovsky
2015-08-11slideshow: prefer value_type over manual type generationThorsten Behrens
2015-08-11stop inclduing canvas/verbosetraces.hxx and canvas/debug.hxxNorbert Thiebaud
2015-08-08tdf#92459 replace deprecated o3tl featuresDaniel Robertson
2015-08-07cppcheck:noExplicitConstructorNoel Grandin
2015-07-17loplugin:unusedmethods slideshowNoel Grandin
2015-07-10do not include boost/utility.hppMichael Stahl
2015-06-15cppcheck:unreadVariableNoel Grandin
2015-06-04convert B2VectorOrientation to scoped enumNoel Grandin
2015-05-13slideshow: simplify code by replacing std::find_if by std::any_of/std::none_ofTakeshi Abe
2015-04-27More loplugin:simplifyboolStephan Bergmann
2015-04-13loplugin:staticmethodsNoel Grandin
2015-03-04V813: Decreased performanceCaolán McNamara
2015-02-07loplugin:deletedspecialStephan Bergmann
2015-01-29callcatcher: large newly detected unused methods post de-virtualizationCaolán McNamara
2015-01-26new loplugin: change virtual methods to non-virtualNoel Grandin
2015-01-04boost::unordered_map->std::unordered_mapCaolán McNamara
2014-10-30Fixed typos. No automatic tools (sed, and so on).Andrea Gelmini
2014-06-01fdo#68849: Add header guards to all include filesJens Carl
2014-05-01Many spelling fixes: directories r* - z*.Pedro Giffuni
2014-04-30slideshow: sal_Bool->boolNoel Grandin
2014-04-19fixincludeguards.sh: slideshowThomas Arnhold
2014-04-14Clean up function declarations and some unused functionsStephan Bergmann
2014-04-01Explicitly mark overriding destructors as "virtual"Stephan Bergmann
2014-03-27Second batch of adding SAL_OVERRIDE to overriding function declarationsStephan Bergmann
2014-03-10fdo#60698: Split out slideshow code from animationsMarcos Paulo de Souza
2014-02-25Remove visual noise from slideshowAlexander Wilms
2014-02-23Remove unneccessary commentsAlexander Wilms
2013-11-19remove unnecessary use of OUString constructor when assigningNoel Grandin