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
93011580
Kaydet (Commit)
93011580
authored
Haz 25, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SwView::EnterDrawTextMode: refuse to edit editeng text if texbox is attached
Change-Id: If1b3e9807414e90341199eabfa937376084c097d
üst
74a07821
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
viewdraw.cxx
sw/source/uibase/uiview/viewdraw.cxx
+14
-1
No files found.
sw/source/uibase/uiview/viewdraw.cxx
Dosyayı görüntüle @
93011580
...
@@ -31,6 +31,7 @@
...
@@ -31,6 +31,7 @@
#include <sfx2/viewfrm.hxx>
#include <sfx2/viewfrm.hxx>
#include <doc.hxx>
#include <doc.hxx>
#include <IDocumentDeviceAccess.hxx>
#include <IDocumentDeviceAccess.hxx>
#include <textboxhelper.hxx>
#include <editeng/langitem.hxx>
#include <editeng/langitem.hxx>
#include <linguistic/lngprops.hxx>
#include <linguistic/lngprops.hxx>
#include <editeng/unolingu.hxx>
#include <editeng/unolingu.hxx>
...
@@ -459,6 +460,16 @@ void SwView::NoRotate()
...
@@ -459,6 +460,16 @@ void SwView::NoRotate()
// Enable DrawTextEditMode
// Enable DrawTextEditMode
static
bool
lcl_isTextBox
(
SdrObject
*
pObject
)
{
if
(
SwDrawContact
*
pDrawContact
=
static_cast
<
SwDrawContact
*>
(
pObject
->
GetUserCall
()))
{
if
(
SwFrmFmt
*
pFmt
=
pDrawContact
->
GetFmt
())
return
SwTextBoxHelper
::
findTextBox
(
pFmt
);
}
return
false
;
}
bool
SwView
::
EnterDrawTextMode
(
const
Point
&
aDocPos
)
bool
SwView
::
EnterDrawTextMode
(
const
Point
&
aDocPos
)
{
{
SdrObject
*
pObj
;
SdrObject
*
pObj
;
...
@@ -483,7 +494,9 @@ bool SwView::EnterDrawTextMode(const Point& aDocPos)
...
@@ -483,7 +494,9 @@ bool SwView::EnterDrawTextMode(const Point& aDocPos)
!
m_pWrtShell
->
IsSelObjProtected
(
FLYPROTECT_CONTENT
))
!
m_pWrtShell
->
IsSelObjProtected
(
FLYPROTECT_CONTENT
))
{
{
bReturn
=
BeginTextEdit
(
pObj
,
pPV
,
m_pEditWin
,
false
);
// Refuse to edit editeng text of the shape if it has textbox attached.
if
(
!
lcl_isTextBox
(
pObj
))
bReturn
=
BeginTextEdit
(
pObj
,
pPV
,
m_pEditWin
,
false
);
}
}
pSdrView
->
SetHitTolerancePixel
(
nOld
);
pSdrView
->
SetHitTolerancePixel
(
nOld
);
...
...
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