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
f9f9fa1e
Kaydet (Commit)
f9f9fa1e
authored
Ock 01, 2013
tarafından
Chr. Rossmanith
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
RTL_CONSTASCII_(U)STRINGPARAM removed in desktop
Change-Id: I23bd979aa39a8062f65f66e701cfd8ca3a18da8c
üst
ffaf6adb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
66 additions
and
91 deletions
+66
-91
dp_misc.h
desktop/source/deployment/inc/dp_misc.h
+0
-1
dp_extensionmanager.cxx
desktop/source/deployment/manager/dp_extensionmanager.cxx
+1
-1
unopkg_app.cxx
desktop/source/pkgchk/unopkg/unopkg_app.cxx
+43
-52
unopkg_cmdenv.cxx
desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx
+12
-15
unopkg_misc.cxx
desktop/source/pkgchk/unopkg/unopkg_misc.cxx
+0
-0
splash.cxx
desktop/source/splash/splash.cxx
+10
-22
No files found.
desktop/source/deployment/inc/dp_misc.h
Dosyayı görüntüle @
f9f9fa1e
...
@@ -32,7 +32,6 @@
...
@@ -32,7 +32,6 @@
#include "com/sun/star/awt/XWindow.hpp"
#include "com/sun/star/awt/XWindow.hpp"
#include "dp_misc_api.hxx"
#include "dp_misc_api.hxx"
#define OUSTR(x) ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(x) )
#define ARLEN(x) (sizeof (x) / sizeof *(x))
#define ARLEN(x) (sizeof (x) / sizeof *(x))
namespace
dp_misc
{
namespace
dp_misc
{
...
...
desktop/source/deployment/manager/dp_extensionmanager.cxx
Dosyayı görüntüle @
f9f9fa1e
...
@@ -1308,7 +1308,7 @@ sal_Bool ExtensionManager::synchronize(
...
@@ -1308,7 +1308,7 @@ sal_Bool ExtensionManager::synchronize(
sSynchronizingShared
.
SearchAndReplaceAllAscii
(
"%NAME"
,
OUString
(
"shared"
));
sSynchronizingShared
.
SearchAndReplaceAllAscii
(
"%NAME"
,
OUString
(
"shared"
));
dp_misc
::
ProgressLevel
progressShared
(
xCmdEnv
,
sSynchronizingShared
);
dp_misc
::
ProgressLevel
progressShared
(
xCmdEnv
,
sSynchronizingShared
);
sal_Bool
bModified
=
getSharedRepository
()
->
synchronize
(
xAbortChannel
,
xCmdEnv
);
sal_Bool
bModified
=
getSharedRepository
()
->
synchronize
(
xAbortChannel
,
xCmdEnv
);
progressShared
.
update
(
OUSTR
(
"
\n\n
"
)
);
progressShared
.
update
(
"
\n\n
"
);
String
sSynchronizingBundled
(
StrSyncRepository
::
get
());
String
sSynchronizingBundled
(
StrSyncRepository
::
get
());
sSynchronizingBundled
.
SearchAndReplaceAllAscii
(
"%NAME"
,
OUString
(
"bundled"
));
sSynchronizingBundled
.
SearchAndReplaceAllAscii
(
"%NAME"
,
OUString
(
"bundled"
));
...
...
desktop/source/pkgchk/unopkg/unopkg_app.cxx
Dosyayı görüntüle @
f9f9fa1e
...
@@ -196,23 +196,23 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main()
...
@@ -196,23 +196,23 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main()
::
std
::
vector
<
OUString
>
cmdPackages
;
::
std
::
vector
<
OUString
>
cmdPackages
;
OptionInfo
const
*
info_shared
=
getOptionInfo
(
OptionInfo
const
*
info_shared
=
getOptionInfo
(
s_option_infos
,
OUSTR
(
"shared"
)
);
s_option_infos
,
"shared"
);
OptionInfo
const
*
info_force
=
getOptionInfo
(
OptionInfo
const
*
info_force
=
getOptionInfo
(
s_option_infos
,
OUSTR
(
"force"
)
);
s_option_infos
,
"force"
);
OptionInfo
const
*
info_verbose
=
getOptionInfo
(
OptionInfo
const
*
info_verbose
=
getOptionInfo
(
s_option_infos
,
OUSTR
(
"verbose"
)
);
s_option_infos
,
"verbose"
);
OptionInfo
const
*
info_log
=
getOptionInfo
(
OptionInfo
const
*
info_log
=
getOptionInfo
(
s_option_infos
,
OUSTR
(
"log-file"
)
);
s_option_infos
,
"log-file"
);
OptionInfo
const
*
info_context
=
getOptionInfo
(
OptionInfo
const
*
info_context
=
getOptionInfo
(
s_option_infos
,
OUSTR
(
"deployment-context"
)
);
s_option_infos
,
"deployment-context"
);
OptionInfo
const
*
info_help
=
getOptionInfo
(
OptionInfo
const
*
info_help
=
getOptionInfo
(
s_option_infos
,
OUSTR
(
"help"
)
);
s_option_infos
,
"help"
);
OptionInfo
const
*
info_version
=
getOptionInfo
(
OptionInfo
const
*
info_version
=
getOptionInfo
(
s_option_infos
,
OUSTR
(
"version"
)
);
s_option_infos
,
"version"
);
OptionInfo
const
*
info_bundled
=
getOptionInfo
(
OptionInfo
const
*
info_bundled
=
getOptionInfo
(
s_option_infos
,
OUSTR
(
"bundled"
)
);
s_option_infos
,
"bundled"
);
OptionInfo
const
*
info_suppressLicense
=
getOptionInfo
(
OptionInfo
const
*
info_suppressLicense
=
getOptionInfo
(
s_option_infos
,
OUSTR
(
"suppress-license"
)
);
s_option_infos
,
"suppress-license"
);
Reference
<
XComponentContext
>
xComponentContext
;
Reference
<
XComponentContext
>
xComponentContext
;
...
@@ -267,12 +267,12 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main()
...
@@ -267,12 +267,12 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main()
{
{
// is option:
// is option:
dp_misc
::
writeConsoleError
(
dp_misc
::
writeConsoleError
(
OUSTR
(
"
\n
ERROR: unexpected option "
)
+
"
\n
ERROR: unexpected option "
+
cmdArg
+
cmdArg
+
OUSTR
(
"!
\n
"
)
+
"!
\n
"
+
OUSTR
(
" Use "
APP_NAME
" "
)
+
" Use "
+
APP_NAME
+
" "
+
toString
(
info_help
)
+
toString
(
info_help
)
+
OUSTR
(
" to print all options.
\n
"
)
);
" to print all options.
\n
"
);
return
1
;
return
1
;
}
}
else
else
...
@@ -291,11 +291,11 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main()
...
@@ -291,11 +291,11 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main()
if
(
repository
.
isEmpty
())
if
(
repository
.
isEmpty
())
{
{
if
(
option_shared
)
if
(
option_shared
)
repository
=
OUSTR
(
"shared"
)
;
repository
=
"shared"
;
else
if
(
option_bundled
)
else
if
(
option_bundled
)
repository
=
OUSTR
(
"bundled"
)
;
repository
=
"bundled"
;
else
else
repository
=
OUSTR
(
"user"
)
;
repository
=
"user"
;
}
}
else
else
{
{
...
@@ -304,31 +304,29 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main()
...
@@ -304,31 +304,29 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main()
}
}
else
if
(
option_shared
)
{
else
if
(
option_shared
)
{
dp_misc
::
writeConsoleError
(
dp_misc
::
writeConsoleError
(
OUSTR
(
"WARNING: explicit context given! "
)
+
OUString
(
"WARNING: explicit context given! "
)
+
OUSTR
(
"Ignoring option "
)
+
"Ignoring option "
+
toString
(
info_shared
)
+
"!
\n
"
);
toString
(
info_shared
)
+
OUSTR
(
"!
\n
"
)
);
}
}
}
}
if
(
subCommand
.
equals
(
OUSTR
(
"reinstall"
))
)
if
(
subCommand
==
"reinstall"
)
{
{
//We must prevent that services and types are loaded by UNO,
//We must prevent that services and types are loaded by UNO,
//otherwise we cannot delete the registry data folder.
//otherwise we cannot delete the registry data folder.
OUString
extensionUnorc
;
OUString
extensionUnorc
;
if
(
repository
.
equals
(
OUSTR
(
"user"
))
)
if
(
repository
==
"user"
)
extensionUnorc
=
OUSTR
(
"$UNO_USER_PACKAGES_CACHE/registry/com.sun.star.comp.deployment.component.PackageRegistryBackend/unorc"
)
;
extensionUnorc
=
"$UNO_USER_PACKAGES_CACHE/registry/com.sun.star.comp.deployment.component.PackageRegistryBackend/unorc"
;
else
if
(
repository
.
equals
(
OUSTR
(
"shared"
))
)
else
if
(
repository
==
"shared"
)
extensionUnorc
=
OUSTR
(
"$SHARED_EXTENSIONS_USER/registry/com.sun.star.comp.deployment.component.PackageRegistryBackend/unorc"
)
;
extensionUnorc
=
"$SHARED_EXTENSIONS_USER/registry/com.sun.star.comp.deployment.component.PackageRegistryBackend/unorc"
;
else
if
(
repository
.
equals
(
OUSTR
(
"bundled"
))
)
else
if
(
repository
==
"bundled"
)
extensionUnorc
=
OUSTR
(
"$BUNDLED_EXTENSIONS_USER/registry/com.sun.star.comp.deployment.component.PackageRegistryBackend/unorc"
)
;
extensionUnorc
=
"$BUNDLED_EXTENSIONS_USER/registry/com.sun.star.comp.deployment.component.PackageRegistryBackend/unorc"
;
else
else
OSL_ASSERT
(
0
);
OSL_ASSERT
(
0
);
::
rtl
::
Bootstrap
::
expandMacros
(
extensionUnorc
);
::
rtl
::
Bootstrap
::
expandMacros
(
extensionUnorc
);
oslFileError
e
=
osl_removeFile
(
extensionUnorc
.
pData
);
oslFileError
e
=
osl_removeFile
(
extensionUnorc
.
pData
);
if
(
e
!=
osl_File_E_None
&&
e
!=
osl_File_E_NOENT
)
if
(
e
!=
osl_File_E_None
&&
e
!=
osl_File_E_NOENT
)
throw
Exception
(
OUSTR
(
"Could not delete "
)
+
extensionUnorc
,
0
);
throw
Exception
(
"Could not delete "
+
extensionUnorc
,
0
);
}
}
xComponentContext
=
getUNO
(
xComponentContext
=
getUNO
(
...
@@ -345,7 +343,7 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main()
...
@@ -345,7 +343,7 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main()
//Do not synchronize when command is "reinstall". This could add types and services to UNO and
//Do not synchronize when command is "reinstall". This could add types and services to UNO and
//prevent the deletion of the registry data folder
//prevent the deletion of the registry data folder
//synching is done in XExtensionManager.reinstall
//synching is done in XExtensionManager.reinstall
if
(
!
subcmd_gui
&&
!
subCommand
.
equals
(
OUSTR
(
"reinstall"
)
)
if
(
!
subcmd_gui
&&
!
(
subCommand
==
"reinstall"
)
&&
!
dp_misc
::
office_is_running
())
&&
!
dp_misc
::
office_is_running
())
dp_misc
::
syncRepositories
(
false
,
xCmdEnv
);
dp_misc
::
syncRepositories
(
false
,
xCmdEnv
);
...
@@ -357,8 +355,8 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main()
...
@@ -357,8 +355,8 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main()
if
(
subcmd_add
)
if
(
subcmd_add
)
{
{
beans
::
NamedValue
nvSuppress
(
beans
::
NamedValue
nvSuppress
(
OUS
TR
(
"SUPPRESS_LICENSE"
),
option_suppressLicense
?
OUS
tring
(
"SUPPRESS_LICENSE"
),
option_suppressLicense
?
makeAny
(
OUS
TR
(
"1"
))
:
makeAny
(
OUSTR
(
"0"
)));
makeAny
(
OUS
tring
(
"1"
))
:
makeAny
(
OUString
(
"0"
)));
xExtensionManager
->
addExtension
(
xExtensionManager
->
addExtension
(
cmdPackage
,
Sequence
<
beans
::
NamedValue
>
(
&
nvSuppress
,
1
),
cmdPackage
,
Sequence
<
beans
::
NamedValue
>
(
&
nvSuppress
,
1
),
repository
,
Reference
<
task
::
XAbortChannel
>
(),
xCmdEnv
);
repository
,
Reference
<
task
::
XAbortChannel
>
(),
xCmdEnv
);
...
@@ -387,8 +385,7 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main()
...
@@ -387,8 +385,7 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main()
}
}
}
}
}
}
else
if
(
subCommand
.
equalsAsciiL
(
else
if
(
subCommand
==
"reinstall"
)
RTL_CONSTASCII_STRINGPARAM
(
"reinstall"
)
))
{
{
xExtensionManager
->
reinstallDeployedExtensions
(
xExtensionManager
->
reinstallDeployedExtensions
(
false
,
repository
,
Reference
<
task
::
XAbortChannel
>
(),
xCmdEnv
);
false
,
repository
,
Reference
<
task
::
XAbortChannel
>
(),
xCmdEnv
);
...
@@ -431,7 +428,7 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main()
...
@@ -431,7 +428,7 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main()
vec_packages
.
size
(),
false
);
vec_packages
.
size
(),
false
);
dp_misc
::
writeConsole
(
dp_misc
::
writeConsole
(
OUS
TR
(
"All deployed "
)
+
repository
+
OUSTR
(
" extensions:
\n\n
"
)
);
OUS
tring
(
"All deployed "
)
+
repository
+
" extensions:
\n\n
"
);
}
}
else
else
{
{
...
@@ -474,7 +471,7 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main()
...
@@ -474,7 +471,7 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main()
else
else
throw
lang
::
IllegalArgumentException
(
throw
lang
::
IllegalArgumentException
(
OUSTR
(
"There is no such extension deployed: "
)
+
"There is no such extension deployed: "
+
cmdPackages
[
pos
],
0
,
-
1
);
cmdPackages
[
pos
],
0
,
-
1
);
}
}
...
@@ -540,24 +537,22 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main()
...
@@ -540,24 +537,22 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main()
else
else
{
{
dp_misc
::
writeConsoleError
(
dp_misc
::
writeConsoleError
(
OUSTR
(
"
\n
ERROR: unknown sub-command "
)
+
"
\n
ERROR: unknown sub-command "
+
subCommand
+
subCommand
+
"!
\n
"
+
OUSTR
(
"!
\n
"
)
+
" Use "
+
APP_NAME
+
" "
+
OUSTR
(
" Use "
APP_NAME
" "
)
+
toString
(
info_help
)
+
" to print all options.
\n
"
);
toString
(
info_help
)
+
OUSTR
(
" to print all options.
\n
"
));
return
1
;
return
1
;
}
}
if
(
option_verbose
)
if
(
option_verbose
)
dp_misc
::
writeConsole
(
OUS
TR
(
"
\n
"
APP_NAME
" done.
\n
"
)
);
dp_misc
::
writeConsole
(
OUS
tring
(
"
\n
"
)
+
APP_NAME
+
" done.
\n
"
);
//Force to release all bridges which connect us to the child processes
//Force to release all bridges which connect us to the child processes
dp_misc
::
disposeBridges
(
xLocalComponentContext
);
dp_misc
::
disposeBridges
(
xLocalComponentContext
);
return
0
;
return
0
;
}
}
catch
(
const
ucb
::
CommandFailedException
&
e
)
catch
(
const
ucb
::
CommandFailedException
&
e
)
{
{
dp_misc
::
writeConsoleError
(
e
.
Message
+
OUSTR
(
"
\n
"
)
);
dp_misc
::
writeConsoleError
(
e
.
Message
+
"
\n
"
);
bNoOtherErrorMsg
=
true
;
bNoOtherErrorMsg
=
true
;
}
}
catch
(
const
ucb
::
CommandAbortedException
&
)
catch
(
const
ucb
::
CommandAbortedException
&
)
...
@@ -578,11 +573,9 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main()
...
@@ -578,11 +573,9 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main()
cause
=
e
.
Message
;
cause
=
e
.
Message
;
}
}
dp_misc
::
writeConsoleError
(
dp_misc
::
writeConsoleError
(
"
\n
ERROR: "
+
exc
.
Message
+
"
\n
"
);
OUSTR
(
"
\n
ERROR: "
)
+
exc
.
Message
+
OUSTR
(
"
\n
"
));
if
(
!
cause
.
isEmpty
())
if
(
!
cause
.
isEmpty
())
dp_misc
::
writeConsoleError
(
dp_misc
::
writeConsoleError
(
" Cause: "
+
cause
+
"
\n
"
);
OUSTR
(
" Cause: "
)
+
cause
+
OUSTR
(
"
\n
"
));
}
}
catch
(
const
LockFileException
&
e
)
catch
(
const
LockFileException
&
e
)
{
{
...
@@ -593,11 +586,9 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main()
...
@@ -593,11 +586,9 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main()
catch
(
const
::
com
::
sun
::
star
::
uno
::
Exception
&
e
)
{
catch
(
const
::
com
::
sun
::
star
::
uno
::
Exception
&
e
)
{
Any
exc
(
::
cppu
::
getCaughtException
()
);
Any
exc
(
::
cppu
::
getCaughtException
()
);
dp_misc
::
writeConsoleError
(
dp_misc
::
writeConsoleError
(
"
\n
ERROR: "
+
OUSTR
(
"
\n
ERROR: "
)
+
OUString
(
option_verbose
?
e
.
Message
+
"
\n
Exception details:
\n
"
+
OUString
(
option_verbose
?
e
.
Message
+
OUSTR
(
"
\n
Exception details:
\n
"
)
+
::
comphelper
::
anyToString
(
exc
)
:
e
.
Message
)
+
"
\n
"
);
::
comphelper
::
anyToString
(
exc
)
:
e
.
Message
)
+
OUSTR
(
"
\n
"
));
}
}
if
(
!
bNoOtherErrorMsg
)
if
(
!
bNoOtherErrorMsg
)
dp_misc
::
writeConsoleError
(
"
\n
"
APP_NAME
" failed.
\n
"
);
dp_misc
::
writeConsoleError
(
"
\n
"
APP_NAME
" failed.
\n
"
);
...
...
desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx
Dosyayı görüntüle @
f9f9fa1e
...
@@ -114,7 +114,7 @@ CommandEnvironmentImpl::CommandEnvironmentImpl(
...
@@ -114,7 +114,7 @@ CommandEnvironmentImpl::CommandEnvironmentImpl(
m_xLogFile
.
set
(
m_xLogFile
.
set
(
xComponentContext
->
getServiceManager
()
xComponentContext
->
getServiceManager
()
->
createInstanceWithArgumentsAndContext
(
->
createInstanceWithArgumentsAndContext
(
OUSTR
(
"com.sun.star.comp.deployment.ProgressLog"
)
,
"com.sun.star.comp.deployment.ProgressLog"
,
Sequence
<
Any
>
(
&
logfile
,
1
),
xComponentContext
),
Sequence
<
Any
>
(
&
logfile
,
1
),
xComponentContext
),
UNO_QUERY_THROW
);
UNO_QUERY_THROW
);
}
}
...
@@ -151,7 +151,7 @@ void CommandEnvironmentImpl::printLicense(
...
@@ -151,7 +151,7 @@ void CommandEnvironmentImpl::printLicense(
OUString
sNO
=
String
(
ResId
(
RID_STR_UNOPKG_ACCEPT_LIC_NO
,
*
pResMgr
));
OUString
sNO
=
String
(
ResId
(
RID_STR_UNOPKG_ACCEPT_LIC_NO
,
*
pResMgr
));
OUString
sN
=
String
(
ResId
(
RID_STR_UNOPKG_ACCEPT_LIC_N
,
*
pResMgr
));
OUString
sN
=
String
(
ResId
(
RID_STR_UNOPKG_ACCEPT_LIC_N
,
*
pResMgr
));
OUString
sNewLine
(
RTL_CONSTASCII_USTRINGPARAM
(
"
\n
"
)
);
OUString
sNewLine
(
"
\n
"
);
dp_misc
::
writeConsole
(
sNewLine
+
sNewLine
+
s1
+
sNewLine
+
sNewLine
);
dp_misc
::
writeConsole
(
sNewLine
+
sNewLine
+
s1
+
sNewLine
+
sNewLine
);
dp_misc
::
writeConsole
(
sLicense
+
sNewLine
+
sNewLine
);
dp_misc
::
writeConsole
(
sLicense
+
sNewLine
+
sNewLine
);
...
@@ -211,8 +211,8 @@ void CommandEnvironmentImpl::handle(
...
@@ -211,8 +211,8 @@ void CommandEnvironmentImpl::handle(
{
{
Any
request
(
xRequest
->
getRequest
()
);
Any
request
(
xRequest
->
getRequest
()
);
OSL_ASSERT
(
request
.
getValueTypeClass
()
==
TypeClass_EXCEPTION
);
OSL_ASSERT
(
request
.
getValueTypeClass
()
==
TypeClass_EXCEPTION
);
dp_misc
::
TRACE
(
OUSTR
(
"[unopkg_cmdenv.cxx] incoming request:
\n
"
)
dp_misc
::
TRACE
(
"[unopkg_cmdenv.cxx] incoming request:
\n
"
+
::
comphelper
::
anyToString
(
request
)
+
OUSTR
(
"
\n\n
"
)
);
+
::
comphelper
::
anyToString
(
request
)
+
"
\n\n
"
);
// selections:
// selections:
bool
approve
=
false
;
bool
approve
=
false
;
...
@@ -238,10 +238,8 @@ void CommandEnvironmentImpl::handle(
...
@@ -238,10 +238,8 @@ void CommandEnvironmentImpl::handle(
OSL_ASSERT
(
xPackageType
.
is
()
);
OSL_ASSERT
(
xPackageType
.
is
()
);
if
(
xPackageType
.
is
())
{
if
(
xPackageType
.
is
())
{
approve
=
(
xPackage
->
isBundle
()
&&
approve
=
(
xPackage
->
isBundle
()
&&
xPackageType
->
getMediaType
().
matchAsciiL
(
xPackageType
->
getMediaType
().
match
(
RTL_CONSTASCII_STRINGPARAM
(
"application/vnd.sun.star.legacy-package-bundle"
)
);
"application/"
"vnd.sun.star.legacy-package-bundle"
)
));
}
}
}
}
abort
=
!
approve
;
abort
=
!
approve
;
...
@@ -275,7 +273,7 @@ void CommandEnvironmentImpl::handle(
...
@@ -275,7 +273,7 @@ void CommandEnvironmentImpl::handle(
{
{
String
sMsg
(
ResId
(
RID_STR_UNSUPPORTED_PLATFORM
,
*
dp_gui
::
DeploymentGuiResMgr
::
get
()));
String
sMsg
(
ResId
(
RID_STR_UNSUPPORTED_PLATFORM
,
*
dp_gui
::
DeploymentGuiResMgr
::
get
()));
sMsg
.
SearchAndReplaceAllAscii
(
"%Name"
,
platExc
.
package
->
getDisplayName
());
sMsg
.
SearchAndReplaceAllAscii
(
"%Name"
,
platExc
.
package
->
getDisplayName
());
dp_misc
::
writeConsole
(
OUS
TR
(
"
\n
"
)
+
sMsg
+
OUSTR
(
"
\n\n
"
)
);
dp_misc
::
writeConsole
(
OUS
tring
(
"
\n
"
)
+
sMsg
+
"
\n\n
"
);
approve
=
true
;
approve
=
true
;
}
}
else
{
else
{
...
@@ -295,8 +293,7 @@ void CommandEnvironmentImpl::handle(
...
@@ -295,8 +293,7 @@ void CommandEnvironmentImpl::handle(
if
(
abort
&&
m_option_verbose
&&
!
bLicenseException
)
if
(
abort
&&
m_option_verbose
&&
!
bLicenseException
)
{
{
OUString
msg
=
::
comphelper
::
anyToString
(
request
);
OUString
msg
=
::
comphelper
::
anyToString
(
request
);
dp_misc
::
writeConsoleError
(
dp_misc
::
writeConsoleError
(
OUString
(
"
\n
ERROR: "
)
+
msg
+
"
\n
"
);
OUSTR
(
"
\n
ERROR: "
)
+
msg
+
OUSTR
(
"
\n
"
));
}
}
// select:
// select:
...
@@ -352,11 +349,11 @@ void CommandEnvironmentImpl::update_( Any const & Status )
...
@@ -352,11 +349,11 @@ void CommandEnvironmentImpl::update_( Any const & Status )
}
}
else
{
else
{
::
rtl
::
OUStringBuffer
buf
;
::
rtl
::
OUStringBuffer
buf
;
buf
.
appendAscii
(
RTL_CONSTASCII_STRINGPARAM
(
"WARNING: "
)
);
buf
.
appendAscii
(
"WARNING: "
);
deployment
::
DeploymentException
dp_exc
;
deployment
::
DeploymentException
dp_exc
;
if
(
Status
>>=
dp_exc
)
{
if
(
Status
>>=
dp_exc
)
{
buf
.
append
(
dp_exc
.
Message
);
buf
.
append
(
dp_exc
.
Message
);
buf
.
appendAscii
(
RTL_CONSTASCII_STRINGPARAM
(
", Cause: "
)
);
buf
.
appendAscii
(
", Cause: "
);
buf
.
append
(
::
comphelper
::
anyToString
(
dp_exc
.
Cause
)
);
buf
.
append
(
::
comphelper
::
anyToString
(
dp_exc
.
Cause
)
);
}
}
else
{
else
{
...
@@ -375,9 +372,9 @@ void CommandEnvironmentImpl::update_( Any const & Status )
...
@@ -375,9 +372,9 @@ void CommandEnvironmentImpl::update_( Any const & Status )
}
}
if
(
bUseErr
)
if
(
bUseErr
)
dp_misc
::
writeConsoleError
(
msg
+
OUS
TR
(
"
\n
"
));
dp_misc
::
writeConsoleError
(
msg
+
OUS
tring
(
"
\n
"
));
else
else
dp_misc
::
writeConsole
(
msg
+
OUS
TR
(
"
\n
"
));
dp_misc
::
writeConsole
(
msg
+
OUS
tring
(
"
\n
"
));
}
}
//______________________________________________________________________________
//______________________________________________________________________________
...
...
desktop/source/pkgchk/unopkg/unopkg_misc.cxx
Dosyayı görüntüle @
f9f9fa1e
This diff is collapsed.
Click to expand it.
desktop/source/splash/splash.cxx
Dosyayı görüntüle @
f9f9fa1e
...
@@ -334,11 +334,7 @@ IMPL_LINK( SplashScreen, AppEventListenerHdl, VclWindowEvent *, inEvent )
...
@@ -334,11 +334,7 @@ IMPL_LINK( SplashScreen, AppEventListenerHdl, VclWindowEvent *, inEvent )
// Read keys from edition/edition.ini or soffice{.ini|rc}:
// Read keys from edition/edition.ini or soffice{.ini|rc}:
OUString
implReadBootstrapKey
(
const
OUString
&
_rKey
)
OUString
implReadBootstrapKey
(
const
OUString
&
_rKey
)
{
{
OUString
sValue
(
OUString
sValue
(
"${.override:${BRAND_BASE_DIR}/program/edition/edition.ini:"
+
_rKey
+
"}"
);
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"${.override:${BRAND_BASE_DIR}/program/edition/edition.ini:"
))
+
_rKey
+
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"}"
)));
rtl
::
Bootstrap
::
expandMacros
(
sValue
);
rtl
::
Bootstrap
::
expandMacros
(
sValue
);
return
sValue
;
return
sValue
;
}
}
...
@@ -347,27 +343,19 @@ void SplashScreen::loadConfig()
...
@@ -347,27 +343,19 @@ void SplashScreen::loadConfig()
{
{
_bShowLogo
=
implReadBootstrapKey
(
"Logo"
)
!=
"0"
;
_bShowLogo
=
implReadBootstrapKey
(
"Logo"
)
!=
"0"
;
OUString
sProgressFrameColor
=
implReadBootstrapKey
(
OUString
sProgressFrameColor
=
implReadBootstrapKey
(
"ProgressFrameColor"
);
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"ProgressFrameColor"
)
)
);
OUString
sProgressBarColor
=
implReadBootstrapKey
(
"ProgressBarColor"
);
OUString
sProgressBarColor
=
implReadBootstrapKey
(
OUString
sProgressTextColor
=
implReadBootstrapKey
(
"ProgressTextColor"
);
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"ProgressBarColor"
)
)
);
OUString
sProgressTextBaseline
=
implReadBootstrapKey
(
"ProgressTextBaseline"
);
OUString
sProgressTextColor
=
implReadBootstrapKey
(
OUString
sSize
=
implReadBootstrapKey
(
"ProgressSize"
);
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"ProgressTextColor"
)
)
);
OUString
sPosition
=
implReadBootstrapKey
(
"ProgressPosition"
);
OUString
sProgressTextBaseline
=
implReadBootstrapKey
(
OUString
sFullScreenSplash
=
implReadBootstrapKey
(
"FullScreenSplash"
);
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"ProgressTextBaseline"
)
)
);
OUString
sNativeProgress
=
implReadBootstrapKey
(
"NativeProgress"
);
OUString
sSize
=
implReadBootstrapKey
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"ProgressSize"
)
)
);
OUString
sPosition
=
implReadBootstrapKey
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"ProgressPosition"
)
)
);
OUString
sFullScreenSplash
=
implReadBootstrapKey
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"FullScreenSplash"
)
)
);
OUString
sNativeProgress
=
implReadBootstrapKey
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"NativeProgress"
)
)
);
// Determine full screen splash mode
// Determine full screen splash mode
_bFullScreenSplash
=
((
!
sFullScreenSplash
.
isEmpty
()
)
&&
_bFullScreenSplash
=
((
!
sFullScreenSplash
.
isEmpty
()
)
&&
(
!
sFullScreenSplash
.
equals
AsciiL
(
"0"
,
1
)));
(
!
sFullScreenSplash
.
equals
(
"0"
)));
// Try to retrieve the relative values for the progress bar. The current
// Try to retrieve the relative values for the progress bar. The current
// schema uses the screen ratio to retrieve the associated values.
// schema uses the screen ratio to retrieve the associated values.
...
...
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