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
973e1df2
Commit
973e1df2
authored
Apr 25, 2012
by
Ivan Ilin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CFF import fixes
parent
0e7ba267
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
199 additions
and
116 deletions
+199
-116
UBCFFSubsetAdaptor.cpp
src/adaptors/UBCFFSubsetAdaptor.cpp
+192
-113
UBCFFSubsetAdaptor.h
src/adaptors/UBCFFSubsetAdaptor.h
+5
-2
UBSvgSubsetAdaptor.cpp
src/adaptors/UBSvgSubsetAdaptor.cpp
+2
-1
No files found.
src/adaptors/UBCFFSubsetAdaptor.cpp
View file @
973e1df2
This diff is collapsed.
Click to expand it.
src/adaptors/UBCFFSubsetAdaptor.h
View file @
973e1df2
...
...
@@ -65,6 +65,7 @@ private:
qreal
mVBTransFactor
;
QPointF
mViewBoxCenter
;
QSize
mSize
;
QPointF
mShiftVector
;
private
:
QDomDocument
mDOMdoc
;
...
...
@@ -85,6 +86,8 @@ private:
bool
parseIwbMeta
(
const
QDomElement
&
element
);
bool
parseSvg
(
const
QDomElement
&
svgSection
);
inline
bool
parseGSection
(
const
QDomElement
&
element
);
inline
bool
parseSvgSwitchSection
(
const
QDomElement
&
element
);
inline
bool
parseSvgRect
(
const
QDomElement
&
element
);
inline
bool
parseSvgEllipse
(
const
QDomElement
&
element
);
inline
bool
parseSvgPolygon
(
const
QDomElement
&
element
);
...
...
@@ -123,9 +126,9 @@ private:
// helper methods
void
repositionSvgItem
(
QGraphicsItem
*
item
,
qreal
width
,
qreal
height
,
qreal
x
,
qreal
y
,
bool
useTransform
,
QTransform
&
transform
);
QTransform
&
transform
);
QColor
colorFromString
(
const
QString
&
clrString
);
QTransform
transformFromString
(
const
QString
trString
);
QTransform
transformFromString
(
const
QString
trString
,
QGraphicsItem
*
item
=
0
);
bool
getViewBoxDimenstions
(
const
QString
&
viewBox
);
QSvgGenerator
*
createSvgGenerator
(
qreal
width
,
qreal
height
);
bool
getTempFileName
();
...
...
src/adaptors/UBSvgSubsetAdaptor.cpp
View file @
973e1df2
...
...
@@ -366,7 +366,8 @@ UBGraphicsScene* UBSvgSubsetAdaptor::UBSvgSubsetReader::loadScene()
// introduced in UB 4.0
QStringRef
svgViewBox
=
mXmlReader
.
attributes
().
value
(
nsSvg
,
"viewBox"
);
QStringRef
svgViewBox
=
mXmlReader
.
attributes
().
value
(
"viewBox"
);
if
(
!
svgViewBox
.
isNull
())
{
...
...
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