/* -*- 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_COMPHELPER_PROPERTYCONTAINER_HXX #define INCLUDED_COMPHELPER_PROPERTYCONTAINER_HXX #include #include #include namespace com { namespace sun { namespace star { namespace uno { class Any; } } } } namespace com { namespace sun { namespace star { namespace uno { class Type; } } } } namespace comphelper { /** a OPropertySetHelper implementation which is just a simple container for properties represented by class members, usually in a derived class.
A restriction of this class is that no value conversions are made on a setPropertyValue call. Though the base class supports this with the convertFastPropertyValue method, the OPropertyContainer accepts only values which already have the correct type, it's unable to convert, for instance, a long to a short. */ class COMPHELPER_DLLPUBLIC OPropertyContainer :public cppu::OPropertySetHelper ,public OPropertyContainerHelper { public: // this dtor is needed otherwise we can get a wrong delete operator virtual ~OPropertyContainer(); protected: OPropertyContainer(::cppu::OBroadcastHelper& _rBHelper); /// for scripting : the types of the interfaces supported by this class /// /// @throws css::uno::RuntimeException static css::uno::Sequence< css::uno::Type > getBaseTypes(); // OPropertySetHelper overridables virtual sal_Bool SAL_CALL convertFastPropertyValue( css::uno::Any & rConvertedValue, css::uno::Any & rOldValue, sal_Int32 nHandle, const css::uno::Any& rValue ) override; virtual void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const css::uno::Any& rValue ) override; using OPropertySetHelper::getFastPropertyValue; virtual void SAL_CALL getFastPropertyValue( css::uno::Any& rValue, sal_Int32 nHandle ) const override; // disambiguate a base class method (XFastPropertySet) using OPropertySetHelper::setFastPropertyValue; }; } // namespace comphelper #endif // INCLUDED_COMPHELPER_PROPERTYCONTAINER_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ tion> LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/cppu
AgeCommit message (Expand)Author
2015-06-02loplugin:cstylecast: deal with those that are (technically) const_castStephan Bergmann
2015-05-18Remove include stdio (part2)Julien Nabet
2015-05-12loplugin:redundantcast: reinterpret_cast to void*Stephan Bergmann
2015-05-11loplugin:cstylecast: nop between pointer types of exactly same spellingStephan Bergmann
2015-04-22Various #include <sal/log.hxx> fixupsStephan Bergmann
2015-04-15remove unnecessary use of void in function declarationsNoel Grandin
2015-04-01Add support for cppu::UnoType<void>Stephan Bergmann
2015-04-01Replace remaining getCppuType et al with cppu::UnoTypeStephan Bergmann
2015-03-31Use OUString::unacquiredStephan Bergmann
2015-03-31Reduce to static_cast any reinterpret_cast from void pointersStephan Bergmann
2015-03-28Clean up C-style casts from pointers to voidStephan Bergmann
2015-02-18TyposJulien Nabet
2015-02-05convert all remaining BOOST_STATIC_ASSERT to static_assertCaolán McNamara
2015-01-29cppu: convert some OSL_TRACEMichael Stahl
2015-01-29cppu: the LogBrige really needs its own SAL_LOG areaMichael Stahl
2015-01-28Some more loplugin:cstylecast clean-upStephan Bergmann
2015-01-20Some more loplugin:cstylecast: cppuStephan Bergmann
2015-01-08valgrind: uninitialized variableCaolán McNamara
2015-01-08coverity#1261762 Resource leakCaolán McNamara
2015-01-05Fix includeStephan Bergmann
2015-01-05Include function declarationsStephan Bergmann
2015-01-05Mark function declarations as CPPU_DLLPUBLIC, not only definitionsStephan Bergmann
2015-01-05Missing constStephan Bergmann
2015-01-05More unnamed namespace clean-upStephan Bergmann
2015-01-05These extern "C" functions are not in an unnamed namespaceStephan Bergmann
2015-01-05These extern "C" functions are not in namespace cppuStephan Bergmann
2015-01-05includeStephan Bergmann
2015-01-05Some loplugin:revisibility clean-upStephan Bergmann
2015-01-02OSL_FAIL -> SAL_WARNStephan Bergmann
2014-12-27boost::unordered_map -> c++11 std::unordered_mapCaolán McNamara
2014-12-19Remove unused */qa/checkapi/Stephan Bergmann
2014-12-16cppu: Use appropriate OUString functions on string constantsStephan Bergmann
2014-12-11document coverity#706128 Wrong sizeof argumentCaolán McNamara
2014-11-20Clean up includesStephan Bergmann
2014-11-18cppu: clean up public headers with include-what-you-useMichael Stahl
2014-11-18coverity#440589 silence Write to pointer after freeCaolán McNamara
2014-11-18Assert that typelib_typedescription_release will not destroy pTDR->pTypeStephan Bergmann
2014-11-17cid#1254675 Uncaught exceptionStephan Bergmann
2014-11-17sal: clean up public headers with include-what-you-useMichael Stahl
2014-11-14coverity#704593 silence Dereference after null checkCaolán McNamara
2014-11-14cid#983623 Don't throw DisposedException past uno_threadpool_putJobStephan Bergmann
2014-11-05markup with event type not checker typeCaolán McNamara
2014-10-31Removed duplicated includesAndrea Gelmini
2014-10-30document array_vs_singleton dismissalsCaolán McNamara
2014-10-30restore using rtl for OSL_DEBUG_LEVEL > 1Caolán McNamara
2014-10-29remove unnecessary 'using namespace rtl' declarationsNoel Grandin
2014-10-27see if we can auto-ignore new Sequence false positives as suchCaolán McNamara