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
6fa4d31d
Kaydet (Commit)
6fa4d31d
authored
Nis 15, 2014
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use scope switch rather than manual on and off.
Change-Id: Ia4072339b6f1fd4b929d891dcc8f3bb3e2403d5e
üst
8e50a6c7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
4 deletions
+22
-4
scopetools.hxx
sc/inc/scopetools.hxx
+9
-0
scopetools.cxx
sc/source/core/tool/scopetools.cxx
+11
-0
output2.cxx
sc/source/ui/view/output2.cxx
+2
-4
No files found.
sc/inc/scopetools.hxx
Dosyayı görüntüle @
6fa4d31d
...
@@ -46,6 +46,15 @@ public:
...
@@ -46,6 +46,15 @@ public:
~
UndoSwitch
();
~
UndoSwitch
();
};
};
class
SC_DLLPUBLIC
IdleSwitch
{
ScDocument
&
mrDoc
;
bool
mbOldValue
;
public
:
IdleSwitch
(
ScDocument
&
rDoc
,
bool
bEnableIdle
);
~
IdleSwitch
();
};
}
}
#endif
#endif
...
...
sc/source/core/tool/scopetools.cxx
Dosyayı görüntüle @
6fa4d31d
...
@@ -45,6 +45,17 @@ UndoSwitch::~UndoSwitch()
...
@@ -45,6 +45,17 @@ UndoSwitch::~UndoSwitch()
mrDoc
.
EnableUndo
(
mbOldValue
);
mrDoc
.
EnableUndo
(
mbOldValue
);
}
}
IdleSwitch
::
IdleSwitch
(
ScDocument
&
rDoc
,
bool
bEnableIdle
)
:
mrDoc
(
rDoc
),
mbOldValue
(
rDoc
.
IsIdleEnabled
())
{
mrDoc
.
EnableIdle
(
bEnableIdle
);
}
IdleSwitch
::~
IdleSwitch
()
{
mrDoc
.
EnableIdle
(
mbOldValue
);
}
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sc/source/ui/view/output2.cxx
Dosyayı görüntüle @
6fa4d31d
...
@@ -61,6 +61,7 @@
...
@@ -61,6 +61,7 @@
#include "markdata.hxx"
#include "markdata.hxx"
#include "stlsheet.hxx"
#include "stlsheet.hxx"
#include "spellcheckcontext.hxx"
#include "spellcheckcontext.hxx"
#include <scopetools.hxx>
#include <com/sun/star/i18n/DirectionProperty.hpp>
#include <com/sun/star/i18n/DirectionProperty.hpp>
#include <comphelper/string.hxx>
#include <comphelper/string.hxx>
...
@@ -1443,9 +1444,7 @@ void ScOutputData::DrawStrings( bool bPixelToLogic )
...
@@ -1443,9 +1444,7 @@ void ScOutputData::DrawStrings( bool bPixelToLogic )
vcl::PDFExtOutDevData* pPDFData = PTR_CAST( vcl::PDFExtOutDevData, mpDev->GetExtOutDevData() );
vcl::PDFExtOutDevData* pPDFData = PTR_CAST( vcl::PDFExtOutDevData, mpDev->GetExtOutDevData() );
bool
bWasIdleEnabled
=
mpDoc
->
IsIdleEnabled
();
sc::IdleSwitch aIdleSwitch(*mpDoc, false);
mpDoc
->
EnableIdle
(
false
);
ScDrawStringsVars aVars( this, bPixelToLogic );
ScDrawStringsVars aVars( this, bPixelToLogic );
bool bProgress = false;
bool bProgress = false;
...
@@ -2071,7 +2070,6 @@ void ScOutputData::DrawStrings( bool bPixelToLogic )
...
@@ -2071,7 +2070,6 @@ void ScOutputData::DrawStrings( bool bPixelToLogic )
}
}
if ( bProgress )
if ( bProgress )
ScProgress::DeleteInterpretProgress();
ScProgress::DeleteInterpretProgress();
mpDoc
->
EnableIdle
(
bWasIdleEnabled
);
}
}
ScFieldEditEngine* ScOutputData::CreateOutputEditEngine()
ScFieldEditEngine* ScOutputData::CreateOutputEditEngine()
...
...
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