LibreOffice Module sc (master) 1
XMLChangeTrackingExportHelper.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#pragma once
21
22#include <xmloff/xmltoken.hxx>
23#include <rtl/ref.hxx>
24
26{
27class XText;
28}
29
30class ScChangeAction;
31class ScChangeTrack;
32class ScXMLExport;
33struct ScCellValue;
35class ScBigRange;
37
39{
41
44
45 static OUString GetChangeID(const sal_uInt32 nActionNumber);
46 void GetAcceptanceState(const ScChangeAction* pAction);
47
48 void WriteBigRange(const ScBigRange& rBigRange, xmloff::token::XMLTokenEnum aName);
49 void WriteChangeInfo(const ScChangeAction* pAction);
50 void WriteGenerated(const ScChangeAction* pDependAction);
51 void WriteDeleted(const ScChangeAction* pDependAction);
52 void WriteDepending(const ScChangeAction* pDependAction);
53 void WriteDependings(const ScChangeAction* pAction);
54
55 void WriteEmptyCell();
56 void SetValueAttributes(const double& fValue, const OUString& sValue);
57 void WriteValueCell(const ScCellValue& rCell, const OUString& sValue);
58 void WriteStringCell(const ScCellValue& rCell);
59 void WriteEditCell(const ScCellValue& rCell);
60 void WriteFormulaCell(const ScCellValue& rCell, const OUString& sValue);
61 void WriteCell(const ScCellValue& rCell, const OUString& sValue);
62
63 void WriteContentChange(const ScChangeAction* pAction);
64 void AddInsertionAttributes(const ScChangeAction* pAction);
65 void WriteInsertion(const ScChangeAction* pAction);
66 void AddDeletionAttributes(const ScChangeActionDel* pAction);
67 void WriteCutOffs(const ScChangeActionDel* pAction);
68 void WriteDeletion(ScChangeAction* pAction);
69 void WriteMovement(const ScChangeAction* pAction);
70 void WriteRejection(const ScChangeAction* pAction);
71
72 void CollectCellAutoStyles(const ScCellValue& rCell);
73 void CollectActionAutoStyles(const ScChangeAction* pAction);
75
76public:
79
80 void CollectAutoStyles();
82};
83
84/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void WriteDepending(const ScChangeAction *pDependAction)
void WriteCell(const ScCellValue &rCell, const OUString &sValue)
void WriteStringCell(const ScCellValue &rCell)
void WriteDeletion(ScChangeAction *pAction)
void CollectCellAutoStyles(const ScCellValue &rCell)
void WriteDependings(const ScChangeAction *pAction)
void WriteMovement(const ScChangeAction *pAction)
rtl::Reference< ScEditEngineTextObj > pEditTextObj
void WriteFormulaCell(const ScCellValue &rCell, const OUString &sValue)
void WriteContentChange(const ScChangeAction *pAction)
void WriteInsertion(const ScChangeAction *pAction)
void WriteEditCell(const ScCellValue &rCell)
void WriteGenerated(const ScChangeAction *pDependAction)
void CollectActionAutoStyles(const ScChangeAction *pAction)
void AddInsertionAttributes(const ScChangeAction *pAction)
void WriteValueCell(const ScCellValue &rCell, const OUString &sValue)
void SetValueAttributes(const double &fValue, const OUString &sValue)
void WriteDeleted(const ScChangeAction *pDependAction)
void WriteBigRange(const ScBigRange &rBigRange, xmloff::token::XMLTokenEnum aName)
void WriteChangeInfo(const ScChangeAction *pAction)
void WriteCutOffs(const ScChangeActionDel *pAction)
static OUString GetChangeID(const sal_uInt32 nActionNumber)
void WorkWithChangeAction(ScChangeAction *pAction)
void GetAcceptanceState(const ScChangeAction *pAction)
void AddDeletionAttributes(const ScChangeActionDel *pAction)
void WriteRejection(const ScChangeAction *pAction)
Store arbitrary cell value of any kind.
Definition: cellvalue.hxx:32