Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
0f0a22ad
Kaydet (Commit)
0f0a22ad
authored
Eki 23, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
writerfilter: nobody generates FSPA references anymore, only doctok did
Change-Id: I3dbfb727c40a71eb70a26fd53ad651477a8a5220
üst
4bd9d494
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
45 deletions
+28
-45
DomainMapper.cxx
writerfilter/source/dmapper/DomainMapper.cxx
+1
-7
GraphicImport.cxx
writerfilter/source/dmapper/GraphicImport.cxx
+27
-37
GraphicImport.hxx
writerfilter/source/dmapper/GraphicImport.hxx
+0
-1
No files found.
writerfilter/source/dmapper/DomainMapper.cxx
Dosyayı görüntüle @
0f0a22ad
...
...
@@ -3033,13 +3033,7 @@ void DomainMapper::lcl_utext(const sal_uInt8 * data_, size_t len)
void
DomainMapper
::
lcl_props
(
writerfilter
::
Reference
<
Properties
>::
Pointer_t
ref
)
{
std
::
string
sType
=
ref
->
getType
();
if
(
sType
==
"FSPA"
)
{
m_pImpl
->
ImportGraphic
(
ref
,
IMPORT_AS_SHAPE
);
}
else
ref
->
resolve
(
*
this
);
ref
->
resolve
(
*
this
);
}
void
DomainMapper
::
lcl_table
(
Id
name
,
writerfilter
::
Reference
<
Table
>::
Pointer_t
ref
)
...
...
writerfilter/source/dmapper/GraphicImport.cxx
Dosyayı görüntüle @
0f0a22ad
...
...
@@ -1153,43 +1153,39 @@ uno::Reference< text::XTextContent > GraphicImport::createGraphicObject( const b
uno
::
UNO_QUERY_THROW
);
xGraphicObjectProperties
->
setPropertyValue
(
rPropNameSupplier
.
GetName
(
PROP_GRAPHIC
),
uno
::
makeAny
(
xGraphic
));
xGraphicObjectProperties
->
setPropertyValue
(
rPropNameSupplier
.
GetName
(
PROP_ANCHOR_TYPE
),
uno
::
makeAny
(
m_pImpl
->
eGraphicImportType
==
IMPORT_AS_
SHAPE
||
m_pImpl
->
eGraphicImportType
==
IMPORT_AS_
DETECTED_ANCHOR
?
uno
::
makeAny
(
m_pImpl
->
eGraphicImportType
==
IMPORT_AS_DETECTED_ANCHOR
?
text
::
TextContentAnchorType_AT_CHARACTER
:
text
::
TextContentAnchorType_AS_CHARACTER
));
xGraphicObject
=
uno
::
Reference
<
text
::
XTextContent
>
(
xGraphicObjectProperties
,
uno
::
UNO_QUERY_THROW
);
//shapes have only one border
, PICF might have four
//shapes have only one border
table
::
BorderLine2
aBorderLine
;
for
(
sal_Int32
nBorder
=
0
;
nBorder
<
4
;
++
nBorder
)
GraphicBorderLine
&
rBorderLine
=
m_pImpl
->
aBorders
[
0
];
if
(
rBorderLine
.
isEmpty
()
&&
xShapeProps
.
is
())
{
if
(
!
nBorder
)
{
GraphicBorderLine
&
rBorderLine
=
m_pImpl
->
aBorders
[
m_pImpl
->
eGraphicImportType
==
IMPORT_AS_SHAPE
?
BORDER_TOP
:
static_cast
<
BorderPosition
>
(
nBorder
)];
if
(
rBorderLine
.
isEmpty
()
&&
xShapeProps
.
is
())
{
// In case we got no border tokens and we have the
// original shape, then use its line properties as the
// border.
aBorderLine
.
Color
=
xShapeProps
->
getPropertyValue
(
"LineColor"
).
get
<
sal_Int32
>
();
aBorderLine
.
LineWidth
=
xShapeProps
->
getPropertyValue
(
"LineWidth"
).
get
<
sal_Int32
>
();
}
else
{
aBorderLine
.
Color
=
rBorderLine
.
nLineColor
;
aBorderLine
.
InnerLineWidth
=
0
;
aBorderLine
.
OuterLineWidth
=
(
sal_Int16
)
rBorderLine
.
nLineWidth
;
aBorderLine
.
LineDistance
=
0
;
}
}
PropertyIds
aBorderProps
[
4
]
=
{
PROP_LEFT_BORDER
,
PROP_RIGHT_BORDER
,
PROP_TOP_BORDER
,
PROP_BOTTOM_BORDER
};
xGraphicObjectProperties
->
setPropertyValue
(
rPropNameSupplier
.
GetName
(
aBorderProps
[
nBorder
]),
uno
::
makeAny
(
aBorderLine
));
// In case we got no border tokens and we have the
// original shape, then use its line properties as the
// border.
aBorderLine
.
Color
=
xShapeProps
->
getPropertyValue
(
"LineColor"
).
get
<
sal_Int32
>
();
aBorderLine
.
LineWidth
=
xShapeProps
->
getPropertyValue
(
"LineWidth"
).
get
<
sal_Int32
>
();
}
else
{
aBorderLine
.
Color
=
rBorderLine
.
nLineColor
;
aBorderLine
.
InnerLineWidth
=
0
;
aBorderLine
.
OuterLineWidth
=
(
sal_Int16
)
rBorderLine
.
nLineWidth
;
aBorderLine
.
LineDistance
=
0
;
}
PropertyIds
aBorderProps
[
4
]
=
{
PROP_LEFT_BORDER
,
PROP_RIGHT_BORDER
,
PROP_TOP_BORDER
,
PROP_BOTTOM_BORDER
};
for
(
sal_Int32
nBorder
=
0
;
nBorder
<
4
;
++
nBorder
)
xGraphicObjectProperties
->
setPropertyValue
(
rPropNameSupplier
.
GetName
(
aBorderProps
[
nBorder
]),
uno
::
makeAny
(
aBorderLine
));
// setting graphic object shadow proerties
if
(
m_pImpl
->
bShadow
)
...
...
@@ -1231,15 +1227,9 @@ uno::Reference< text::XTextContent > GraphicImport::createGraphicObject( const b
xGraphicObjectProperties
->
setPropertyValue
(
rPropNameSupplier
.
GetName
(
PROP_SIZE_PROTECTED
),
uno
::
makeAny
(
true
));
if
(
m_pImpl
->
eGraphicImportType
==
IMPORT_AS_SHAPE
||
m_pImpl
->
eGraphicImportType
==
IMPORT_AS_DETECTED_ANCHOR
)
if
(
m_pImpl
->
eGraphicImportType
==
IMPORT_AS_DETECTED_ANCHOR
)
{
sal_Int32
nWidth
=
m_pImpl
->
nRightPosition
-
m_pImpl
->
nLeftPosition
;
if
(
m_pImpl
->
eGraphicImportType
==
IMPORT_AS_SHAPE
)
{
sal_Int32
nHeight
=
m_pImpl
->
nBottomPosition
-
m_pImpl
->
nTopPosition
;
xGraphicObjectProperties
->
setPropertyValue
(
rPropNameSupplier
.
GetName
(
PROP_SIZE
),
uno
::
makeAny
(
awt
::
Size
(
nWidth
,
nHeight
)));
}
//adjust margins
if
(
(
m_pImpl
->
nHoriOrient
==
text
::
HoriOrientation
::
LEFT
&&
(
m_pImpl
->
nHoriRelation
==
text
::
RelOrientation
::
PAGE_PRINT_AREA
||
...
...
writerfilter/source/dmapper/GraphicImport.hxx
Dosyayı görüntüle @
0f0a22ad
...
...
@@ -57,7 +57,6 @@ class DomainMapper;
enum
GraphicImportType
{
IMPORT_AS_SHAPE
,
IMPORT_AS_DETECTED_INLINE
,
IMPORT_AS_DETECTED_ANCHOR
};
...
...
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