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
8791ea1d
Kaydet (Commit)
8791ea1d
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
SwXShape: allow setting TextBox property to false
Change-Id: I23d79fc3f5c020c86296bfc84bb0824e1ca68228
üst
84270c71
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
1 deletion
+20
-1
textboxhelper.hxx
sw/inc/textboxhelper.hxx
+2
-0
textboxhelper.cxx
sw/source/core/doc/textboxhelper.cxx
+16
-0
unodraw.cxx
sw/source/core/unocore/unodraw.cxx
+2
-1
No files found.
sw/inc/textboxhelper.hxx
Dosyayı görüntüle @
8791ea1d
...
...
@@ -26,6 +26,8 @@ class SwTextBoxHelper
public
:
/// Create a TextBox for a shape.
static
void
create
(
SwFrmFmt
*
pShape
);
/// Destroy a TextBox for a shape.
static
void
destroy
(
SwFrmFmt
*
pShape
);
/// Get XTextAppend of a shape's TextBox, if there is any.
static
css
::
uno
::
Any
getXTextAppend
(
SwFrmFmt
*
pShape
,
const
css
::
uno
::
Type
&
rType
);
/// Sync property of TextBox with the one of the shape.
...
...
sw/source/core/doc/textboxhelper.cxx
Dosyayı görüntüle @
8791ea1d
...
...
@@ -65,6 +65,22 @@ void SwTextBoxHelper::create(SwFrmFmt* pShape)
}
}
void
SwTextBoxHelper
::
destroy
(
SwFrmFmt
*
pShape
)
{
// If a TextBox was enabled previously
if
(
pShape
->
GetAttrSet
().
HasItem
(
RES_CNTNT
))
{
SwFrmFmt
*
pFmt
=
findTextBox
(
pShape
);
// Unlink the TextBox's text range from the original shape.
pShape
->
ResetFmtAttr
(
RES_CNTNT
);
// Delete the associated TextFrame.
if
(
pFmt
)
pShape
->
GetDoc
()
->
DelLayoutFmt
(
pFmt
);
}
}
SwFrmFmt
*
SwTextBoxHelper
::
findTextBox
(
SwFrmFmt
*
pShape
)
{
SwFrmFmt
*
pRet
=
0
;
...
...
sw/source/core/unocore/unodraw.cxx
Dosyayı görüntüle @
8791ea1d
...
...
@@ -1182,9 +1182,10 @@ void SwXShape::setPropertyValue(const OUString& rPropertyName, const uno::Any& a
{
bool
bValue
;
aValue
>>=
bValue
;
// If TextBox is to be enabled.
if
(
bValue
)
SwTextBoxHelper
::
create
(
pFmt
);
else
SwTextBoxHelper
::
destroy
(
pFmt
);
}
// #i28749#
...
...
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