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
00b6e5da
Kaydet (Commit)
00b6e5da
authored
Agu 11, 2010
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
oooimprovement6: #i97340# disable show data button when no file exists
üst
bac4d759
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
optimprove2.cxx
cui/source/options/optimprove2.cxx
+15
-0
No files found.
cui/source/options/optimprove2.cxx
Dosyayı görüntüle @
00b6e5da
...
@@ -52,6 +52,7 @@
...
@@ -52,6 +52,7 @@
#include <comphelper/synchronousdispatch.hxx>
#include <comphelper/synchronousdispatch.hxx>
#include <comphelper/uieventslogger.hxx>
#include <comphelper/uieventslogger.hxx>
#include <tools/testtoolloader.hxx>
#include <tools/testtoolloader.hxx>
#include <osl/file.hxx>
#define C2S(s) ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(s))
#define C2S(s) ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(s))
...
@@ -61,6 +62,18 @@ namespace uno = ::com::sun::star::uno;
...
@@ -61,6 +62,18 @@ namespace uno = ::com::sun::star::uno;
namespace
util
=
::
com
::
sun
::
star
::
util
;
namespace
util
=
::
com
::
sun
::
star
::
util
;
using
namespace
com
::
sun
::
star
::
system
;
using
namespace
com
::
sun
::
star
::
system
;
namespace
{
bool
lcl_doesLogfileExist
(
const
::
rtl
::
OUString
&
sLogPath
)
{
::
rtl
::
OUString
sLogFile
(
sLogPath
);
sLogFile
+=
C2S
(
"/Current.csv"
);
::
osl
::
File
aLogFile
(
sLogFile
);
return
aLogFile
.
open
(
osl_File_OpenFlag_Read
)
==
::
osl
::
FileBase
::
E_None
;
}
}
// class SvxEmptyPage ----------------------------------------------------
// class SvxEmptyPage ----------------------------------------------------
SvxEmptyPage
::
SvxEmptyPage
(
Window
*
pParent
)
:
SvxEmptyPage
::
SvxEmptyPage
(
Window
*
pParent
)
:
...
@@ -262,11 +275,13 @@ void SvxImprovementOptionsPage::Reset( const SfxItemSet& /*rSet*/ )
...
@@ -262,11 +275,13 @@ void SvxImprovementOptionsPage::Reset( const SfxItemSet& /*rSet*/ )
if
(
xSubst
.
is
()
)
if
(
xSubst
.
is
()
)
sPath
=
xSubst
->
substituteVariables
(
sPath
,
sal_False
);
sPath
=
xSubst
->
substituteVariables
(
sPath
,
sal_False
);
m_sLogPath
=
sPath
;
m_sLogPath
=
sPath
;
m_aShowDataPB
.
Enable
(
lcl_doesLogfileExist
(
m_sLogPath
));
}
}
}
}
}
}
catch
(
uno
::
Exception
&
)
catch
(
uno
::
Exception
&
)
{
{
m_aShowDataPB
.
Enable
(
false
);
}
}
}
}
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