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
fb417208
Commit
fb417208
authored
Nov 02, 2017
by
Sergey Konovalov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
for bug 35900 (CWorkbookPr::toXml)
parent
406c290b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
+23
-2
Common/DocxFormat/Source/XlsxFormat/SimpleTypes_Spreadsheet.h
...on/DocxFormat/Source/XlsxFormat/SimpleTypes_Spreadsheet.h
+7
-1
Common/DocxFormat/Source/XlsxFormat/Workbook/WorkbookPr.h
Common/DocxFormat/Source/XlsxFormat/Workbook/WorkbookPr.h
+16
-1
No files found.
Common/DocxFormat/Source/XlsxFormat/SimpleTypes_Spreadsheet.h
View file @
fb417208
...
...
@@ -1149,7 +1149,13 @@ namespace SimpleTypes
virtual
std
::
wstring
ToString
()
const
{
return
_T
(
"always"
);
switch
(
this
->
m_eValue
)
{
case
updatelinksAlways
:
return
_T
(
"always"
);
break
;
case
updatelinksNever
:
return
_T
(
"never"
);
break
;
case
updatelinksUserSet
:
return
_T
(
"userSet"
);
break
;
default:
return
_T
(
"always"
);
}
}
SimpleType_FromString
(
EUpdateLinksType
)
...
...
Common/DocxFormat/Source/XlsxFormat/Workbook/WorkbookPr.h
View file @
fb417208
...
...
@@ -62,9 +62,24 @@ namespace OOX
virtual
void
toXML
(
NSStringUtils
::
CStringBuilder
&
writer
)
const
{
writer
.
WriteString
(
_T
(
"<workbookPr"
));
WritingStringNullableAttrInt
(
L"defaultThemeVersion"
,
m_oDefaultThemeVersion
,
m_oDefaultThemeVersion
->
GetValue
());
WritingStringNullableAttrBool
(
L"allowRefreshQuery"
,
m_oAllowRefreshQuery
);
WritingStringNullableAttrBool
(
L"autoCompressPictures"
,
m_oAutoCompressPictures
);
WritingStringNullableAttrBool
(
L"backupFile"
,
m_oBackupFile
);
WritingStringNullableAttrBool
(
L"checkCompatibility"
,
m_oCheckCompatibility
);
WritingStringNullableAttrBool
(
L"codeName"
,
m_oCodeName
);
WritingStringNullableAttrBool
(
L"date1904"
,
m_oDate1904
);
WritingStringNullableAttrBool
(
L"dateCompatibility"
,
m_oDateCompatibility
);
WritingStringNullableAttrInt
(
L"defaultThemeVersion"
,
m_oDefaultThemeVersion
,
m_oDefaultThemeVersion
->
GetValue
());
WritingStringNullableAttrBool
(
L"filterPrivacy"
,
m_oFilterPrivacy
);
WritingStringNullableAttrBool
(
L"hidePivotFieldList"
,
m_oHidePivotFieldList
);
WritingStringNullableAttrBool
(
L"promptedSolutions"
,
m_oPromptedSolutions
);
WritingStringNullableAttrBool
(
L"publishItems"
,
m_oPublishItems
);
WritingStringNullableAttrBool
(
L"refreshAllConnections"
,
m_oRefreshAllConnections
);
WritingStringNullableAttrBool
(
L"showBorderUnselectedTables"
,
m_oShowBorderUnselectedTables
);
WritingStringNullableAttrBool
(
L"showInkAnnotation"
,
m_oShowInkAnnotation
);
WritingStringNullableAttrBool
(
L"showObjects"
,
m_oShowObjects
);
WritingStringNullableAttrBool
(
L"showPivotChartFilter"
,
m_oShowPivotChartFilter
);
WritingStringNullableAttrString
(
L"updateLinks"
,
m_oUpdateLinks
,
m_oUpdateLinks
->
ToString
());
writer
.
WriteString
(
_T
(
"/>"
));
}
virtual
void
fromXML
(
XmlUtils
::
CXmlLiteReader
&
oReader
)
...
...
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