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 #ifndef INCLUDED_SC_SOURCE_FILTER_XML_XMLCHANGETRACKINGEXPORTHELPER_HXX
21 #define INCLUDED_SC_SOURCE_FILTER_XML_XMLCHANGETRACKINGEXPORTHELPER_HXX
22 
23 #include <xmloff/xmltoken.hxx>
24 
25 namespace com::sun::star::text
26 {
27 class XText;
28 }
29 
30 class ScChangeAction;
31 class ScChangeTrack;
32 class ScXMLExport;
33 struct ScCellValue;
34 class ScChangeActionDel;
35 class ScBigRange;
37 
39 {
41 
44  css::uno::Reference<css::text::XText> xText;
45 
46  static OUString GetChangeID(const sal_uInt32 nActionNumber);
47  void GetAcceptanceState(const ScChangeAction* pAction);
48 
49  void WriteBigRange(const ScBigRange& rBigRange, xmloff::token::XMLTokenEnum aName);
50  void WriteChangeInfo(const ScChangeAction* pAction);
51  void WriteGenerated(const ScChangeAction* pDependAction);
52  void WriteDeleted(const ScChangeAction* pDependAction);
53  void WriteDepending(const ScChangeAction* pDependAction);
54  void WriteDependings(const ScChangeAction* pAction);
55 
56  void WriteEmptyCell();
57  void SetValueAttributes(const double& fValue, const OUString& sValue);
58  void WriteValueCell(const ScCellValue& rCell, const OUString& sValue);
59  void WriteStringCell(const ScCellValue& rCell);
60  void WriteEditCell(const ScCellValue& rCell);
61  void WriteFormulaCell(const ScCellValue& rCell, const OUString& sValue);
62  void WriteCell(const ScCellValue& rCell, const OUString& sValue);
63 
64  void WriteContentChange(const ScChangeAction* pAction);
65  void AddInsertionAttributes(const ScChangeAction* pAction);
66  void WriteInsertion(const ScChangeAction* pAction);
67  void AddDeletionAttributes(const ScChangeActionDel* pAction);
68  void WriteCutOffs(const ScChangeActionDel* pAction);
69  void WriteDeletion(ScChangeAction* pAction);
70  void WriteMovement(const ScChangeAction* pAction);
71  void WriteRejection(const ScChangeAction* pAction);
72 
73  void CollectCellAutoStyles(const ScCellValue& rCell);
74  void CollectActionAutoStyles(const ScChangeAction* pAction);
75  void WorkWithChangeAction(ScChangeAction* pAction);
76 
77 public:
78  explicit ScChangeTrackingExportHelper(ScXMLExport& rExport);
80 
81  void CollectAutoStyles();
83 };
84 
85 #endif
86 
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void CollectCellAutoStyles(const ScCellValue &rCell)
void CollectActionAutoStyles(const ScChangeAction *pAction)
void GetAcceptanceState(const ScChangeAction *pAction)
void AddInsertionAttributes(const ScChangeAction *pAction)
void AddDeletionAttributes(const ScChangeActionDel *pAction)
void WriteInsertion(const ScChangeAction *pAction)
void WorkWithChangeAction(ScChangeAction *pAction)
Store arbitrary cell value of any kind.
Definition: cellvalue.hxx:36
void WriteValueCell(const ScCellValue &rCell, const OUString &sValue)
void WriteContentChange(const ScChangeAction *pAction)
void WriteCell(const ScCellValue &rCell, const OUString &sValue)
static OUString GetChangeID(const sal_uInt32 nActionNumber)
void WriteCutOffs(const ScChangeActionDel *pAction)
void WriteStringCell(const ScCellValue &rCell)
void WriteGenerated(const ScChangeAction *pDependAction)
void WriteDependings(const ScChangeAction *pAction)
void WriteDeletion(ScChangeAction *pAction)
void SetValueAttributes(const double &fValue, const OUString &sValue)
void WriteEditCell(const ScCellValue &rCell)
void WriteRejection(const ScChangeAction *pAction)
void WriteBigRange(const ScBigRange &rBigRange, xmloff::token::XMLTokenEnum aName)
void WriteMovement(const ScChangeAction *pAction)
void WriteDeleted(const ScChangeAction *pDependAction)
void WriteDepending(const ScChangeAction *pDependAction)
void WriteChangeInfo(const ScChangeAction *pAction)
void WriteFormulaCell(const ScCellValue &rCell, const OUString &sValue)
css::uno::Reference< css::text::XText > xText