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
a97c4ca2
Kaydet (Commit)
a97c4ca2
authored
May 13, 2013
tarafından
Andre Fischer
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
121981: Don't change sidebar context while in Impress table.
üst
2f18055a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
8 deletions
+17
-8
drviewsa.cxx
sd/source/ui/view/drviewsa.cxx
+2
-6
SelectionAnalyzer.hxx
svx/inc/svx/sidebar/SelectionAnalyzer.hxx
+5
-0
SelectionAnalyzer.cxx
svx/source/sidebar/SelectionAnalyzer.cxx
+10
-2
No files found.
sd/source/ui/view/drviewsa.cxx
Dosyayı görüntüle @
a97c4ca2
...
...
@@ -871,14 +871,10 @@ void DrawViewShell::GetAnnotationState (SfxItemSet& rItemSet )
}
EnumContext
::
Context
DrawViewShell
::
GetContextForSelection
(
void
)
const
{
if
(
mpDrawView
->
GetMarkedObjectList
().
GetMarkCount
()
==
1
)
if
(
mpDrawView
->
GetTextEditObject
()
!=
NULL
)
if
(
mpDrawView
->
GetTextEditOutlinerView
()
!=
NULL
)
return
EnumContext
::
Context_DrawText
;
// All other cases are handled by the SelectionAnalyzer.
return
::
svx
::
sidebar
::
SelectionAnalyzer
::
GetContextForSelection_SD
(
mpDrawView
->
GetMarkedObjectList
(),
meEditMode
==
EM_MASTERPAGE
,
...
...
svx/inc/svx/sidebar/SelectionAnalyzer.hxx
Dosyayı görüntüle @
a97c4ca2
...
...
@@ -31,6 +31,11 @@ class SdrObject;
namespace
svx
{
namespace
sidebar
{
/** Analyze the current selection of Calc or Draw/Impress documents
and return the associated sidebar context.
The decision is based on heuristics. Do not expect pretty code.
*/
class
SVX_DLLPUBLIC
SelectionAnalyzer
{
public
:
...
...
svx/source/sidebar/SelectionAnalyzer.cxx
Dosyayı görüntüle @
a97c4ca2
...
...
@@ -122,9 +122,17 @@ EnumContext::Context SelectionAnalyzer::GetContextForSelection_SD (
case
1
:
{
SdrObject
*
pObj
=
rMarkList
.
GetMark
(
0
)
->
GetMarkedSdrObj
();
if
(
pObj
->
ISA
(
SdrTextObj
)
&&
((
SdrTextObj
*
)
pObj
)
->
IsInEditMode
()
)
if
(
pObj
->
ISA
(
SdrTextObj
)
&&
((
SdrTextObj
*
)
pObj
)
->
IsInEditMode
()
)
{
eContext
=
EnumContext
::
Context_DrawText
;
if
(
pObj
->
GetObjIdentifier
()
==
OBJ_TABLE
)
{
// Let a table object take precedence over text
// edit mode. The panels for text editing are
// present for table context as well, anyway.
eContext
=
EnumContext
::
Context_Table
;
}
else
eContext
=
EnumContext
::
Context_DrawText
;
}
else
{
...
...
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