/* -*- 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 class SotStorage; #define EQNOLEFILEHDR_SIZE 28 class EQNOLEFILEHDR { public: EQNOLEFILEHDR() : nCBHdr(0),nVersion(0), nCf(0),nCBObject(0),nReserved1(0),nReserved2(0), nReserved3(0), nReserved4(0) {} explicit EQNOLEFILEHDR(sal_uInt32 nLenMTEF) : nCBHdr(0x1c),nVersion(0x20000), nCf(0xc1c6),nCBObject(nLenMTEF),nReserved1(0),nReserved2(0x0014F690), nReserved3(0x0014EBB4), nReserved4(0) {} sal_uInt16 nCBHdr; // length of header, sizeof(EQNOLEFILEHDR) = 28 sal_uInt32 nVersion; // hiword = 2, loword = 0 sal_uInt16 nCf; // clipboard format ("MathType EF") sal_uInt32 nCBObject; // length of MTEF data following this header sal_uInt32 nReserved1; // not used sal_uInt32 nReserved2; // not used sal_uInt32 nReserved3; // not used sal_uInt32 nReserved4; // not used void Read(SvStream* pS) { pS->ReadUInt16( nCBHdr ); pS->ReadUInt32( nVersion ); pS->ReadUInt16( nCf ); pS->ReadUInt32( nCBObject ); pS->ReadUInt32( nReserved1 ); pS->ReadUInt32( nReserved2 ); pS->ReadUInt32( nReserved3 ); pS->ReadUInt32( nReserved4 ); } void Write(SvStream* pS) { pS->WriteUInt16( nCBHdr ); pS->WriteUInt32( nVersion ); pS->WriteUInt16( nCf ); pS->WriteUInt32( nCBObject ); pS->WriteUInt32( nReserved1 ); pS->WriteUInt32( nReserved2 ); pS->WriteUInt32( nReserved3 ); pS->WriteUInt32( nReserved4 ); } }; bool GetMathTypeVersion( SotStorage* pStor, sal_uInt8 &nVersion ); /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ ue='distro/collabora/co-23.05'>distro/collabora/co-23.05 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
022-12-16 08:50:55 +0000'>2022-12-16
AgeCommit message (Expand)Author
2023-11-06Make CustomTarget_odk/build-examples_java more robust against localized envsStephan Bergmann
2023-10-27Explicitly build the ODK examples against C++03Stephan Bergmann
2020-09-27Restrict odk/examples to non-parallel makeStephan Bergmann
2020-01-06Avoid $(shell $(gb_MKTEMP))Stephan Bergmann
2020-01-06Fix MACOSX_SHELL_HACKStephan Bergmann
2019-10-09Make odk build-examples work on macOS 10.15Stephan Bergmann
sd: check SfxViewFrame::Current()Caolán McNamara
2022-11-02tdf#54857 elide more dynamic_castNoel Grandin
2022-09-11basegfx: replace typedef with a class B2DSize based on Size2DTomaž Vajngerl
2022-08-29ref-count SdrObjectNoel Grandin
2022-08-18Move tools/diagnose_ex.h to comphelper/diagnose_ex.hxxStephan Bergmann
2022-02-07tdf#145868 sd replace: if search changes, restart find/replaceJustin Luth
2022-02-05tdf#123658 sd search: restart search start on slide changeJustin Luth
2022-02-05be more stylistically standardCaolán McNamara
2022-02-04related tdf#145868 sd: Clone SvxSearchItem to avoid use after freeJustin Luth
2021-10-10loplugin:moveparam in svxNoel Grandin
2021-09-20be more disciplined with SetUpdateLayout on editengineNoel Grandin
2021-09-02rename UpdateMode -> UpdateLayout in editeng classNoel Grandin
2021-09-02clang-tidy:readability-redundant-member-initNoel Grandin
2021-08-11convert some LogicToLogic calls to use o3tl::convert insteadTomaž Vajngerl
2021-08-05Pass context and resource string down to boost::locale separatelyNoel Grandin
2021-06-10sd: ubsan - fix heap-use-after-free in SdOutlinerTomaž Vajngerl
2021-06-06tdf#142478 fix crash when searching and a viewshell change occursTomaž Vajngerl
2021-04-06remove Application::GetDefDialogParent call in editengCaolán McNamara
2021-01-19vcl: remove or rename too long methods names in VectorGraphicDataTomaž Vajngerl
2020-10-13static_cast after dynamic_castNoel
2020-10-06loplugin:const* make some params and methods constNoel
2020-08-29sd: Make search bound to a view - to allow independent searchingTomaž Vajngerl
2020-08-29Fix typo in codeAndrea Gelmini
2020-08-17move vector graphic search to View, so it works in multiple viewsTomaž Vajngerl
2020-08-03loplugin:flatten in sdNoel Grandin
2020-06-04sd: support match case, match whole word for PDF searchTomaž Vajngerl
2020-06-04sd: allow to change the search string between searchesTomaž Vajngerl
2020-06-04sd: add support to search backwards in PDF searchTomaž Vajngerl
2020-06-04sd: PDF search - reset mpVectorGraphicSearch at more placesTomaž Vajngerl
2020-06-04sd: fix issue when PDF search doesn't send a search result + testTomaž Vajngerl
2020-06-03sd: use getPDFSelection to get the search selection for LOKitTomaž Vajngerl
2020-06-03sd: fix not found case in PDF search + add PDF Search testsTomaž Vajngerl
2020-06-03sd: use b2DRectangleFromRectangle from canvastools.hxxTomaž Vajngerl
2020-06-02sd: remove code dupl. when getting PDF text selection for LOKTomaž Vajngerl
2020-06-02sd: Search inside PDF document that were inserted as a graphicTomaž Vajngerl
2020-06-02sd: some style fixes in Outliner.cxxTomaž Vajngerl
2020-06-02sd: in Outline add getViewShellBase to simplify codeTomaž Vajngerl
2020-06-02sd: move IsValidTextObject into source as anon. functionTomaž Vajngerl
2020-06-02sd: move LOK search result logic to it's own methodTomaž Vajngerl
2020-05-28Resolves: tdf#133411 drop CONTENT_FLOWS_TO from dialog to search resultsCaolán McNamara
2020-05-28Related: tdf#133411 SetDocWin is using the previous search success stateCaolán McNamara
2020-05-23sd: move SearchSelection constructor to header fileTomaž Vajngerl