/* -*- 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/. * */ #include namespace vcl::pdf { namespace { void appendResourceMap(OStringBuffer& rBuf, const char* pPrefix, std::map const& rList) { if (rList.empty()) return; rBuf.append('/'); rBuf.append(pPrefix); rBuf.append("<<"); int ni = 0; for (auto const& item : rList) { if (!item.first.isEmpty() && item.second > 0) { rBuf.append('/'); rBuf.append(item.first); rBuf.append(' '); rBuf.append(item.second); rBuf.append(" 0 R"); if (((++ni) & 7) == 0) rBuf.append('\n'); } } rBuf.append(">>\n"); } } void ResourceDict::append(OStringBuffer& rBuf, sal_Int32 nFontDictObject) { rBuf.append("<<\n"); if (nFontDictObject) rBuf.append("/Font " + OString::number(nFontDictObject) + " 0 R\n"); appendResourceMap(rBuf, "XObject", m_aXObjects); appendResourceMap(rBuf, "ExtGState", m_aExtGStates); appendResourceMap(rBuf, "Shading", m_aShadings); appendResourceMap(rBuf, "Pattern", m_aPatterns); rBuf.append("/ProcSet[/PDF/Text"); if (!m_aXObjects.empty()) rBuf.append("/ImageC/ImageI/ImageB"); rBuf.append("]\n>>\n"); } } // end vcl::pdf /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ on value='distro/cib/libreoffice-6-1'>distro/cib/libreoffice-6-1 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/jvmfwk
AgeCommit message (Expand)Author
2020-01-14loplugin:finalclasses in i18npool..linguisticNoel Grandin
2019-12-19sal_Char->char in idlc..linguisticNoel Grandin
2019-12-16unused #includeStephan Bergmann
2019-12-14Remove JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY, JFW_PLUGIN_FORCE_ACCESSIBILITYStephan Bergmann
2019-12-14Remove unused jvmfwk *rc filesStephan Bergmann
2019-12-05Fix typoAndrea Gelmini
2019-12-01Introduce o3tl::optional as an alias for std::optionalStephan Bergmann
2019-11-22Extend loplugin:external to warn about classesStephan Bergmann
2019-10-24Introduce OStringCharStephan Bergmann
2019-10-17Remove some memset callsMike Kaganski
2019-10-17Rename OUStringLiteral1 to OUStringCharStephan Bergmann
2019-10-14loplugin:stringadd look for unnecessary temporariesNoel Grandin
2019-10-01loplugin:stringadd in helpcompiler..ooxNoel Grandin
2019-08-12Fix typosAndrea Gelmini
2019-08-04Fix typoAndrea Gelmini
2019-07-31Improved loplugin:stringconstant (now that GCC 7 supports it): jvmfwkStephan Bergmann
2019-07-29Avoid memcpy nonnull issueStephan Bergmann
2019-07-29loplugin:sequentialassignNoel Grandin
2019-07-28loplugin:oncevarNoel Grandin
2019-07-26Bump Java baseline to Java 8Stephan Bergmann
2019-06-17simplify codeStephan Bergmann
2019-06-11Fix swapping of vector elementsStephan Bergmann
2019-04-27osl/diagnose.h and diagnostics.h are used when OSL_DEBUG_LEVEL >= 2Tomoyuki Kubota
2019-04-26tdf#42949 Fix IWYU warnings in jvmfwk/ & jvmaccess/Gabor Kelemen
2019-04-15improve loplugin simplifyconstructNoel Grandin
2019-04-13loplugin:sequentialassign in embeddedobj..l10ntoolsNoel Grandin
2019-04-12loplugin:unusedmethodsNoel Grandin
2019-04-09tdf#124503: Support JRE installations with unknown java.vendor propertyStephan Bergmann
2019-03-31tdf#120703 PVS: Silence V575 warningsMike Kaganski
2019-03-26Note when javavendors_*.xml <updated> should be updatedStephan Bergmann
2019-03-18Index is not needed for single getToken callMatteo Casalin
2019-02-24loplugin:unusedfields in helpcompiler..jvmfwkNoel Grandin
2019-02-13Javavendors: Set minimum version to 1.6Samuel Mehrbrodt
2019-02-09loplugin:indentation in jvmfwk..lotuswordproNoel Grandin
2019-02-04Get rid of some macrosStephan Bergmann
2019-02-04Support Amazon CorrettoMike Kaganski
2019-01-22Silence bogus -Werror=clobbered (GCC 7 --enable-optimized)Stephan Bergmann
2019-01-22Support AdoptOpenJDKhimajin100000
2018-12-08Remove obsolete SAL_FALLTHROUGH completelyStephan Bergmann
2018-11-29Rename Mac OS X to official name macOS in comments and documentationBartosz Kosiorek
2018-11-25tdf#120703 PVS: V560 A part of conditional expression is always true/falseMike Kaganski
2018-11-10tdf#120703 PVS: V547 Expression is always true/falseMike Kaganski
2018-11-02fix signatures of deleted copy/assign operatorsNoel Grandin
2018-10-27tdf#120703 PVS: V530 The return value of function is required to be utilizedMike Kaganski
2018-10-23clang-tidy performance-unnecessary-copy-init in idl..reportdesignNoel Grandin
2018-10-22loplugin:staticvar in variousNoel Grandin
2018-10-19clang-tidy readability-container-size-emptyNoel Grandin