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
bd90de85
Commit
bd90de85
authored
Apr 27, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
https://github.com/ONLYOFFICE/core
into develop
parents
634098a6
57f2ec7b
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
716 additions
and
28 deletions
+716
-28
ASCOfficeDocxFile2/BinReader/Readers.h
ASCOfficeDocxFile2/BinReader/Readers.h
+340
-0
ASCOfficeDocxFile2/BinWriter/BinReaderWriterDefines.h
ASCOfficeDocxFile2/BinWriter/BinReaderWriterDefines.h
+43
-2
ASCOfficeDocxFile2/BinWriter/BinWriters.h
ASCOfficeDocxFile2/BinWriter/BinWriters.h
+293
-8
ASCOfficePPTXFile/PPTXFormat/Logic/CNvGraphicFramePr.h
ASCOfficePPTXFile/PPTXFormat/Logic/CNvGraphicFramePr.h
+2
-2
Common/DocxFormat/Source/DocxFormat/Logic/Sdt.h
Common/DocxFormat/Source/DocxFormat/Logic/Sdt.h
+38
-16
No files found.
ASCOfficeDocxFile2/BinReader/Readers.h
View file @
bd90de85
This diff is collapsed.
Click to expand it.
ASCOfficeDocxFile2/BinWriter/BinReaderWriterDefines.h
View file @
bd90de85
...
@@ -463,7 +463,8 @@ extern int g_nCurFormatVersion;
...
@@ -463,7 +463,8 @@ extern int g_nCurFormatVersion;
FldSimple
=
11
,
FldSimple
=
11
,
Del
=
12
,
Del
=
12
,
Ins
=
13
,
Ins
=
13
,
Background
=
14
Background
=
14
,
Sdt
=
15
};}
};}
namespace
c_oSerDocTableType
{
enum
c_oSerDocTableType
namespace
c_oSerDocTableType
{
enum
c_oSerDocTableType
{
{
...
@@ -477,7 +478,8 @@ extern int g_nCurFormatVersion;
...
@@ -477,7 +478,8 @@ extern int g_nCurFormatVersion;
Cell
=
6
,
Cell
=
6
,
Cell_Pr
=
7
,
Cell_Pr
=
7
,
Cell_Content
=
8
,
Cell_Content
=
8
,
tblGridChange
=
9
tblGridChange
=
9
,
Sdt
=
10
};}
};}
namespace
c_oSerRunType
{
enum
c_oSerRunType
namespace
c_oSerRunType
{
enum
c_oSerRunType
{
{
...
@@ -1003,6 +1005,45 @@ extern int g_nCurFormatVersion;
...
@@ -1003,6 +1005,45 @@ extern int g_nCurFormatVersion;
Data
=
1
,
Data
=
1
,
Program
=
2
Program
=
2
};}
};}
namespace
c_oSerSdt
{
enum
c_oSerSdt
{
Pr
=
0
,
EndPr
=
1
,
Content
=
2
,
Type
=
3
,
Alias
=
4
,
ComboBox
=
5
,
LastValue
=
6
,
SdtListItem
=
7
,
DisplayText
=
8
,
Value
=
9
,
DataBinding
=
10
,
PrefixMappings
=
11
,
StoreItemID
=
12
,
XPath
=
13
,
PrDate
=
14
,
FullDate
=
15
,
Calendar
=
16
,
DateFormat
=
17
,
Lid
=
18
,
StoreMappedDataAs
=
19
,
DocPartList
=
20
,
DocPartObj
=
21
,
DocPartCategory
=
22
,
DocPartGallery
=
23
,
DocPartUnique
=
24
,
DropDownList
=
25
,
Id
=
26
,
Label
=
27
,
Lock
=
28
,
PlaceHolder
=
29
,
RPr
=
30
,
ShowingPlcHdr
=
31
,
TabIndex
=
32
,
Tag
=
33
,
Temporary
=
34
,
MultiLine
=
35
};}
}
}
#endif // #ifndef DOCX_BIN_READER_WRITER_DEFINES
#endif // #ifndef DOCX_BIN_READER_WRITER_DEFINES
ASCOfficeDocxFile2/BinWriter/BinWriters.h
View file @
bd90de85
This diff is collapsed.
Click to expand it.
ASCOfficePPTXFile/PPTXFormat/Logic/CNvGraphicFramePr.h
View file @
bd90de85
...
@@ -142,7 +142,7 @@ namespace PPTX
...
@@ -142,7 +142,7 @@ namespace PPTX
pWriter
->
EndAttributes
();
pWriter
->
EndAttributes
();
pWriter
->
StartNode
(
namespaceLock_
+
L"graphicFrameLocks"
);
pWriter
->
StartNode
(
namespaceLock_
+
L"
:
graphicFrameLocks"
);
pWriter
->
StartAttributes
();
pWriter
->
StartAttributes
();
...
@@ -236,4 +236,4 @@ namespace PPTX
...
@@ -236,4 +236,4 @@ namespace PPTX
}
// namespace Logic
}
// namespace Logic
}
// namespace PPTX
}
// namespace PPTX
#endif // PPTX_LOGIC_CNVGRAPHICFRAMESPPR_INCLUDE_H
#endif // PPTX_LOGIC_CNVGRAPHICFRAMESPPR_INCLUDE_H
\ No newline at end of file
Common/DocxFormat/Source/DocxFormat/Logic/Sdt.h
View file @
bd90de85
...
@@ -340,7 +340,11 @@ namespace ComplexTypes
...
@@ -340,7 +340,11 @@ namespace ComplexTypes
}
}
virtual
std
::
wstring
ToString
()
const
virtual
std
::
wstring
ToString
()
const
{
{
std
::
wstring
sResult
=
_T
(
"w:multiLine=
\"
"
)
+
m_oMultiLine
.
ToString
()
+
_T
(
"
\"
"
);
std
::
wstring
sResult
;
if
(
m_oMultiLine
.
IsInit
())
{
sResult
=
_T
(
"w:multiLine=
\"
"
)
+
m_oMultiLine
->
ToString
()
+
_T
(
"
\"
"
);
}
return
sResult
;
return
sResult
;
}
}
...
@@ -356,7 +360,7 @@ namespace ComplexTypes
...
@@ -356,7 +360,7 @@ namespace ComplexTypes
public:
public:
SimpleTypes
::
COnOff
<
SimpleTypes
::
onoffFalse
>
m_oMultiLine
;
nullable
<
SimpleTypes
::
COnOff
<
SimpleTypes
::
onoffFalse
>
>
m_oMultiLine
;
};
};
}
// Word
}
// Word
...
@@ -503,7 +507,7 @@ namespace OOX
...
@@ -503,7 +507,7 @@ namespace OOX
WritingElement_ReadNode
(
oNode
,
oChild
,
_T
(
"w:calendar"
),
m_oCalendar
);
WritingElement_ReadNode
(
oNode
,
oChild
,
_T
(
"w:calendar"
),
m_oCalendar
);
WritingElement_ReadNode
(
oNode
,
oChild
,
_T
(
"w:dateFormat"
),
m_oDateFormat
);
WritingElement_ReadNode
(
oNode
,
oChild
,
_T
(
"w:dateFormat"
),
m_oDateFormat
);
WritingElement_ReadNode
(
oNode
,
oChild
,
_T
(
"w:lid"
),
m_oLid
);
WritingElement_ReadNode
(
oNode
,
oChild
,
_T
(
"w:lid"
),
m_oLid
);
WritingElement_ReadNode
(
oNode
,
oChild
,
_T
(
"w:storeMappedDat
aAs"
),
m_oStoreMappedData
As
);
WritingElement_ReadNode
(
oNode
,
oChild
,
_T
(
"w:storeMappedDat
eAs"
),
m_oStoreMappedDate
As
);
}
}
virtual
void
fromXML
(
XmlUtils
::
CXmlLiteReader
&
oReader
)
virtual
void
fromXML
(
XmlUtils
::
CXmlLiteReader
&
oReader
)
...
@@ -523,8 +527,8 @@ namespace OOX
...
@@ -523,8 +527,8 @@ namespace OOX
m_oDateFormat
=
oReader
;
m_oDateFormat
=
oReader
;
else
if
(
_T
(
"w:lid"
)
==
sName
)
else
if
(
_T
(
"w:lid"
)
==
sName
)
m_oLid
=
oReader
;
m_oLid
=
oReader
;
else
if
(
_T
(
"w:storeMappedDat
a
As"
)
==
sName
)
else
if
(
_T
(
"w:storeMappedDat
e
As"
)
==
sName
)
m_oStoreMappedDat
a
As
=
oReader
;
m_oStoreMappedDat
e
As
=
oReader
;
}
}
}
}
virtual
std
::
wstring
toXML
()
const
virtual
std
::
wstring
toXML
()
const
...
@@ -543,7 +547,7 @@ namespace OOX
...
@@ -543,7 +547,7 @@ namespace OOX
WritingElement_WriteNode_1
(
_T
(
"<w:calendar "
),
m_oCalendar
);
WritingElement_WriteNode_1
(
_T
(
"<w:calendar "
),
m_oCalendar
);
WritingElement_WriteNode_1
(
_T
(
"<w:dateFormat "
),
m_oDateFormat
);
WritingElement_WriteNode_1
(
_T
(
"<w:dateFormat "
),
m_oDateFormat
);
WritingElement_WriteNode_1
(
_T
(
"<w:lid "
),
m_oLid
);
WritingElement_WriteNode_1
(
_T
(
"<w:lid "
),
m_oLid
);
WritingElement_WriteNode_1
(
_T
(
"<w:storeMappedDat
aAs "
),
m_oStoreMappedData
As
);
WritingElement_WriteNode_1
(
_T
(
"<w:storeMappedDat
eAs "
),
m_oStoreMappedDate
As
);
sResult
+=
_T
(
"</w:date>"
);
sResult
+=
_T
(
"</w:date>"
);
...
@@ -573,7 +577,7 @@ namespace OOX
...
@@ -573,7 +577,7 @@ namespace OOX
nullable
<
ComplexTypes
::
Word
::
CCalendarType
>
m_oCalendar
;
nullable
<
ComplexTypes
::
Word
::
CCalendarType
>
m_oCalendar
;
nullable
<
ComplexTypes
::
Word
::
String
>
m_oDateFormat
;
nullable
<
ComplexTypes
::
Word
::
String
>
m_oDateFormat
;
nullable
<
ComplexTypes
::
Word
::
CLang
>
m_oLid
;
nullable
<
ComplexTypes
::
Word
::
CLang
>
m_oLid
;
nullable
<
ComplexTypes
::
Word
::
CSdtDateMappingType
>
m_oStoreMappedDat
a
As
;
nullable
<
ComplexTypes
::
Word
::
CSdtDateMappingType
>
m_oStoreMappedDat
e
As
;
};
};
//--------------------------------------------------------------------------------
//--------------------------------------------------------------------------------
...
@@ -630,6 +634,18 @@ namespace OOX
...
@@ -630,6 +634,18 @@ namespace OOX
return
sResult
;
return
sResult
;
}
}
std
::
wstring
toXML2
(
const
std
::
wstring
&
sName
)
const
{
std
::
wstring
sResult
=
L"<"
+
sName
+
L">"
;
WritingElement_WriteNode_1
(
_T
(
"<w:docPartCategory "
),
m_oDocPartCategory
);
WritingElement_WriteNode_1
(
_T
(
"<w:docPartGallery "
),
m_oDocPartGallery
);
WritingElement_WriteNode_1
(
_T
(
"<w:docPartUnique "
),
m_oDocPartUnique
);
sResult
+=
L"</"
+
sName
+
L">"
;;
return
sResult
;
}
virtual
EElementType
getType
()
const
virtual
EElementType
getType
()
const
{
{
...
@@ -1013,7 +1029,7 @@ namespace OOX
...
@@ -1013,7 +1029,7 @@ namespace OOX
m_eType
=
sdttypeBibliography
;
m_eType
=
sdttypeBibliography
;
else
if
(
sdttypeUnknown
==
m_eType
&&
_T
(
"w:citation"
)
==
sName
)
else
if
(
sdttypeUnknown
==
m_eType
&&
_T
(
"w:citation"
)
==
sName
)
m_eType
=
sdttypeCitation
;
m_eType
=
sdttypeCitation
;
else
if
(
sdttypeUnknown
==
m_eType
&&
_T
(
"w:
alias
"
)
==
sName
)
else
if
(
sdttypeUnknown
==
m_eType
&&
_T
(
"w:
comboBox
"
)
==
sName
)
{
{
m_oComboBox
=
oReader
;
m_oComboBox
=
oReader
;
m_eType
=
sdttypeComboBox
;
m_eType
=
sdttypeComboBox
;
...
@@ -1073,7 +1089,7 @@ namespace OOX
...
@@ -1073,7 +1089,7 @@ namespace OOX
}
}
}
}
}
}
virtual
std
::
wstring
toXML
()
const
std
::
wstring
toXMLStart
()
const
{
{
std
::
wstring
sResult
=
_T
(
"<w:sdtPr>"
);
std
::
wstring
sResult
=
_T
(
"<w:sdtPr>"
);
...
@@ -1093,7 +1109,7 @@ namespace OOX
...
@@ -1093,7 +1109,7 @@ namespace OOX
{
{
case
sdttypeBibliography
:
case
sdttypeBibliography
:
{
{
sResult
+=
_T
(
"<bibliography/>"
);
sResult
+=
_T
(
"<
w:
bibliography/>"
);
break
;
break
;
}
}
case
sdttypeCitation
:
case
sdttypeCitation
:
...
@@ -1118,14 +1134,14 @@ namespace OOX
...
@@ -1118,14 +1134,14 @@ namespace OOX
case
sdttypeDocPartList
:
case
sdttypeDocPartList
:
{
{
if
(
m_oDocPartList
.
IsInit
()
)
if
(
m_oDocPartList
.
IsInit
()
)
sResult
+=
m_oDocPartList
->
toXML
(
);
sResult
+=
m_oDocPartList
->
toXML
2
(
L"w:docPartList"
);
break
;
break
;
}
}
case
sdttypeDocPartObj
:
case
sdttypeDocPartObj
:
{
{
if
(
m_oDocPartObj
.
IsInit
()
)
if
(
m_oDocPartObj
.
IsInit
()
)
sResult
+=
m_oDocPartObj
->
toXML
(
);
sResult
+=
m_oDocPartObj
->
toXML
2
(
L"w:docPartObj"
);
break
;
break
;
}
}
...
@@ -1158,21 +1174,27 @@ namespace OOX
...
@@ -1158,21 +1174,27 @@ namespace OOX
}
}
case
sdttypeText
:
case
sdttypeText
:
{
{
sResult
+=
_T
(
"<w:text "
);
if
(
m_oText
.
IsInit
()
)
if
(
m_oText
.
IsInit
()
)
{
{
sResult
+=
_T
(
"<w:text "
);
sResult
+=
m_oText
->
ToString
();
sResult
+=
m_oText
->
ToString
();
sResult
+=
_T
(
"/>"
);
}
}
sResult
+=
_T
(
"/>"
);
break
;
break
;
}
}
}
}
sResult
+=
_T
(
"</w:sdtPr>"
);
return
sResult
;
return
sResult
;
}
}
std
::
wstring
toXMLEnd
()
const
{
return
_T
(
"</w:sdtPr>"
);
}
virtual
std
::
wstring
toXML
()
const
{
return
toXMLStart
()
+
toXMLEnd
();
}
virtual
EElementType
getType
()
const
virtual
EElementType
getType
()
const
{
{
return
et_w_sdtPr
;
return
et_w_sdtPr
;
...
...
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