Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
onlyoffice_core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
onlyoffice_core
Commits
b611f97d
Commit
b611f97d
authored
Oct 14, 2016
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XlsxFormat - add header/footer for spreadsheets
parent
0f750fff
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
435 additions
and
16 deletions
+435
-16
Common/DocxFormat/Source/XlsxFormat/Comments/Comments.h
Common/DocxFormat/Source/XlsxFormat/Comments/Comments.h
+4
-3
Common/DocxFormat/Source/XlsxFormat/Worksheets/Worksheet.h
Common/DocxFormat/Source/XlsxFormat/Worksheets/Worksheet.h
+23
-13
Common/DocxFormat/Source/XlsxFormat/Worksheets/WorksheetChildOther.h
...Format/Source/XlsxFormat/Worksheets/WorksheetChildOther.h
+403
-0
Common/DocxFormat/Source/XlsxFormat/WritingElement.h
Common/DocxFormat/Source/XlsxFormat/WritingElement.h
+5
-0
No files found.
Common/DocxFormat/Source/XlsxFormat/Comments/Comments.h
View file @
b611f97d
...
...
@@ -346,6 +346,7 @@ namespace OOX
}
private:
CPath
m_oReadPath
;
void
ReadAttributes
(
XmlUtils
::
CXmlLiteReader
&
oReader
)
{
}
...
...
@@ -388,7 +389,7 @@ namespace OOX
virtual
EElementType
getType
()
const
{
return
et_
FromTo
;
return
et_
LegacyDrawingWorksheet
;
}
private:
...
...
Common/DocxFormat/Source/XlsxFormat/Worksheets/Worksheet.h
View file @
b611f97d
...
...
@@ -56,29 +56,25 @@ namespace OOX
{
namespace
Spreadsheet
{
//необработанные child:
//необработанные child:
//<cellWatches>
//<colBreaks>
//<controls>
//<customProperties>
//<dataConsolidate>
//<dataValidations>
//<drawing>
//<drawingHF>
//<extLst>
//<headerFooter>
//<oleObjects>
//<phoneticPr>
//<picture>
//<protectedRanges>
//<rowBreaks>
//<scenarios>
//<sheetCalcPr>
//<sheetProtection>
//<sheetViews>
//<smartTags>
//<sortState>
//<webPublishItems>
class
CWorksheet
:
public
OOX
::
File
,
public
OOX
::
Spreadsheet
::
IFileContainer
{
public:
...
...
@@ -153,18 +149,24 @@ namespace OOX
else
if
(
_T
(
"tableParts"
)
==
sName
)
m_oTableParts
=
oReader
;
else
if
(
_T
(
"legacyDrawing"
)
==
sName
)
m_oLegacyDrawingWorksheet
=
oReader
;
m_oLegacyDrawing
=
oReader
;
else
if
(
_T
(
"legacyDrawingHF"
)
==
sName
)
m_oLegacyDrawingHF
=
oReader
;
else
if
(
_T
(
"oleObjects"
)
==
sName
)
m_oOleObjects
=
oReader
;
else
if
(
_T
(
"headerFooter"
)
==
sName
)
m_oHeaderFooter
=
oReader
;
else
if
(
_T
(
"sheetPr"
)
==
sName
)
m_oSheetPr
=
oReader
;
else
if
(
_T
(
"extLst"
)
==
sName
)
m_oExtLst
=
oReader
;
else
if
(
_T
(
"picture"
)
==
sName
)
m_oPicture
=
oReader
;
}
}
if
(
m_oLegacyDrawing
Worksheet
.
IsInit
()
&&
m_oLegacyDrawingWorksheet
->
m_oId
.
IsInit
())
if
(
m_oLegacyDrawing
.
IsInit
()
&&
m_oLegacyDrawing
->
m_oId
.
IsInit
())
{
OOX
::
RId
oRId
(
m_oLegacyDrawing
Worksheet
->
m_oId
->
GetValue
());
OOX
::
RId
oRId
(
m_oLegacyDrawing
->
m_oId
->
GetValue
());
smart_ptr
<
OOX
::
File
>
oVmlDrawing
=
IFileContainer
::
Find
(
oRId
);
smart_ptr
<
OOX
::
File
>
oComments
=
IFileContainer
::
Get
(
FileTypes
::
Comments
);
...
...
@@ -177,6 +179,9 @@ namespace OOX
PrepareComments
(
pComments
,
pVmlDrawing
);
}
}
if
(
m_oHeaderFooter
.
IsInit
()
&&
m_oLegacyDrawing
.
IsInit
()
&&
m_oLegacyDrawingHF
->
m_oId
.
IsInit
())
{
}
}
}
void
PrepareComments
(
OOX
::
Spreadsheet
::
CComments
*
pComments
,
OOX
::
CVmlDrawing
*
pVmlDrawing
)
...
...
@@ -357,8 +362,10 @@ namespace OOX
m_oPageSetup
->
toXML
(
sXml
);
if
(
m_oDrawing
.
IsInit
())
m_oDrawing
->
toXML
(
sXml
);
if
(
m_oLegacyDrawingWorksheet
.
IsInit
())
m_oLegacyDrawingWorksheet
->
toXML
(
sXml
);
if
(
m_oLegacyDrawing
.
IsInit
())
m_oLegacyDrawing
->
toXML
(
sXml
);
if
(
m_oLegacyDrawingHF
.
IsInit
())
m_oLegacyDrawingHF
->
toXML
(
sXml
);
if
(
m_oOleObjects
.
IsInit
())
m_oOleObjects
->
toXML
(
sXml
);
if
(
m_oTableParts
.
IsInit
())
...
...
@@ -535,11 +542,14 @@ namespace OOX
nullable
<
OOX
::
Spreadsheet
::
CPrintOptions
>
m_oPrintOptions
;
nullable
<
OOX
::
Spreadsheet
::
CAutofilter
>
m_oAutofilter
;
nullable
<
OOX
::
Spreadsheet
::
CTableParts
>
m_oTableParts
;
nullable
<
OOX
::
Spreadsheet
::
CLegacyDrawingWorksheet
>
m_oLegacyDrawing
Worksheet
;
nullable
<
OOX
::
Spreadsheet
::
CLegacyDrawingWorksheet
>
m_oLegacyDrawing
;
nullable
<
OOX
::
Spreadsheet
::
COleObjects
>
m_oOleObjects
;
std
::
map
<
CString
,
CCommentItem
*>
m_mapComments
;
std
::
vector
<
OOX
::
Spreadsheet
::
CConditionalFormatting
*>
m_arrConditionalFormatting
;
nullable
<
OOX
::
Spreadsheet
::
CSheetPr
>
m_oSheetPr
;
nullable
<
OOX
::
Spreadsheet
::
CHeaderFooter
>
m_oHeaderFooter
;
nullable
<
OOX
::
Spreadsheet
::
CLegacyDrawingHFWorksheet
>
m_oLegacyDrawingHF
;
nullable
<
OOX
::
Spreadsheet
::
CPictureWorksheet
>
m_oPicture
;
nullable
<
OOX
::
Drawing
::
COfficeArtExtensionList
>
m_oExtLst
;
};
...
...
Common/DocxFormat/Source/XlsxFormat/Worksheets/WorksheetChildOther.h
View file @
b611f97d
This diff is collapsed.
Click to expand it.
Common/DocxFormat/Source/XlsxFormat/WritingElement.h
View file @
b611f97d
...
...
@@ -336,6 +336,11 @@ namespace Spreadsheet
et_Pane
,
et_ExternalBook
,
et_Selection
,
et_LegacyDrawingWorksheet
,
et_LegacyDrawingHFWorksheet
,
et_PictureWorksheet
,
et_HeaderFooterWorksheet
,
et_HeaderFooterElementWorksheet
,
et_PictureNonVisual
,
et_NonVisualDrawingProperties
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment