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
472c175d
Kaydet (Commit)
472c175d
authored
Agu 10, 2012
tarafından
Armin Le Grand
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#120515# Implemented and finetuned the enhanced Undo feature (see #120498#) for sc
üst
ddd94929
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
26 deletions
+19
-26
document.cxx
sc/source/core/data/document.cxx
+6
-1
drawview.hxx
sc/source/ui/inc/drawview.hxx
+4
-0
drawview.cxx
sc/source/ui/view/drawview.cxx
+9
-25
No files found.
sc/source/core/data/document.cxx
Dosyayı görüntüle @
472c175d
...
@@ -45,6 +45,7 @@
...
@@ -45,6 +45,7 @@
#include <unotools/charclass.hxx>
#include <unotools/charclass.hxx>
#include <unotools/transliterationwrapper.hxx>
#include <unotools/transliterationwrapper.hxx>
#include <tools/tenccvt.hxx>
#include <tools/tenccvt.hxx>
#include <svx/sdrundomanager.hxx>
#include <com/sun/star/text/WritingMode2.hpp>
#include <com/sun/star/text/WritingMode2.hpp>
#include <com/sun/star/script/vba/XVBACompatibility.hpp>
#include <com/sun/star/script/vba/XVBACompatibility.hpp>
...
@@ -5290,7 +5291,11 @@ sal_Bool ScDocument::NeedPageResetAfterTab( SCTAB nTab ) const
...
@@ -5290,7 +5291,11 @@ sal_Bool ScDocument::NeedPageResetAfterTab( SCTAB nTab ) const
SfxUndoManager
*
ScDocument
::
GetUndoManager
()
SfxUndoManager
*
ScDocument
::
GetUndoManager
()
{
{
if
(
!
mpUndoManager
)
if
(
!
mpUndoManager
)
mpUndoManager
=
new
SfxUndoManager
;
{
// to support enhanced text edit for draw objects, use an SdrUndoManager
mpUndoManager
=
new
SdrUndoManager
;
}
return
mpUndoManager
;
return
mpUndoManager
;
}
}
...
...
sc/source/ui/inc/drawview.hxx
Dosyayı görüntüle @
472c175d
...
@@ -33,6 +33,7 @@ namespace com { namespace sun { namespace star { namespace datatransfer { class
...
@@ -33,6 +33,7 @@ namespace com { namespace sun { namespace star { namespace datatransfer { class
class
ScDocument
;
class
ScDocument
;
class
ScViewData
;
class
ScViewData
;
class
ScDrawObjData
;
class
ScDrawObjData
;
class
SdrUndoManager
;
class
ScDrawView
:
public
FmFormView
class
ScDrawView
:
public
FmFormView
{
{
...
@@ -58,6 +59,9 @@ protected:
...
@@ -58,6 +59,9 @@ protected:
void
ImplClearCalcDropMarker
();
void
ImplClearCalcDropMarker
();
// support enhanced text edit for draw objects
virtual
SdrUndoManager
*
getSdrUndoManagerForEnhancedTextEdit
()
const
;
public
:
public
:
ScDrawView
(
OutputDevice
*
pOut
,
ScViewData
*
pData
);
ScDrawView
(
OutputDevice
*
pOut
,
ScViewData
*
pData
);
virtual
~
ScDrawView
();
virtual
~
ScDrawView
();
...
...
sc/source/ui/view/drawview.cxx
Dosyayı görüntüle @
472c175d
...
@@ -42,6 +42,7 @@
...
@@ -42,6 +42,7 @@
#include <svx/sdrpaintwindow.hxx>
#include <svx/sdrpaintwindow.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/viewfrm.hxx>
#include <sfx2/viewfrm.hxx>
#include <svx/sdrundomanager.hxx>
#include "drawview.hxx"
#include "drawview.hxx"
#include "global.hxx"
#include "global.hxx"
...
@@ -59,6 +60,7 @@
...
@@ -59,6 +60,7 @@
#include "userdat.hxx"
#include "userdat.hxx"
#include "postit.hxx"
#include "postit.hxx"
#include "undocell.hxx"
#include "undocell.hxx"
#include "document.hxx"
#include "sc.hrc"
#include "sc.hrc"
...
@@ -814,28 +816,10 @@ void ScDrawView::MarkDropObj( SdrObject* pObj )
...
@@ -814,28 +816,10 @@ void ScDrawView::MarkDropObj( SdrObject* pObj )
}
}
}
}
//UNUSED2009-05 void ScDrawView::CaptionTextDirection( sal_uInt16 nSlot )
// support enhanced text edit for draw objects
//UNUSED2009-05 {
SdrUndoManager
*
ScDrawView
::
getSdrUndoManagerForEnhancedTextEdit
()
const
//UNUSED2009-05 if(nSlot != SID_TEXTDIRECTION_LEFT_TO_RIGHT && nSlot != SID_TEXTDIRECTION_TOP_TO_BOTTOM)
{
//UNUSED2009-05 return;
return
pDoc
?
dynamic_cast
<
SdrUndoManager
*
>
(
pDoc
->
GetUndoManager
())
:
0
;
//UNUSED2009-05
}
//UNUSED2009-05 SdrObject* pObject = GetTextEditObject();
//UNUSED2009-05 if ( ScDrawLayer::IsNoteCaption( pObject ) )
// eof
//UNUSED2009-05 {
//UNUSED2009-05 if( SdrCaptionObj* pCaption = dynamic_cast< SdrCaptionObj* >( pObject ) )
//UNUSED2009-05 {
//UNUSED2009-05 SfxItemSet aAttr(pCaption->GetMergedItemSet());
//UNUSED2009-05 aAttr.Put( SvxWritingModeItem(
//UNUSED2009-05 nSlot == SID_TEXTDIRECTION_LEFT_TO_RIGHT ?
//UNUSED2009-05 com::sun::star::text::WritingMode_LR_TB : com::sun::star::text::WritingMode_TB_RL,
//UNUSED2009-05 SDRATTR_TEXTDIRECTION ) );
//UNUSED2009-05 pCaption->SetMergedItemSet(aAttr);
//UNUSED2009-05 FuPoor* pPoor = pViewData->GetView()->GetDrawFuncPtr();
//UNUSED2009-05 if ( pPoor )
//UNUSED2009-05 {
//UNUSED2009-05 FuText* pText = static_cast<FuText*>(pPoor);
//UNUSED2009-05 pText->StopEditMode(sal_True);
//UNUSED2009-05 }
//UNUSED2009-05 }
//UNUSED2009-05 }
//UNUSED2009-05 }
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