/* -*- 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 . */ #pragma once #include #include #include #define MAXFUNCPARAM 16 #define MAXARRSIZE 0xfffe #ifndef _WIN32 #define CALLTYPE #else #define CALLTYPE __cdecl #endif extern "C" { typedef void (CALLTYPE* AdvData)( double& nHandle, void* pData ); } enum class ParamType { PTR_DOUBLE, PTR_STRING, PTR_DOUBLE_ARR, PTR_STRING_ARR, PTR_CELL_ARR, NONE }; class ModuleData; class LegacyFuncData { friend class LegacyFuncCollection; const ModuleData* pModuleData; OUString aInternalName; OUString aFuncName; sal_uInt16 nNumber; sal_uInt16 nParamCount; ParamType eAsyncType; ParamType eParamType[MAXFUNCPARAM]; public: LegacyFuncData(const ModuleData*pModule, OUString aIName, OUString aFName, sal_uInt16 nNo, sal_uInt16 nCount, const ParamType* peType, ParamType eType); LegacyFuncData(const LegacyFuncData& rData); const OUString& GetModuleName() const; const OUString& GetInternalName() const { return aInternalName; } sal_uInt16 GetParamCount() const { return nParamCount; } ParamType GetParamType(sal_uInt16 nIndex) const { return eParamType[nIndex]; } ParamType GetAsyncType() const { return eAsyncType; } void Call(void** ppParam) const; void Unadvice(double nHandle); /** name and description of parameter nParam. nParam==0 => Desc := function description, Name := n/a */ void getParamDesc( OUString& aName, OUString& aDesc, sal_uInt16 nParam ) const; }; class LegacyFuncCollection { typedef std::map> MapType; MapType m_Data; public: typedef MapType::const_iterator const_iterator; LegacyFuncCollection(); LegacyFuncCollection(const LegacyFuncCollection& r); const LegacyFuncData* findByName(const OUString& rName) const; LegacyFuncData* findByName(const OUString& rName); void insert(LegacyFuncData* pNew); const_iterator begin() const; const_iterator end() const; }; bool InitExternalFunc(const OUString& rModuleName); void ExitExternalFunc(); /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ ra/co-24.04.6'>distro/collabora/co-24.04.6 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2022-06-13tdf#125040 Make single mode toolbar context awareMaxim Monastirsky
2022-04-13loplugin:stringviewparam whitelist some more functionsNoel Grandin
2022-04-02loplugin:stringviewparam convert methods using indexOfNoel Grandin
2021-03-23tdf#124176 Use pragma once in f*Vincent LE GARREC
2021-03-11use strong_int for item ids in vcl::ToolBoxNoel
2021-02-21loplugin:refcounting in frameworkNoel
2020-12-27Simplify loplugin:stringviewparam comparison operator handlingStephan Bergmann
2020-11-24loplugin:stringviewparam extend to comparison operatorsNoel
2020-11-17loplugin:stringviewparam check methods tooNoel
2020-08-31Remove remains of private:image/ via ImageIdentifier addon propertyMaxim Monastirsky
2020-08-29loplugin:unusedfieldsNoel Grandin
2019-11-11tdf#42949 Fix IWYU warnings in framework/*/*hxxGabor Kelemen
2019-11-04Toolbar: Added usage of ImageControl as toolbar controlSerge Krot
2019-11-01Toolbar: add usage of FixedText as toolbar controlSerge Krot
2019-09-26loplugin:constmethod in framework..lotuswordproNoel Grandin
2019-02-24loplugin:unusedfields in frameworkNoel Grandin
2018-07-27loplugin:returnconstant in frameworkNoel Grandin
2017-05-02loplugin:checkunusedparams in frameworkNoel Grandin
2017-03-13Clean up integer types representing positions in ToolBox's item vectorStephan Bergmann
2016-04-18clang-tidy performance-unnecessary-copy-initializationNoel Grandin
2016-01-09Fix Addons.xcu toolbar items width handlingMaxim Monastirsky
2015-11-18Remove unused toolbaritem propertiesSamuel Mehrbrodt
2015-10-14com::sun::star->css in frameworkNoel Grandin
2015-10-12Replace "SAL_DELETED_FUNCTION" with "= delete" in LIBO_INTERNAL_ONLY codeStephan Bergmann
2015-04-10vclwidget: change all vcl::window fields to be wrapped in VclPtrNoel Grandin
2015-02-07loplugin:deletedspecialStephan Bergmann
2014-05-14Find places where uno::Sequence is passed by value.Noel Grandin
2013-11-05fixincludeguards.sh: frameworkThomas Arnhold
2013-04-08fdo#46808, Convert svt::ToolboxController to XComponentContextNoel Grandin
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák
2012-06-21re-base on ALv2 code.Michael Meeks
2011-03-29drop bogus executable flag from [ch]xx/bas/asm filesFrancisco Saito
2011-03-12Merge commit 'ooo/DEV300_m101' into integration/dev300_m101Thorsten Behrens