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
9c2f8b0f
Kaydet (Commit)
9c2f8b0f
authored
May 27, 2014
tarafından
Miklos Vajna
Kaydeden (comit)
Fridrich Štrba
May 28, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SwTextBoxHelper: set textbox Surround for inline shapes
Change-Id: I25167b28397db185cdf9fe5844feecb5a16cc13e
üst
0d423027
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
textboxhelper.cxx
sw/source/core/doc/textboxhelper.cxx
+17
-1
No files found.
sw/source/core/doc/textboxhelper.cxx
Dosyayı görüntüle @
9c2f8b0f
...
...
@@ -26,6 +26,8 @@
#include <com/sun/star/table/BorderLine2.hpp>
#include <com/sun/star/text/SizeType.hpp>
#include <com/sun/star/text/TextContentAnchorType.hpp>
#include <com/sun/star/text/WrapTextMode.hpp>
#include <com/sun/star/text/XTextContent.hpp>
#include <com/sun/star/text/XTextDocument.hpp>
...
...
@@ -196,6 +198,7 @@ void SwTextBoxHelper::syncProperty(SwFrmFmt* pShape, sal_uInt16 nWID, sal_uInt8
if
(
!
pShape
)
return
;
OUString
aPropertyName
=
rPropertyName
;
uno
::
Any
aValue
(
rValue
);
nMemberId
&=
~
CONVERT_TWIPS
;
...
...
@@ -237,6 +240,19 @@ void SwTextBoxHelper::syncProperty(SwFrmFmt* pShape, sal_uInt16 nWID, sal_uInt8
bSync
=
true
;
bAdjustSize
=
true
;
break
;
case
RES_ANCHOR
:
switch
(
nMemberId
)
{
case
MID_ANCHOR_ANCHORTYPE
:
if
(
aValue
.
get
<
text
::
TextContentAnchorType
>
()
==
text
::
TextContentAnchorType_AS_CHARACTER
)
{
uno
::
Reference
<
beans
::
XPropertySet
>
xPropertySet
(
static_cast
<
cppu
::
OWeakObject
*>
(
SwXFrames
::
GetObject
(
*
pFmt
,
FLYCNTTYPE_FRM
)),
uno
::
UNO_QUERY
);
xPropertySet
->
setPropertyValue
(
"Surround"
,
uno
::
makeAny
(
text
::
WrapTextMode_THROUGHT
));
return
;
}
break
;
}
break
;
}
if
(
bSync
)
...
...
@@ -271,7 +287,7 @@ void SwTextBoxHelper::syncProperty(SwFrmFmt* pShape, sal_uInt16 nWID, sal_uInt8
}
uno
::
Reference
<
beans
::
XPropertySet
>
xPropertySet
(
static_cast
<
cppu
::
OWeakObject
*>
(
SwXFrames
::
GetObject
(
*
pFmt
,
FLYCNTTYPE_FRM
)),
uno
::
UNO_QUERY
);
xPropertySet
->
setPropertyValue
(
r
PropertyName
,
aValue
);
xPropertySet
->
setPropertyValue
(
a
PropertyName
,
aValue
);
}
}
}
...
...
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