/* -*- 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 #include #include #include "address.hxx" class SvXMLNamespaceMap; enum class XmlStyleFamily; struct ScStreamEntry { sal_Int64 mnStartOffset; sal_Int64 mnEndOffset; ScStreamEntry() : mnStartOffset(-1), mnEndOffset(-1) { } ScStreamEntry( sal_Int64 nStart, sal_Int64 nEnd ) : mnStartOffset(nStart), mnEndOffset(nEnd) { } }; struct ScCellStyleEntry { OUString maName; ScAddress maCellPos; ScCellStyleEntry( OUString aName, const ScAddress& rPos ) : maName(std::move(aName)), maCellPos(rPos) { } }; struct ScNoteStyleEntry { OUString maStyleName; OUString maTextStyle; ScAddress maCellPos; ScNoteStyleEntry( OUString aStyle, OUString aText, const ScAddress& rPos ) : maStyleName(std::move(aStyle)), maTextStyle(std::move(aText)), maCellPos(rPos) { } }; struct ScTextStyleEntry { OUString maName; ScAddress maCellPos; ESelection maSelection; ScTextStyleEntry( OUString aName, const ScAddress& rPos, const ESelection& rSel ) : maName(std::move(aName)), maCellPos(rPos), maSelection(rSel) { } }; struct ScLoadedNamespaceEntry { OUString maPrefix; OUString maName; sal_uInt16 mnKey; ScLoadedNamespaceEntry( OUString aPrefix, OUString aName, sal_uInt16 nKey ) : maPrefix(std::move(aPrefix)), maName(std::move(aName)), mnKey(nKey) { } }; class ScSheetSaveData { std::unordered_set maInitialPrefixes; std::vector maLoadedNamespaces; std::vector maCellStyles; std::vector maColumnStyles; std::vector maRowStyles; std::vector maTableStyles; std::vector maNoteStyles; std::vector maNoteParaStyles; std::vector maNoteTextStyles; std::vector maTextStyles; std::vector maBlocked; std::vector maStreamEntries; std::vector maSaveEntries; SCTAB mnStartTab; sal_Int64 mnStartOffset; ScNoteStyleEntry maPreviousNote; bool mbInSupportedSave; public: ScSheetSaveData(); ~ScSheetSaveData(); void AddCellStyle( const OUString& rName, const ScAddress& rCellPos ); void AddColumnStyle( const OUString& rName, const ScAddress& rCellPos ); void AddRowStyle( const OUString& rName, const ScAddress& rCellPos ); void AddTableStyle( const OUString& rName, const ScAddress& rCellPos ); void HandleNoteStyles( const OUString& rStyleName, const OUString& rTextName, const ScAddress& rCellPos ); void AddNoteContentStyle( XmlStyleFamily nFamily, const OUString& rName, const ScAddress& rCellPos, const ESelection& rSelection ); void AddTextStyle( const OUString& rName, const ScAddress& rCellPos, const ESelection& rSelection ); void BlockSheet( SCTAB nTab ); bool IsSheetBlocked( SCTAB nTab ) const; void AddStreamPos( SCTAB nTab, sal_Int64 nStartOffset, sal_Int64 nEndOffset ); void GetStreamPos( SCTAB nTab, sal_Int64& rStartOffset, sal_Int64& rEndOffset ) const; bool HasStreamPos( SCTAB nTab ) const; void StartStreamPos( SCTAB nTab, sal_Int64 nStartOffset ); void EndStreamPos( sal_Int64 nEndOffset ); bool HasStartPos() const { return mnStartTab >= 0; } void ResetSaveEntries(); void AddSavePos( SCTAB nTab, sal_Int64 nStartOffset, sal_Int64 nEndOffset ); void UseSaveEntries(); void StoreInitialNamespaces( const SvXMLNamespaceMap& rNamespaces ); void StoreLoadedNamespaces( const SvXMLNamespaceMap& rNamespaces ); bool AddLoadedNamespaces( SvXMLNamespaceMap& rNamespaces ) const; const std::vector& GetCellStyles() const { return maCellStyles; } const std::vector& GetColumnStyles() const { return maColumnStyles; } const std::vector& GetRowStyles() const { return maRowStyles; } const std::vector& GetTableStyles() const { return maTableStyles; } const std::vector& GetNoteStyles() const { return maNoteStyles; } const std::vector& GetNoteParaStyles() const { return maNoteParaStyles; } const std::vector& GetNoteTextStyles() const { return maNoteTextStyles; } const std::vector& GetTextStyles() const { return maTextStyles; } bool IsInSupportedSave() const { return mbInSupportedSave;} void SetInSupportedSave( bool bSet ); }; struct ScFormatSaveData { std::map maIDToName; }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ backports'>distro/lhm/libreoffice-6-4+backports LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2017-04-27no bitmaps in .src files anymoreCaolán McNamara
2017-04-19remove freshly unused menu support from src filesCaolán McNamara
2017-04-06crashtesting: empty ReadAccess on converting fdo58541-1.xls to pdfCaolán McNamara
2017-03-31tdf#82580 tools: rename Rectangle to tools::RectangleMiklos Vajna
2017-03-30ofz#968 short-cut slow create mask when we are our own mask alreadyCaolán McNamara
2017-03-30tweak indent a littleCaolán McNamara
2017-03-23loplugins:redundantcast teach it about c-style typedef castsNoel Grandin
2017-02-09convert BmpConversion to scoped enumNoel Grandin
2017-02-08coverity#1400143 Missing move assignment operatorCaolán McNamara
2017-02-02convert BmpCombine to scoped enum and drop unusedNoel Grandin
2016-12-05Change Read/Write access to Scoped Read/Write accessMark Page
2016-11-29Rewrite some (trivial) assignments inside if/while conditions: vclStephan Bergmann
2016-10-26loplugin:expandablemethods in vclNoel Grandin
2016-10-05convert MapUnit to scoped enumNoel Grandin
2016-09-02coverity#1371159 Missing move assignment operatorCaolán McNamara
2016-07-11Resolves: tdf#100463 tolerence in contour editor doesn't workCaolán McNamara
2016-05-25Convert BMP_FORMAT to scoped enumNoel Grandin
2016-04-12clang-tidy performance-unnecessary-value-param in vclNoel Grandin
2016-03-15remove unnecessary parentheses in case labelsNoel Grandin
2016-02-16use std shared_ptr for sharing ImpBitmapsCaolán McNamara
2016-02-06vcl: bmpacc.hxx -> bitmapaccess.hxxChris Sherlock
2016-01-09cppcheck: truncLongCastAssignmentCaolán McNamara
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann
2015-09-30Fix typosAndrea Gelmini
2015-09-01Switching to 64-bit checksum: substituted sal_uLong with BitmapChecksumMarco Cecchetti
2015-09-01Added support for computing 64-bit checksum of bitmap in OpenGLMarco Cecchetti
2015-08-29sal_uLong to sal_uInt32 for CRC32Matteo Casalin
2015-08-17Put Polygon from tools under tools:: namespaceNorbert Thiebaud
2015-06-17Replace boost::scoped_array<T> with std::unique_ptr<T[]>Takeshi Abe
2015-05-28new clang plugin: loopvartoosmallNoel Grandin
2015-05-06convert BMP_MIRROR constants to scoped enumNoel Grandin
2015-04-02loplugin:staticmethodsNoel Grandin
2015-04-01loplugin:staticfunctionNoel Grandin
2015-03-29vcl: test for bitmap convert, use scoped read/write accessTomaž Vajngerl
2015-03-26const_cast: convert some C-style casts and remove some redundant onesStephan Bergmann
2015-01-20Some more loplugin:cstylecast: vclStephan Bergmann
2014-12-11vcl: Add BitmapInfoAccess for bitmaps' metadata accessLouis-Francis Ratté-Boulianne
2014-12-03vcl: Add dummy Replace to SalBitmap implementationsLouis-Francis Ratté-Boulianne
2014-11-21vcl: remove ::Bitmap as friend of OutputDeviceChris Sherlock
2014-11-20Bitmap::Crop: When the rectangle is entire bitmap, do nothingMatúš Kukan
2014-11-10one more case of these insane memory alloc/release cyclesMarkus Mohrhard
2014-09-30fdo#82577: Handle RegionNoel Grandin
2014-07-10Clean up AlphaMask::CopyPixel "override" hackStephan Bergmann
2014-06-26check for self-assignCaolán McNamara
2014-06-09loplugin: inlinesimplememberfunctionsNoel Grandin
2014-05-24cppcheck: variableScopeThomas Arnhold
2014-05-05simplify ternary conditions "xxx ? yyy : false"Noel Grandin
2014-04-23Rename OutputDevice::ImplGetGraphics to GetGraphicsChris Sherlock