Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
0462d175
Commit
0462d175
authored
Sep 13, 2012
by
Claudio Valerio
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into claudio-dev
parents
e7eefbf5
c7107493
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
UBCFFAdaptor.cpp
plugins/cffadaptor/src/UBCFFAdaptor.cpp
+8
-5
UBCFFSubsetAdaptor.cpp
src/adaptors/UBCFFSubsetAdaptor.cpp
+1
-1
No files found.
plugins/cffadaptor/src/UBCFFAdaptor.cpp
View file @
0462d175
...
...
@@ -1653,7 +1653,8 @@ bool UBCFFAdaptor::UBToCFFConverter::parseUBZAudio(const QDomElement &element, Q
// CFF cannot show SVG images, so we need to convert it to png.
if
(
bRes
&&
createPngFromSvg
(
srcAudioImageFile
,
dstAudioImageFilePath
,
getTransformFromUBZ
(
element
),
QSize
(
audioImageDimention
,
audioImageDimention
)))
{
QDomElement
svgSwitchSection
=
doc
.
createElementNS
(
svgIWBNS
,
svgIWBNSPrefix
+
":"
+
tIWBSwitch
);
// switch section disabled because of imcompatibility with validator http://validator.imsglobal.org/iwb/index.jsp?validate=package
// QDomElement svgSwitchSection = doc.createElementNS(svgIWBNS,svgIWBNSPrefix + ":" + tIWBSwitch);
// first we place content
QDomElement
svgASection
=
doc
.
createElementNS
(
svgIWBNS
,
svgIWBNSPrefix
+
":"
+
tIWBA
);
...
...
@@ -1665,8 +1666,8 @@ bool UBCFFAdaptor::UBToCFFConverter::parseUBZAudio(const QDomElement &element, Q
svgElementPart
.
setAttribute
(
aWidth
,
audioImageDimention
);
svgASection
.
appendChild
(
svgElementPart
);
svgSwitchSection
.
appendChild
(
svgASection
);
// switch section disabled because of imcompatibility with validator http://validator.imsglobal.org/iwb/index.jsp?validate=package
//
svgSwitchSection.appendChild(svgASection);
// if viewer cannot open that content - it must use that:
QDomElement
svgText
=
doc
.
createElementNS
(
svgIWBNS
,
svgIWBNSPrefix
+
":"
+
tIWBTextArea
);
...
...
@@ -1679,9 +1680,11 @@ bool UBCFFAdaptor::UBToCFFConverter::parseUBZAudio(const QDomElement &element, Q
QDomText
text
=
doc
.
createTextNode
(
"Cannot Open Content"
);
svgText
.
appendChild
(
text
);
svgSwitchSection
.
appendChild
(
svgText
);
// switch section disabled because of imcompatibility with validator http://validator.imsglobal.org/iwb/index.jsp?validate=package
// svgSwitchSection.appendChild(svgText);
addSVGElementToResultModel
(
svgSwitchSection
,
dstSvgList
,
getElementLayer
(
element
));
// switch section disabled because of imcompatibility with validator http://validator.imsglobal.org/iwb/index.jsp?validate=package
addSVGElementToResultModel
(
svgASection
/*svgSwitchSection*/
,
dstSvgList
,
getElementLayer
(
element
));
if
(
0
<
iwbElementPart
.
attributes
().
count
())
addIWBElementToResultModel
(
iwbElementPart
);
...
...
src/adaptors/UBCFFSubsetAdaptor.cpp
View file @
0462d175
...
...
@@ -93,7 +93,7 @@ static QString aFontweight = "font-weight";
static
QString
aTextalign
=
"text-align"
;
static
QString
aPoints
=
"points"
;
static
QString
svgNS
=
"http://www.w3.org/2000/svg"
;
static
QString
iwbNS
=
"http://www.
becta.org.uk/iwb
"
;
static
QString
iwbNS
=
"http://www.
imsglobal.org/xsd/iwb_v1p0
"
;
static
QString
aId
=
"id"
;
static
QString
aRef
=
"ref"
;
static
QString
aHref
=
"href"
;
...
...
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