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
0e91b738
Kaydet (Commit)
0e91b738
authored
Mar 07, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
DomainMapper_Impl::PushShapeContext: indent
Change-Id: Ib0e9dc50a124fcdc3c977a8d8e5c076872fc2e15
üst
a9813b9a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
37 deletions
+37
-37
DomainMapper_Impl.cxx
writerfilter/source/dmapper/DomainMapper_Impl.cxx
+37
-37
No files found.
writerfilter/source/dmapper/DomainMapper_Impl.cxx
Dosyayı görüntüle @
0e91b738
...
...
@@ -1639,48 +1639,48 @@ void DomainMapper_Impl::PushShapeContext( const uno::Reference< drawing::XShape
}
else
{
uno
::
Reference
<
text
::
XTextRange
>
xShapeText
(
xShape
,
uno
::
UNO_QUERY_THROW
);
// Add the shape to the text append stack
m_aTextAppendStack
.
push
(
TextAppendContext
(
uno
::
Reference
<
text
::
XTextAppend
>
(
xShape
,
uno
::
UNO_QUERY_THROW
),
m_bIsNewDoc
?
uno
::
Reference
<
text
::
XTextCursor
>
()
:
m_xBodyText
->
createTextCursorByRange
(
xShapeText
->
getStart
()
)));
uno
::
Reference
<
text
::
XTextRange
>
xShapeText
(
xShape
,
uno
::
UNO_QUERY_THROW
);
// Add the shape to the text append stack
m_aTextAppendStack
.
push
(
TextAppendContext
(
uno
::
Reference
<
text
::
XTextAppend
>
(
xShape
,
uno
::
UNO_QUERY_THROW
),
m_bIsNewDoc
?
uno
::
Reference
<
text
::
XTextCursor
>
()
:
m_xBodyText
->
createTextCursorByRange
(
xShapeText
->
getStart
()
)));
// Add the shape to the anchored objects stack
uno
::
Reference
<
text
::
XTextContent
>
xTxtContent
(
xShape
,
uno
::
UNO_QUERY_THROW
);
m_aAnchoredStack
.
push
(
xTxtContent
);
// Add the shape to the anchored objects stack
uno
::
Reference
<
text
::
XTextContent
>
xTxtContent
(
xShape
,
uno
::
UNO_QUERY_THROW
);
m_aAnchoredStack
.
push
(
xTxtContent
);
PropertyNameSupplier
&
rPropNameSupplier
=
PropertyNameSupplier
::
GetPropertyNameSupplier
();
PropertyNameSupplier
&
rPropNameSupplier
=
PropertyNameSupplier
::
GetPropertyNameSupplier
();
uno
::
Reference
<
beans
::
XPropertySet
>
xProps
(
xShape
,
uno
::
UNO_QUERY_THROW
);
uno
::
Reference
<
beans
::
XPropertySet
>
xProps
(
xShape
,
uno
::
UNO_QUERY_THROW
);
#ifdef DEBUG_DOMAINMAPPER
dmapper_logger
->
unoPropertySet
(
xProps
);
dmapper_logger
->
unoPropertySet
(
xProps
);
#endif
bool
bIsGraphic
=
xSInfo
->
supportsService
(
"com.sun.star.drawing.GraphicObjectShape"
);
// If there are position properties, the shape should not be inserted "as character".
sal_Int32
nHoriPosition
=
0
,
nVertPosition
=
0
;
xProps
->
getPropertyValue
(
rPropNameSupplier
.
GetName
(
PROP_HORI_ORIENT_POSITION
))
>>=
nHoriPosition
;
xProps
->
getPropertyValue
(
rPropNameSupplier
.
GetName
(
PROP_VERT_ORIENT_POSITION
))
>>=
nVertPosition
;
if
(
nHoriPosition
!=
0
||
nVertPosition
!=
0
)
bIsGraphic
=
false
;
text
::
TextContentAnchorType
nAnchorType
(
text
::
TextContentAnchorType_AT_PARAGRAPH
);
xProps
->
getPropertyValue
(
rPropNameSupplier
.
GetName
(
PROP_ANCHOR_TYPE
))
>>=
nAnchorType
;
if
(
nAnchorType
==
text
::
TextContentAnchorType_AT_PAGE
)
bIsGraphic
=
false
;
if
(
nAnchorType
!=
text
::
TextContentAnchorType_AT_PAGE
)
xProps
->
setPropertyValue
(
rPropNameSupplier
.
GetName
(
PROP_OPAQUE
),
uno
::
makeAny
(
true
)
);
if
(
xSInfo
->
supportsService
(
"com.sun.star.text.TextFrame"
))
{
uno
::
Reference
<
text
::
XTextContent
>
xTextContent
(
xShape
,
uno
::
UNO_QUERY_THROW
);
uno
::
Reference
<
text
::
XTextRange
>
xTextRange
(
xTextAppend
->
createTextCursorByRange
(
xTextAppend
->
getEnd
()),
uno
::
UNO_QUERY_THROW
);
xTextAppend
->
insertTextContent
(
xTextRange
,
xTextContent
,
sal_False
);
}
else
if
(
nAnchorType
!=
text
::
TextContentAnchorType_AS_CHARACTER
)
{
xProps
->
setPropertyValue
(
rPropNameSupplier
.
GetName
(
PROP_ANCHOR_TYPE
),
bIsGraphic
?
uno
::
makeAny
(
text
::
TextContentAnchorType_AS_CHARACTER
)
:
uno
::
makeAny
(
text
::
TextContentAnchorType_AT_PARAGRAPH
)
);
}
bool
bIsGraphic
=
xSInfo
->
supportsService
(
"com.sun.star.drawing.GraphicObjectShape"
);
// If there are position properties, the shape should not be inserted "as character".
sal_Int32
nHoriPosition
=
0
,
nVertPosition
=
0
;
xProps
->
getPropertyValue
(
rPropNameSupplier
.
GetName
(
PROP_HORI_ORIENT_POSITION
))
>>=
nHoriPosition
;
xProps
->
getPropertyValue
(
rPropNameSupplier
.
GetName
(
PROP_VERT_ORIENT_POSITION
))
>>=
nVertPosition
;
if
(
nHoriPosition
!=
0
||
nVertPosition
!=
0
)
bIsGraphic
=
false
;
text
::
TextContentAnchorType
nAnchorType
(
text
::
TextContentAnchorType_AT_PARAGRAPH
);
xProps
->
getPropertyValue
(
rPropNameSupplier
.
GetName
(
PROP_ANCHOR_TYPE
))
>>=
nAnchorType
;
if
(
nAnchorType
==
text
::
TextContentAnchorType_AT_PAGE
)
bIsGraphic
=
false
;
if
(
nAnchorType
!=
text
::
TextContentAnchorType_AT_PAGE
)
xProps
->
setPropertyValue
(
rPropNameSupplier
.
GetName
(
PROP_OPAQUE
),
uno
::
makeAny
(
true
)
);
if
(
xSInfo
->
supportsService
(
"com.sun.star.text.TextFrame"
))
{
uno
::
Reference
<
text
::
XTextContent
>
xTextContent
(
xShape
,
uno
::
UNO_QUERY_THROW
);
uno
::
Reference
<
text
::
XTextRange
>
xTextRange
(
xTextAppend
->
createTextCursorByRange
(
xTextAppend
->
getEnd
()),
uno
::
UNO_QUERY_THROW
);
xTextAppend
->
insertTextContent
(
xTextRange
,
xTextContent
,
sal_False
);
}
else
if
(
nAnchorType
!=
text
::
TextContentAnchorType_AS_CHARACTER
)
{
xProps
->
setPropertyValue
(
rPropNameSupplier
.
GetName
(
PROP_ANCHOR_TYPE
),
bIsGraphic
?
uno
::
makeAny
(
text
::
TextContentAnchorType_AS_CHARACTER
)
:
uno
::
makeAny
(
text
::
TextContentAnchorType_AT_PARAGRAPH
)
);
}
}
appendTableManager
(
);
...
...
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