/* -*- 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_IDL_INC_GLOBALS_HXX #define INCLUDED_IDL_INC_GLOBALS_HXX #include "hash.hxx" struct SvGlobalHashNames { SvStringHashEntry* MM_module; SvStringHashEntry* MM_interface; SvStringHashEntry* MM_shell; SvStringHashEntry* MM_Toggle; SvStringHashEntry* MM_AutoUpdate; SvStringHashEntry* MM_Asynchron; SvStringHashEntry* MM_RecordPerSet; SvStringHashEntry* MM_RecordPerItem; SvStringHashEntry* MM_NoRecord; SvStringHashEntry* MM_RecordAbsolute; SvStringHashEntry* MM_enum; SvStringHashEntry* MM_UINT16; SvStringHashEntry* MM_INT16; SvStringHashEntry* MM_UINT32; SvStringHashEntry* MM_INT32; SvStringHashEntry* MM_BOOL; SvStringHashEntry* MM_BYTE; SvStringHashEntry* MM_float; SvStringHashEntry* MM_double; SvStringHashEntry* MM_item; SvStringHashEntry* MM_import; SvStringHashEntry* MM_SlotIdFile; SvStringHashEntry* MM_include; SvStringHashEntry* MM_ExecMethod; SvStringHashEntry* MM_StateMethod; SvStringHashEntry* MM_GroupId; SvStringHashEntry* MM_Export; SvStringHashEntry* MM_define; SvStringHashEntry* MM_MenuConfig; SvStringHashEntry* MM_ToolBoxConfig; SvStringHashEntry* MM_AccelConfig; SvStringHashEntry* MM_FastCall; SvStringHashEntry* MM_SbxObject; SvStringHashEntry* MM_Container; SvStringHashEntry* MM_ReadOnlyDoc; SvStringHashEntry* MM_struct; SvStringHashEntry* MM_DisableFlags; SvGlobalHashNames(); }; class IdlDll { public: SvStringHashTable * pHashTable; SvGlobalHashNames * pGlobalNames; IdlDll(); ~IdlDll(); }; IdlDll & GetIdlApp(); #define HASH_INLINE( Name ) \ inline SvStringHashEntry * SvHash_##Name() \ { \ if( !GetIdlApp().pGlobalNames ) \ GetIdlApp().pGlobalNames = new SvGlobalHashNames(); \ return GetIdlApp().pGlobalNames->MM_##Name; \ } HASH_INLINE(module) HASH_INLINE(interface) HASH_INLINE(shell) HASH_INLINE(Toggle) HASH_INLINE(AutoUpdate) HASH_INLINE(Asynchron) HASH_INLINE(RecordPerItem) HASH_INLINE(RecordPerSet) HASH_INLINE(NoRecord) HASH_INLINE(RecordAbsolute) HASH_INLINE(enum) HASH_INLINE(UINT16) HASH_INLINE(INT16) HASH_INLINE(UINT32) HASH_INLINE(INT32) HASH_INLINE(BOOL) HASH_INLINE(BYTE) HASH_INLINE(item) HASH_INLINE(import) HASH_INLINE(SlotIdFile) HASH_INLINE(include) HASH_INLINE(ExecMethod) HASH_INLINE(StateMethod) HASH_INLINE(GroupId) HASH_INLINE(float) HASH_INLINE(double) HASH_INLINE(Export) HASH_INLINE(define) HASH_INLINE(MenuConfig) HASH_INLINE(ToolBoxConfig) HASH_INLINE(AccelConfig) HASH_INLINE(FastCall) HASH_INLINE(SbxObject) HASH_INLINE(Container) HASH_INLINE(ReadOnlyDoc) HASH_INLINE(struct) HASH_INLINE(DisableFlags) #endif // INCLUDED_IDL_INC_GLOBALS_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ o/collabora/cp-6.4 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/io
AgeCommit message (Expand)Author
2019-02-09loplugin:indentation in helpcompiler..ioNoel Grandin
2019-02-01Better fix for missing [[noreturn]] of CPPUNIT_FAILStephan Bergmann
2018-12-19use unique_ptr in ioNoel Grandin
2018-10-24remove more rtl::OUString and OString prefixesNoel Grandin
2018-10-21pvs-studio: V557 Array overrun is possibleCaolán McNamara
2018-10-21tdf#120703 (PVS): handle failed reallocMike Kaganski
2018-10-03no need to call empty() before clear()Noel Grandin
2018-09-17New loplugin:externalStephan Bergmann
2018-09-10tdf#42949 Fix IWYU warnings in include/cppuhelper/*Gabor Kelemen
2018-09-09loplugin:simplifyconstruct in helpcompiler..ioNoel Grandin
2018-08-29replace rtl_allocateMemory with std::mallocNoel Grandin
2018-08-01add operator+=(OUStringBuffer) method to OUStringNoel Grandin
2018-07-30Add missing sal/log.hxx headersGabor Kelemen
2018-07-23Fix typosAndrea Gelmini
2018-07-18Fix typosAndrea Gelmini
2018-07-08tdf#84323 - sal - add sane sleep interface: cleanup osl_waitThreadKevin Dubrulle
2018-03-18Use for-range loops in hwpfilter, i18n*, idl* and ioJulien Nabet
2018-01-24Fix typosAndrea Gelmini
2018-01-19SAL_W32 is just an alias for _WIN32Stephan Bergmann
2018-01-15remove local copies of std::min,std::maxNoel Grandin
2018-01-12More loplugin:cstylecast: ioStephan Bergmann
2018-01-11loplugin:useuniqueptr cppu,idlc,io,ucbhelperNoel Grandin
2017-12-19inline use-once typedefsNoel Grandin
2017-12-11loplugin:salcall fix functionsNoel Grandin
2017-11-23loplugin:simplifybool for negation of comparison operatorNoel Grandin
2017-10-30loplugin:constmethod in vcl and stocNoel Grandin
2017-10-23loplugin:includeform: ioStephan Bergmann
2017-10-04add << operator for css::uno::ExceptionNoel Grandin
2017-09-29loplugin:flatten check for throw in then clauseNoel Grandin