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
34d46585
Kaydet (Commit)
34d46585
authored
Haz 20, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SwDrawContact: recaclc textbox size on shape adjustment change as well
Change-Id: I65abec66d56f2bf83e28c85589638cea5f3a7a0c
üst
aac149e4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
9 deletions
+20
-9
textboxhelper.cxx
sw/source/core/doc/textboxhelper.cxx
+1
-1
dcontact.cxx
sw/source/core/draw/dcontact.cxx
+19
-8
No files found.
sw/source/core/doc/textboxhelper.cxx
Dosyayı görüntüle @
34d46585
...
@@ -538,7 +538,7 @@ void SwTextBoxHelper::syncFlyFrmAttr(SwFrmFmt& rShape, SfxItemSet& rSet)
...
@@ -538,7 +538,7 @@ void SwTextBoxHelper::syncFlyFrmAttr(SwFrmFmt& rShape, SfxItemSet& rSet)
break
;
break
;
default
:
default
:
SAL_WARN
(
"sw.core"
,
"SwTextBoxHelper::syncFlyFrmAttr: unhandled which-id: "
<<
nWhich
);
SAL_WARN
(
"sw.core"
,
"SwTextBoxHelper::syncFlyFrmAttr: unhandled which-id: "
<<
nWhich
);
break
;
break
;
}
}
if
(
aIter
.
IsAtEnd
())
if
(
aIter
.
IsAtEnd
())
...
...
sw/source/core/draw/dcontact.cxx
Dosyayı görüntüle @
34d46585
...
@@ -1152,6 +1152,19 @@ class NestedUserCallHdl
...
@@ -1152,6 +1152,19 @@ class NestedUserCallHdl
}
}
};
};
/// Notify the format's textbox that it should reconsider its position / size.
void
lcl_textBoxSizeNotify
(
SwFrmFmt
*
pFmt
)
{
if
(
SwTextBoxHelper
::
findTextBox
(
pFmt
))
{
// Just notify the textbox that the size has changed, the actual object size is not interesting.
SfxItemSet
aResizeSet
(
pFmt
->
GetDoc
()
->
GetAttrPool
(),
RES_FRM_SIZE
,
RES_FRM_SIZE
,
0
);
SwFmtFrmSize
aSize
;
aResizeSet
.
Put
(
aSize
);
SwTextBoxHelper
::
syncFlyFrmAttr
(
*
pFmt
,
aResizeSet
);
}
}
// !!!ATTENTION!!! The object may commit suicide!!!
// !!!ATTENTION!!! The object may commit suicide!!!
void
SwDrawContact
::
_Changed
(
const
SdrObject
&
rObj
,
void
SwDrawContact
::
_Changed
(
const
SdrObject
&
rObj
,
...
@@ -1385,15 +1398,13 @@ void SwDrawContact::_Changed( const SdrObject& rObj,
...
@@ -1385,15 +1398,13 @@ void SwDrawContact::_Changed( const SdrObject& rObj,
}
}
}
}
if
(
SwTextBoxHelper
::
findTextBox
(
GetFmt
()))
lcl_textBoxSizeNotify
(
GetFmt
());
{
// Just notify the textbox that the size has changed, the actual object size is not interesting.
SfxItemSet
aResizeSet
(
GetFmt
()
->
GetDoc
()
->
GetAttrPool
(),
RES_FRM_SIZE
,
RES_FRM_SIZE
,
0
);
SwFmtFrmSize
aSize
;
aResizeSet
.
Put
(
aSize
);
SwTextBoxHelper
::
syncFlyFrmAttr
(
*
GetFmt
(),
aResizeSet
);
}
}
}
else
if
(
eType
==
SDRUSERCALL_RESIZE
)
// Even if the bounding box of the shape didn't change,
// notify about the size change, as an adjustment change
// may affect the size of the underlying textbox.
lcl_textBoxSizeNotify
(
GetFmt
());
}
}
}
}
break
;
break
;
...
...
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