/* -*- 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 . */ #include #include #include #include #include #include using namespace ::com::sun::star::uno; using namespace ::xmloff::token; using ::com::sun::star::beans::PropertyValue; constexpr OUStringLiteral gsStarBasic(u"StarBasic"); constexpr OUStringLiteral gsLibrary(u"Library"); constexpr OUStringLiteral gsMacroName(u"MacroName"); constexpr OUStringLiteral gsStarOffice(u"StarOffice"); constexpr OUStringLiteral gsApplication(u"application"); XMLStarBasicExportHandler::XMLStarBasicExportHandler() { } XMLStarBasicExportHandler::~XMLStarBasicExportHandler() { } void XMLStarBasicExportHandler::Export( SvXMLExport& rExport, const OUString& rEventQName, const Sequence & rValues, bool bUseWhitespace) { rExport.AddAttribute(XML_NAMESPACE_SCRIPT, XML_LANGUAGE, rExport.GetNamespaceMap().GetQNameByKey( XML_NAMESPACE_OOO, gsStarBasic ) ); rExport.AddAttribute(XML_NAMESPACE_SCRIPT, XML_EVENT_NAME, rEventQName); OUString sLocation, sName; for(const auto& rValue : rValues) { if (gsLibrary == rValue.Name) { OUString sTmp; rValue.Value >>= sTmp; sLocation = GetXMLToken( (sTmp.equalsIgnoreAsciiCase(gsApplication) || sTmp.equalsIgnoreAsciiCase(gsStarOffice) ) ? XML_APPLICATION : XML_DOCUMENT ); } else if (gsMacroName == rValue.Name) { rValue.Value >>= sName; } // else: disregard } if( !sLocation.isEmpty() ) { OUString sTmp = sLocation + ":" + sName; rExport.AddAttribute(XML_NAMESPACE_SCRIPT, XML_MACRO_NAME, sTmp); } else { rExport.AddAttribute(XML_NAMESPACE_SCRIPT, XML_MACRO_NAME, sName ); } SvXMLElementExport aEventElemt(rExport, XML_NAMESPACE_SCRIPT, XML_EVENT_LISTENER, bUseWhitespace, false); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ n> LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/cppu/qa
box.h?id=abfdfe6ac1bfc917d1693874f9dec80167e0806f'>weld SvxFmTbxCtlRecTotal label item window
AgeCommit message (Expand)Author
2021-05-02throw() -> noexcept, part 2/3: Automatic loplugin:noexcept rewriteStephan Bergmann
2021-02-08sal_Unicode is always char16_t in LIBO_INTERNAL_ONLY code nowStephan Bergmann
2021-02-08Improve loplugin:cppunitassertequal for CPPUNIT_ASSERT(a && b)Stephan Bergmann
2020-11-06Reinstate o3tl/cppunittraitshelper.hxx uses for C++20Stephan Bergmann
2020-11-06tdf#42949 Fix new IWYU warnings in directories c*Gabor Kelemen
2020-04-28tdf#115399: Don't kill pre-existing typelib_TypeDescription membersStephan Bergmann
2020-01-15clang-tidy modernize-concat-nested-namespace in cppcanvas..cppuhelperNoel Grandin
2020-01-07Replace a CPPUNIT_ASSERT_EQUAL with a static_assertStephan Bergmann
2019-12-03Adapt CPPUNIT_ASSERT to C++20 deleted ostream << for sal_Unicode (aka char16_t)Stephan Bergmann
2019-04-15improve loplugin simplifyconstructNoel Grandin
2019-01-29tdf#42949 Fix IWYU warnings in cppu/Gabor Kelemen
2018-12-06Remove obsolete GCC version checksStephan Bergmann
2018-10-24remove more rtl::OUString and OString prefixesNoel Grandin
2018-09-17New loplugin:externalStephan Bergmann
2018-06-01loplugin: look for CPPUNIT_ASSERT_EQUALS with params swappedNoel Grandin
2018-01-15More loplugin:cstylecast: cppuStephan Bergmann
2017-12-07loplugin:salcall handle static methodsNoel Grandin
2017-10-23loplugin:includeform: cppuStephan Bergmann
2017-10-04add << operator for css::uno::ExceptionNoel Grandin
2017-09-13Enable -Wunreachable-codeStephan Bergmann
2017-07-02loplugin:casttovoid: cppuStephan Bergmann
2017-05-09cleanup osl/diagnose.h includesJochen Nitschke
2017-04-28loplugin:salunicodeliteral: cppuStephan Bergmann
2017-04-28loplugin:cppunitassertequals: cppuStephan Bergmann
2017-04-28Remove now-duplicate css::uno::Type operator <<Stephan Bergmann
2017-04-14update cppunit to 1.14.0Markus Mohrhard
2017-04-12clang-tidy: readability-else-after-returnNoel Grandin
2017-04-04make UNO enums scoped for internal LO codeNoel Grandin
2017-01-31teach lolugin:stringconstant about calling constructorsNoel Grandin
2017-01-26Remove dynamic exception specificationsStephan Bergmann
2016-11-21Delete the "Any-to-Any" template specializations for LIBO_INTERNAL_ONLYStephan Bergmann
2016-09-13loplugin:override: No more need for the "MSVC dtor override" workaroundStephan Bergmann
2016-08-19cppu: fix loplugin:cppunitassertequals warningsMiklos Vajna
Caolán McNamara
and SvxFmTbxCtlRecText label item window and SvxFmTbxCtlRecFromText label item window Change-Id: I5c5bbdacfe7e69abd44b9a548deadbf6c4d2a7d0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88283 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-01-20loplugin:unusedfieldsNoel Grandin
Change-Id: If130c8a4861998d7eafd2e9525592f3c811ec21c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87069 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-07-31Fix typosAndrea Gelmini
Change-Id: I2b9361433df39f66ec8328262a3128cf7294b6e1 Reviewed-on: https://gerrit.libreoffice.org/76720 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2019-05-04tdf#105881 Toolbar keyboard navigation fixesJim Raykowski
This patch makes toolbar keyboard navigation wrap to the begining or end toolbar item and enables access to the overflow menu using the keyboard. Change-Id: I5975b0f731beb00cf26f8e8a33e6ea4fa9322881 Reviewed-on: https://gerrit.libreoffice.org/71718 Tested-by: Jenkins Reviewed-by: Jim Raykowski <raykowj@gmail.com>
2019-03-26loplugin:singlevalfieldsNoel Grandin
Change-Id: I4a56a27ebce927b8e21cf37bb2c527caf1317bcc Reviewed-on: https://gerrit.libreoffice.org/69681 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-06-14wayland: Make popup menus not show off-screenMaxim Monastirsky
Depends on gtk 3.22 for gtk_menu_popup_at_rect. Had to rework the toolbar context menu to not execute async, as otherwise it just closes immediately. (Basically it's same as rhbz#1342823, except that I couldn't find a way to feed gtk_menu_popup_at_rect with the correct timestamp). Change-Id: I779d8803c80314d93a342f1294c7280f1adf4c98 Reviewed-on: https://gerrit.libreoffice.org/55772 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
2018-02-15move ToolboxButtonColorUpdater bitmap update to VirtualDeviceNoel Grandin
to avoid doing a read-modify-write cycle on the item images on the toolbar, add an overlay image member to Toolbox items. part of the process of making Bitmap an internal detail of vcl/ Change-Id: Ie4a886c48484a06694fc4c066ee0845b39d27f0b Reviewed-on: https://gerrit.libreoffice.org/49649 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>