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
a0e76afb
Kaydet (Commit)
a0e76afb
authored
Nis 26, 2013
tarafından
Oliver-Rainer Wittmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
122156 122087: correct context notification regarding the text edit mode for Drawing objects
üst
8808ad84
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
30 deletions
+41
-30
sdview.cxx
sd/source/ui/view/sdview.cxx
+0
-8
SelectionAnalyzer.cxx
svx/source/sidebar/SelectionAnalyzer.cxx
+37
-22
svdedxv.cxx
svx/source/svdraw/svdedxv.cxx
+4
-0
No files found.
sd/source/ui/view/sdview.cxx
Dosyayı görüntüle @
a0e76afb
...
@@ -780,10 +780,6 @@ sal_Bool View::SdrBeginTextEdit(
...
@@ -780,10 +780,6 @@ sal_Bool View::SdrBeginTextEdit(
pGivenOutlinerView
,
bDontDeleteOutliner
,
pGivenOutlinerView
,
bDontDeleteOutliner
,
bOnlyOneView
,
bGrabFocus
);
bOnlyOneView
,
bGrabFocus
);
ContextChangeEventMultiplexer
::
NotifyContextChange
(
&
GetViewShell
()
->
GetViewShellBase
(),
::
sfx2
::
sidebar
::
EnumContext
::
Context_DrawText
);
if
(
bReturn
)
if
(
bReturn
)
{
{
::
Outliner
*
pOL
=
GetTextEditOutliner
();
::
Outliner
*
pOL
=
GetTextEditOutliner
();
...
@@ -850,10 +846,6 @@ SdrEndTextEditKind View::SdrEndTextEdit(sal_Bool bDontDeleteReally )
...
@@ -850,10 +846,6 @@ SdrEndTextEditKind View::SdrEndTextEdit(sal_Bool bDontDeleteReally )
if
(
xObj
.
is
()
)
if
(
xObj
.
is
()
)
{
{
ContextChangeEventMultiplexer
::
NotifyContextChange
(
&
GetViewShell
()
->
GetViewShellBase
(),
::
sfx2
::
sidebar
::
EnumContext
::
Context_Default
);
SdPage
*
pPage
=
dynamic_cast
<
SdPage
*
>
(
xObj
->
GetPage
()
);
SdPage
*
pPage
=
dynamic_cast
<
SdPage
*
>
(
xObj
->
GetPage
()
);
if
(
pPage
)
if
(
pPage
)
pPage
->
onEndTextEdit
(
xObj
.
get
()
);
pPage
->
onEndTextEdit
(
xObj
.
get
()
);
...
...
svx/source/sidebar/SelectionAnalyzer.cxx
Dosyayı görüntüle @
a0e76afb
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
#include "svx/sidebar/SelectionAnalyzer.hxx"
#include "svx/sidebar/SelectionAnalyzer.hxx"
#include "svx/svdmrkv.hxx"
#include "svx/svdmrkv.hxx"
#include "svx/svdobj.hxx"
#include "svx/svdobj.hxx"
#include "svx/svdotext.hxx"
#include "svx/svdpage.hxx"
#include "svx/svdpage.hxx"
#include "svx/fmglob.hxx"
#include "svx/fmglob.hxx"
#include "svx/globl3d.hxx"
#include "svx/globl3d.hxx"
...
@@ -47,12 +48,19 @@ EnumContext::Context SelectionAnalyzer::GetContextForSelection_SC (const SdrMark
...
@@ -47,12 +48,19 @@ EnumContext::Context SelectionAnalyzer::GetContextForSelection_SC (const SdrMark
case
1
:
case
1
:
{
{
SdrObject
*
pObj
=
rMarkList
.
GetMark
(
0
)
->
GetMarkedSdrObj
();
SdrObject
*
pObj
=
rMarkList
.
GetMark
(
0
)
->
GetMarkedSdrObj
();
const
sal_uInt32
nInv
=
pObj
->
GetObjInventor
();
if
(
pObj
->
ISA
(
SdrTextObj
)
&&
((
SdrTextObj
*
)
pObj
)
->
IsInEditMode
()
)
const
sal_uInt16
nObjId
=
pObj
->
GetObjIdentifier
();
{
if
(
nInv
==
SdrInventor
)
eContext
=
EnumContext
::
Context_DrawText
;
eContext
=
GetContextForObjectId_SC
(
nObjId
);
}
else
if
(
nInv
==
FmFormInventor
)
else
eContext
=
EnumContext
::
Context_Form
;
{
const
sal_uInt32
nInv
=
pObj
->
GetObjInventor
();
const
sal_uInt16
nObjId
=
pObj
->
GetObjIdentifier
();
if
(
nInv
==
SdrInventor
)
eContext
=
GetContextForObjectId_SC
(
nObjId
);
else
if
(
nInv
==
FmFormInventor
)
eContext
=
EnumContext
::
Context_Form
;
}
break
;
break
;
}
}
...
@@ -114,25 +122,32 @@ EnumContext::Context SelectionAnalyzer::GetContextForSelection_SD (
...
@@ -114,25 +122,32 @@ EnumContext::Context SelectionAnalyzer::GetContextForSelection_SD (
case
1
:
case
1
:
{
{
SdrObject
*
pObj
=
rMarkList
.
GetMark
(
0
)
->
GetMarkedSdrObj
();
SdrObject
*
pObj
=
rMarkList
.
GetMark
(
0
)
->
GetMarkedSdrObj
();
const
sal_uInt32
nInv
=
pObj
->
GetObjInventor
();
if
(
pObj
->
ISA
(
SdrTextObj
)
&&
((
SdrTextObj
*
)
pObj
)
->
IsInEditMode
()
)
sal_uInt16
nObjId
=
pObj
->
GetObjIdentifier
();
if
(
nInv
==
SdrInventor
)
{
if
(
nObjId
==
OBJ_GRUP
)
{
nObjId
=
GetObjectTypeFromGroup
(
pObj
);
if
(
nObjId
==
0
)
nObjId
=
OBJ_GRUP
;
}
eContext
=
GetContextForObjectId_SD
(
nObjId
,
bIsHandoutPage
,
bIsNotesPage
);
}
else
if
(
nInv
==
E3dInventor
)
{
{
eContext
=
EnumContext
::
Context_
3DObjec
t
;
eContext
=
EnumContext
::
Context_
DrawTex
t
;
}
}
else
if
(
nInv
==
FmFormInventor
)
else
{
{
eContext
=
EnumContext
::
Context_Form
;
const
sal_uInt32
nInv
=
pObj
->
GetObjInventor
();
sal_uInt16
nObjId
=
pObj
->
GetObjIdentifier
();
if
(
nInv
==
SdrInventor
)
{
if
(
nObjId
==
OBJ_GRUP
)
{
nObjId
=
GetObjectTypeFromGroup
(
pObj
);
if
(
nObjId
==
0
)
nObjId
=
OBJ_GRUP
;
}
eContext
=
GetContextForObjectId_SD
(
nObjId
,
bIsHandoutPage
,
bIsNotesPage
);
}
else
if
(
nInv
==
E3dInventor
)
{
eContext
=
EnumContext
::
Context_3DObject
;
}
else
if
(
nInv
==
FmFormInventor
)
{
eContext
=
EnumContext
::
Context_Form
;
}
}
}
break
;
break
;
}
}
...
...
svx/source/svdraw/svdedxv.cxx
Dosyayı görüntüle @
a0e76afb
...
@@ -695,6 +695,8 @@ sal_Bool SdrObjEditView::SdrBeginTextEdit(
...
@@ -695,6 +695,8 @@ sal_Bool SdrObjEditView::SdrBeginTextEdit(
// Since IsMarkHdlWhenTextEdit() is ignored, it is necessary
// Since IsMarkHdlWhenTextEdit() is ignored, it is necessary
// to call AdjustMarkHdl() always.
// to call AdjustMarkHdl() always.
AdjustMarkHdl
();
AdjustMarkHdl
();
// Call <MarkListHasChanged()> as it also handles context changes for sidebar
MarkListHasChanged
();
pTextEditOutlinerView
=
ImpMakeOutlinerView
(
pWin
,
!
bEmpty
,
pGivenOutlinerView
);
pTextEditOutlinerView
=
ImpMakeOutlinerView
(
pWin
,
!
bEmpty
,
pGivenOutlinerView
);
...
@@ -1031,6 +1033,8 @@ SdrEndTextEditKind SdrObjEditView::SdrEndTextEdit(sal_Bool bDontDeleteReally)
...
@@ -1031,6 +1033,8 @@ SdrEndTextEditKind SdrObjEditView::SdrEndTextEdit(sal_Bool bDontDeleteReally)
// Since IsMarkHdlWhenTextEdit() is ignored, it is necessary
// Since IsMarkHdlWhenTextEdit() is ignored, it is necessary
// to call AdjustMarkHdl() always.
// to call AdjustMarkHdl() always.
AdjustMarkHdl
();
AdjustMarkHdl
();
// Call <MarkListHasChanged()> as it also handles context changes for sidebar
MarkListHasChanged
();
}
}
// alle OutlinerViews loeschen
// alle OutlinerViews loeschen
for
(
sal_uIntPtr
i
=
pTEOutliner
->
GetViewCount
();
i
>
0
;)
for
(
sal_uIntPtr
i
=
pTEOutliner
->
GetViewCount
();
i
>
0
;)
...
...
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