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
c1758889
Kaydet (Commit)
c1758889
authored
Kas 11, 2011
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Heavily simplified utl::ConfigManager.
üst
4ffcc73f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
68 changed files
with
314 additions
and
669 deletions
+314
-669
cfg.cxx
cui/source/customize/cfg.cxx
+3
-7
eventdlg.cxx
cui/source/customize/eventdlg.cxx
+2
-4
about.cxx
cui/source/dialogs/about.cxx
+4
-5
treeopt.cxx
cui/source/options/treeopt.cxx
+1
-1
userinformation.cxx
dbaccess/source/core/misc/userinformation.cxx
+6
-7
sqlmessage.cxx
dbaccess/source/ui/dlg/sqlmessage.cxx
+3
-10
UITools.cxx
dbaccess/source/ui/misc/UITools.cxx
+1
-8
app.cxx
desktop/source/app/app.cxx
+31
-65
officeipcthread.cxx
desktop/source/app/officeipcthread.cxx
+1
-4
dp_gui_dialog2.cxx
desktop/source/deployment/gui/dp_gui_dialog2.cxx
+9
-6
dp_gui_service.cxx
desktop/source/deployment/gui/dp_gui_service.cxx
+17
-37
dp_gui_shared.hxx
desktop/source/deployment/gui/dp_gui_shared.hxx
+0
-8
dp_gui_updatedialog.cxx
desktop/source/deployment/gui/dp_gui_updatedialog.cxx
+3
-2
dp_resource.cxx
desktop/source/deployment/misc/dp_resource.cxx
+3
-14
migration.cxx
desktop/source/migration/migration.cxx
+4
-8
unopkg_cmdenv.cxx
desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx
+2
-13
unopkg_misc.cxx
desktop/source/pkgchk/unopkg/unopkg_misc.cxx
+1
-2
unopkg_shared.h
desktop/source/pkgchk/unopkg/unopkg_shared.h
+2
-15
eps.cxx
filter/source/graphicfilter/eps/eps.cxx
+2
-8
pdfexport.cxx
filter/source/pdf/pdfexport.cxx
+4
-13
titlehelper.cxx
framework/source/fwe/helper/titlehelper.cxx
+9
-14
titlebarupdate.cxx
framework/source/helper/titlebarupdate.cxx
+2
-4
autorecovery.cxx
framework/source/services/autorecovery.cxx
+1
-2
substitutepathvars.cxx
framework/source/services/substitutepathvars.cxx
+2
-3
uicommanddescription.cxx
framework/source/uielement/uicommanddescription.cxx
+2
-7
CppunitTest_hwpfilter_test_hwpfilter.mk
hwpfilter/CppunitTest_hwpfilter_test_hwpfilter.mk
+2
-0
build.lst
hwpfilter/prj/build.lst
+1
-1
CppunitTest_lotuswordpro_test_lotuswordpro.mk
lotuswordpro/CppunitTest_lotuswordpro_test_lotuswordpro.mk
+7
-0
build.lst
lotuswordpro/prj/build.lst
+1
-1
padialog.cxx
padmin/source/padialog.cxx
+0
-6
pamain.cxx
padmin/source/pamain.cxx
+2
-9
CppunitTest_sc_ucalc.mk
sc/CppunitTest_sc_ucalc.mk
+2
-0
CppunitTest_sd_uimpress.mk
sd/CppunitTest_sd_uimpress.mk
+5
-0
build.lst
sd/prj/build.lst
+1
-1
appinit.cxx
sfx2/source/appl/appinit.cxx
+1
-1
sfxhelp.cxx
sfx2/source/appl/sfxhelp.cxx
+2
-5
doctemplates.cxx
sfx2/source/doc/doctemplates.cxx
+1
-4
viewfrm2.cxx
sfx2/source/view/viewfrm2.cxx
+1
-4
itemholder2.cxx
svl/source/config/itemholder2.cxx
+0
-1
CppunitTest_svtools_filters_test.mk
svtools/CppunitTest_svtools_filters_test.mk
+5
-0
build.lst
svtools/prj/build.lst
+1
-1
itemholder2.cxx
svtools/source/config/itemholder2.cxx
+0
-1
insdlg.cxx
svtools/source/dialogs/insdlg.cxx
+6
-18
FilterConfigItem.cxx
svtools/source/filter/FilterConfigItem.cxx
+3
-2
CppunitTest_sw_filters_test.mk
sw/CppunitTest_sw_filters_test.mk
+2
-0
CppunitTest_sw_swdoc_test.mk
sw/CppunitTest_sw_swdoc_test.mk
+2
-0
build.lst
sw/prj/build.lst
+1
-1
rtfexport.cxx
sw/source/filter/ww8/rtfexport.cxx
+1
-3
optcomp.cxx
sw/source/ui/config/optcomp.cxx
+12
-18
optload.cxx
sw/source/ui/config/optload.cxx
+4
-23
outline.cxx
sw/source/ui/misc/outline.cxx
+5
-13
build.lst
tail_build/prj/build.lst
+1
-1
unocontrolmodel.cxx
toolkit/source/controls/unocontrolmodel.cxx
+2
-5
configitem.hxx
unotools/inc/unotools/configitem.hxx
+0
-2
configmgr.hxx
unotools/inc/unotools/configmgr.hxx
+68
-84
configitem.cxx
unotools/source/config/configitem.cxx
+25
-77
configmgr.cxx
unotools/source/config/configmgr.cxx
+0
-0
defaultoptions.cxx
unotools/source/config/defaultoptions.cxx
+0
-1
docinfohelper.cxx
unotools/source/config/docinfohelper.cxx
+7
-11
itemholder1.cxx
unotools/source/config/itemholder1.cxx
+0
-1
pathoptions.cxx
unotools/source/config/pathoptions.cxx
+5
-16
useroptions.cxx
unotools/source/config/useroptions.cxx
+1
-13
iahndl.cxx
uui/source/iahndl.cxx
+7
-34
settings.cxx
vcl/source/app/settings.cxx
+10
-29
CppunitTest_writerfilter_rtftok.mk
writerfilter/CppunitTest_writerfilter_rtftok.mk
+2
-0
build.lst
writerfilter/prj/build.lst
+1
-1
provider.cxx
xmlhelp/source/cxxhelp/provider/provider.cxx
+1
-10
tvread.cxx
xmlhelp/source/treeview/tvread.cxx
+1
-4
No files found.
cui/source/customize/cfg.cxx
Dosyayı görüntüle @
c1758889
...
...
@@ -1717,13 +1717,9 @@ void SvxConfigPage::Reset( const SfxItemSet& )
if
(
pModuleData
!=
NULL
)
{
OUString
label
;
utl
::
ConfigManager
::
GetDirectConfigProperty
(
utl
::
ConfigManager
::
PRODUCTNAME
)
>>=
label
;
label
+=
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
" "
));
label
+=
aModuleName
;
nPos
=
aSaveInListBox
.
InsertEntry
(
label
);
nPos
=
aSaveInListBox
.
InsertEntry
(
utl
::
ConfigManager
::
getProductName
()
+
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
" "
)
)
+
aModuleName
);
aSaveInListBox
.
SetEntryData
(
nPos
,
pModuleData
);
}
...
...
cui/source/customize/eventdlg.cxx
Dosyayı görüntüle @
c1758889
...
...
@@ -101,10 +101,8 @@ SvxEventConfigPage::SvxEventConfigPage( Window *pParent, const SfxItemSet& rSet,
if
(
xSupplier
.
is
()
)
{
m_xAppEvents
=
xSupplier
->
getEvents
();
OUString
label
;
utl
::
ConfigManager
::
GetDirectConfigProperty
(
utl
::
ConfigManager
::
PRODUCTNAME
)
>>=
label
;
nPos
=
aSaveInListBox
.
InsertEntry
(
label
);
nPos
=
aSaveInListBox
.
InsertEntry
(
utl
::
ConfigManager
::
getProductName
()
);
aSaveInListBox
.
SetEntryData
(
nPos
,
new
bool
(
true
)
);
aSaveInListBox
.
SelectEntryPos
(
nPos
,
sal_True
);
}
...
...
cui/source/dialogs/about.cxx
Dosyayı görüntüle @
c1758889
...
...
@@ -114,9 +114,6 @@ AboutDialog::AboutDialog( Window* pParent, const ResId& rId) :
m_aLinkStr
(
ResId
(
ABOUT_STR_LINK
,
*
rId
.
GetResMgr
())),
m_sBuildStr
(
ResId
(
ABOUT_STR_BUILD
,
*
rId
.
GetResMgr
()))
{
rtl
::
OUString
sProduct
;
utl
::
ConfigManager
::
GetDirectConfigProperty
(
utl
::
ConfigManager
::
PRODUCTNAME
)
>>=
sProduct
;
// load image from module path
aAppLogo
=
SfxApplication
::
GetApplicationLogo
();
...
...
@@ -162,8 +159,10 @@ AboutDialog::AboutDialog( Window* pParent, const ResId& rId) :
rtl
::
OUStringBuffer
sText
(
m_aVendorTextStr
);
sText
.
appendAscii
(
RTL_CONSTASCII_STRINGPARAM
(
"
\n\n
"
));
sal_uInt32
nCopyrightId
=
sProduct
.
equalsAsciiL
(
RTL_CONSTASCII_STRINGPARAM
(
"LibreOffice"
))
?
ABOUT_STR_COPYRIGHT
:
ABOUT_STR_COPYRIGHT_DERIVED
;
sal_uInt32
nCopyrightId
=
utl
::
ConfigManager
::
getProductName
().
equalsAsciiL
(
RTL_CONSTASCII_STRINGPARAM
(
"LibreOffice"
))
?
ABOUT_STR_COPYRIGHT
:
ABOUT_STR_COPYRIGHT_DERIVED
;
String
aProductCopyrightTextStr
(
ResId
(
nCopyrightId
,
*
rId
.
GetResMgr
()));
sText
.
append
(
aProductCopyrightTextStr
);
sText
.
appendAscii
(
RTL_CONSTASCII_STRINGPARAM
(
"
\n\n
"
));
...
...
cui/source/options/treeopt.cxx
Dosyayı görüntüle @
c1758889
...
...
@@ -2586,7 +2586,7 @@ short OfaTreeOptionsDialog::Execute()
ApplyItemSets
();
if
(
mpColorPage
)
mpColorPage
->
SaveToViewFrame
(
SfxViewFrame
::
Current
()
);
utl
::
ConfigManager
::
GetConfigManager
().
S
toreConfigItems
();
utl
::
ConfigManager
::
s
toreConfigItems
();
}
return
nRet
;
...
...
dbaccess/source/core/misc/userinformation.cxx
Dosyayı görüntüle @
c1758889
...
...
@@ -34,18 +34,17 @@
#include <osl/diagnose.h>
#include <i18npool/mslangid.hxx>
#include <unotools/configmgr.hxx>
#include <comphelper/types.hxx>
using
namespace
::
utl
;
using
namespace
::
com
::
sun
::
star
::
uno
;
using
namespace
::
com
::
sun
::
star
::
lang
;
//--------------------------------------------------------------------------
UserInformation
::
UserInformation
()
{
Any
aValue
=
ConfigManager
::
GetDirectConfigProperty
(
ConfigManager
::
LOCALE
);
LanguageType
eLanguage
=
MsLangId
::
convertIsoStringToLanguage
(
comphelper
::
getString
(
aValue
),
'-'
);
m_aUserLocale
=
MsLangId
::
convertLanguageToLocale
(
eLanguage
);
}
UserInformation
::
UserInformation
()
:
m_aUserLocale
(
MsLangId
::
convertLanguageToLocale
(
MsLangId
::
convertIsoStringToLanguage
(
ConfigManager
::
getLocale
(),
'-'
)))
{
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
dbaccess/source/ui/dlg/sqlmessage.cxx
Dosyayı görüntüle @
c1758889
...
...
@@ -456,13 +456,6 @@ struct SQLMessageBox_Impl
//------------------------------------------------------------------------------
namespace
{
::
rtl
::
OUString
lcl_getProductName
()
{
::
rtl
::
OUString
sProductName
;
OSL_VERIFY
(
::
utl
::
ConfigManager
::
GetDirectConfigProperty
(
::
utl
::
ConfigManager
::
PRODUCTNAME
)
>>=
sProductName
);
return
sProductName
;
}
void
lcl_positionInAppFont
(
const
Window
&
_rParent
,
Window
&
_rChild
,
long
_nX
,
long
_nY
,
long
_Width
,
long
_Height
)
{
Point
aPos
=
_rParent
.
LogicToPixel
(
Point
(
_nX
,
_nY
),
MAP_APPFONT
);
...
...
@@ -694,9 +687,9 @@ void OSQLMessageBox::impl_addDetailsButton()
//------------------------------------------------------------------------------
void
OSQLMessageBox
::
Construct
(
WinBits
_nStyle
,
MessageType
_eImage
)
{
// Changed as per BugID 79541 Branding/Configuration
String
sDialogTitle
(
lcl_getProductName
()
);
SetText
(
sDialogTitle
.
AppendAscii
(
" Base"
)
);
SetText
(
utl
::
ConfigManager
::
getProductName
()
+
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
" Base"
)
)
);
// position and size the controls and the dialog, depending on whether we have one or two texts to display
impl_positionControls
();
...
...
dbaccess/source/ui/misc/UITools.cxx
Dosyayı görüntüle @
c1758889
...
...
@@ -1246,13 +1246,6 @@ void fillAutoIncrementValue(const Reference<XConnection>& _xConnection,
// -----------------------------------------------------------------------------
void
AppendConfigToken
(
::
rtl
::
OUString
&
_rURL
,
sal_Bool
_bQuestionMark
)
{
Any
aLocale
=
::
utl
::
ConfigManager
::
GetConfigManager
().
GetDirectConfigProperty
(
::
utl
::
ConfigManager
::
LOCALE
);
::
rtl
::
OUString
sLocaleStr
;
if
(
!
(
aLocale
>>=
sLocaleStr
)
)
// fallback is english
sLocaleStr
=
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"en"
));
// query part exists?
if
(
_bQuestionMark
)
// no, so start with '?'
...
...
@@ -1263,7 +1256,7 @@ void AppendConfigToken( ::rtl::OUString& _rURL, sal_Bool _bQuestionMark )
// set parameters
_rURL
+=
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"Language="
));
_rURL
+=
sLocaleStr
;
_rURL
+=
utl
::
ConfigManager
::
getLocale
()
;
_rURL
+=
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"&System="
));
_rURL
+=
SvtHelpOptions
().
GetSystem
();
}
...
...
desktop/source/app/app.cxx
Dosyayı görüntüle @
c1758889
...
...
@@ -133,7 +133,6 @@
#include <rtl/strbuf.hxx>
#include <rtl/bootstrap.hxx>
#include <rtl/instance.hxx>
#include <unotools/configmgr.hxx>
#include <vcl/help.hxx>
#include <vcl/msgbox.hxx>
#include <vcl/bitmap.hxx>
...
...
@@ -359,41 +358,24 @@ void ReplaceStringHookProc( UniString& rStr )
nAll
++
;
if
(
rStr
.
SearchAscii
(
"%PRODUCT"
)
!=
STRING_NOTFOUND
)
{
String
&
rBrandName
=
BrandName
::
get
();
String
&
rVersion
=
Version
::
get
();
String
&
rAboutBoxVersion
=
AboutBoxVersion
::
get
();
String
&
rExtension
=
Extension
::
get
();
String
&
rXMLFileFormatName
=
XMLFileFormatName
::
get
();
String
&
rXMLFileFormatVersion
=
XMLFileFormatVersion
::
get
();
String
rBrandName
=
BrandName
::
get
();
String
rVersion
=
Version
::
get
();
String
rAboutBoxVersion
=
AboutBoxVersion
::
get
();
String
rExtension
=
Extension
::
get
();
String
rXMLFileFormatName
=
XMLFileFormatName
::
get
();
String
rXMLFileFormatVersion
=
XMLFileFormatVersion
::
get
();
if
(
!
rBrandName
.
Len
()
)
{
rtl
::
OUString
aTmp
;
Any
aRet
=
::
utl
::
ConfigManager
::
GetDirectConfigProperty
(
::
utl
::
ConfigManager
::
PRODUCTNAME
);
aRet
>>=
aTmp
;
rBrandName
=
aTmp
;
aRet
=
::
utl
::
ConfigManager
::
GetDirectConfigProperty
(
::
utl
::
ConfigManager
::
PRODUCTXMLFILEFORMATNAME
);
aRet
>>=
aTmp
;
rXMLFileFormatName
=
aTmp
;
aRet
=
::
utl
::
ConfigManager
::
GetDirectConfigProperty
(
::
utl
::
ConfigManager
::
PRODUCTXMLFILEFORMATVERSION
);
aRet
>>=
aTmp
;
rXMLFileFormatVersion
=
aTmp
;
aRet
=
::
utl
::
ConfigManager
::
GetDirectConfigProperty
(
::
utl
::
ConfigManager
::
PRODUCTVERSION
);
aRet
>>=
aTmp
;
rVersion
=
aTmp
;
aRet
=
::
utl
::
ConfigManager
::
GetDirectConfigProperty
(
::
utl
::
ConfigManager
::
ABOUTBOXPRODUCTVERSION
);
aRet
>>=
aTmp
;
rAboutBoxVersion
=
aTmp
;
rBrandName
=
utl
::
ConfigManager
::
getProductName
();
rXMLFileFormatName
=
utl
::
ConfigManager
::
getProductXmlFileFormat
();
rXMLFileFormatVersion
=
utl
::
ConfigManager
::
getProductXmlFileFormatVersion
();
rVersion
=
utl
::
ConfigManager
::
getProductVersion
();
rAboutBoxVersion
=
utl
::
ConfigManager
::
getAboutBoxProductVersion
();
if
(
!
rExtension
.
Len
()
)
{
aRet
=
::
utl
::
ConfigManager
::
GetDirectConfigProperty
(
::
utl
::
ConfigManager
::
PRODUCTEXTENSION
);
aRet
>>=
aTmp
;
rExtension
=
aTmp
;
rExtension
=
utl
::
ConfigManager
::
getProductExtension
();
}
}
...
...
@@ -407,30 +389,22 @@ void ReplaceStringHookProc( UniString& rStr )
}
if
(
rStr
.
SearchAscii
(
"%OOOVENDOR"
)
!=
STRING_NOTFOUND
)
{
String
&
rOOOVendor
=
OOOVendor
::
get
();
String
rOOOVendor
=
OOOVendor
::
get
();
if
(
!
rOOOVendor
.
Len
()
)
{
rtl
::
OUString
aTmp
;
Any
aRet
=
::
utl
::
ConfigManager
::
GetDirectConfigProperty
(
::
utl
::
ConfigManager
::
OOOVENDOR
);
aRet
>>=
aTmp
;
rOOOVendor
=
aTmp
;
rOOOVendor
=
utl
::
ConfigManager
::
getVendor
();
}
rStr
.
SearchAndReplaceAllAscii
(
"%OOOVENDOR"
,
rOOOVendor
);
}
if
(
rStr
.
SearchAscii
(
"%WRITERCOMPATIBILITYVERSIONOOO11"
)
!=
STRING_NOTFOUND
)
{
String
&
rWriterCompatibilityVersionOOo11
=
WriterCompatibilityVersionOOo11
::
get
();
String
rWriterCompatibilityVersionOOo11
=
WriterCompatibilityVersionOOo11
::
get
();
if
(
!
rWriterCompatibilityVersionOOo11
.
Len
()
)
{
rtl
::
OUString
aTmp
;
Any
aRet
=
::
utl
::
ConfigManager
::
GetDirectConfigProperty
(
::
utl
::
ConfigManager
::
WRITERCOMPATIBILITYVERSIONOOO11
);
aRet
>>=
aTmp
;
rWriterCompatibilityVersionOOo11
=
aTmp
;
rWriterCompatibilityVersionOOo11
=
utl
::
ConfigManager
::
getWriterCompatibilityVersionOOo_1_1
();
}
rStr
.
SearchAndReplaceAllAscii
(
"%WRITERCOMPATIBILITYVERSIONOOO11"
,
...
...
@@ -792,7 +766,7 @@ void Desktop::DeInit()
try
{
// instead of removing of the configManager just let it commit all the changes
RTL_LOGFILE_CONTEXT_TRACE
(
aLog
,
"<- store config items"
);
utl
::
ConfigManager
::
GetConfigManager
().
S
toreConfigItems
();
utl
::
ConfigManager
::
s
toreConfigItems
();
FlushConfiguration
();
RTL_LOGFILE_CONTEXT_TRACE
(
aLog
,
"<- store config items"
);
...
...
@@ -822,7 +796,7 @@ sal_Bool Desktop::QueryExit()
try
{
RTL_LOGFILE_CONTEXT_TRACE
(
aLog
,
"<- store config items"
);
utl
::
ConfigManager
::
GetConfigManager
().
S
toreConfigItems
();
utl
::
ConfigManager
::
s
toreConfigItems
();
RTL_LOGFILE_CONTEXT_TRACE
(
aLog
,
"<- store config items"
);
}
catch
(
RuntimeException
&
)
...
...
@@ -2065,18 +2039,14 @@ sal_Bool Desktop::InitializeConfiguration()
void
Desktop
::
FlushConfiguration
()
{
Reference
<
XFlushable
>
xCFGFlush
(
::
utl
::
ConfigManager
::
GetConfigManager
().
GetConfigurationProvider
(),
UNO_QUERY
);
if
(
xCFGFlush
.
is
())
{
xCFGFlush
->
flush
();
}
else
{
// because there is no method to flush the condiguration data, we must dispose the ConfigManager
Reference
<
XComponent
>
xCFGDispose
(
::
utl
::
ConfigManager
::
GetConfigManager
().
GetConfigurationProvider
(),
UNO_QUERY
);
if
(
xCFGDispose
.
is
())
xCFGDispose
->
dispose
();
}
css
::
uno
::
Reference
<
css
::
util
::
XFlushable
>
(
(
css
::
uno
::
Reference
<
css
::
lang
::
XMultiServiceFactory
>
(
comphelper
::
getProcessServiceFactory
(),
css
::
uno
::
UNO_SET_THROW
)
->
createInstance
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.configuration.ConfigurationProvider"
)))),
css
::
uno
::
UNO_QUERY_THROW
)
->
flush
();
}
sal_Bool
Desktop
::
shouldLaunchQuickstart
()
...
...
@@ -2620,19 +2590,15 @@ void Desktop::OpenClients()
aHelpURLBuffer
.
appendAscii
(
"vnd.sun.star.help://smath/start"
);
}
if
(
bShowHelp
)
{
Help
*
pHelp
=
Application
::
GetHelp
();
Any
aRet
=
::
utl
::
ConfigManager
::
GetDirectConfigProperty
(
::
utl
::
ConfigManager
::
LOCALE
);
rtl
::
OUString
aTmp
;
aRet
>>=
aTmp
;
aHelpURLBuffer
.
appendAscii
(
"?Language="
);
aHelpURLBuffer
.
append
(
aTmp
);
aHelpURLBuffer
.
append
(
utl
::
ConfigManager
::
getLocale
()
);
#if defined UNX
aHelpURLBuffer
.
appendAscii
(
"&System=UNX"
);
#elif defined WNT
aHelpURLBuffer
.
appendAscii
(
"&System=WIN"
);
#endif
pHelp
->
Start
(
aHelpURLBuffer
.
makeStringAndClear
(),
NULL
);
Application
::
GetHelp
()
->
Start
(
aHelpURLBuffer
.
makeStringAndClear
(),
NULL
);
return
;
}
}
...
...
desktop/source/app/officeipcthread.cxx
Dosyayı görüntüle @
c1758889
...
...
@@ -826,11 +826,8 @@ void SAL_CALL OfficeIPCThread::run()
aHelpURLBuffer
.
appendAscii
(
"vnd.sun.star.help://smath/start"
);
}
if
(
bShowHelp
)
{
Any
aRet
=
::
utl
::
ConfigManager
::
GetDirectConfigProperty
(
::
utl
::
ConfigManager
::
LOCALE
);
rtl
::
OUString
aTmp
;
aRet
>>=
aTmp
;
aHelpURLBuffer
.
appendAscii
(
"?Language="
);
aHelpURLBuffer
.
append
(
aTmp
);
aHelpURLBuffer
.
append
(
utl
::
ConfigManager
::
getLocale
()
);
#if defined UNX
aHelpURLBuffer
.
appendAscii
(
"&System=UNX"
);
#elif defined WNT
...
...
desktop/source/deployment/gui/dp_gui_dialog2.cxx
Dosyayı görüntüle @
c1758889
...
...
@@ -64,6 +64,7 @@
#include "comphelper/processfactory.hxx"
#include "ucbhelper/content.hxx"
#include "unotools/collatorwrapper.hxx"
#include "unotools/configmgr.hxx"
#include "com/sun/star/beans/StringPair.hpp"
...
...
@@ -577,12 +578,11 @@ ResId DialogHelper::getResId( sal_uInt16 nId )
//------------------------------------------------------------------------------
String
DialogHelper
::
getResourceString
(
sal_uInt16
id
)
{
// init with non-acquired solar mutex:
BrandName
::
get
();
const
SolarMutexGuard
guard
;
String
ret
(
ResId
(
id
,
*
DeploymentGuiResMgr
::
get
()
)
);
if
(
ret
.
SearchAscii
(
"%PRODUCTNAME"
)
!=
STRING_NOTFOUND
)
{
ret
.
SearchAndReplaceAllAscii
(
"%PRODUCTNAME"
,
BrandName
::
get
()
);
ret
.
SearchAndReplaceAllAscii
(
"%PRODUCTNAME"
,
utl
::
ConfigManager
::
getProductName
()
);
}
return
ret
;
}
...
...
@@ -607,7 +607,8 @@ bool DialogHelper::continueOnSharedExtension( const uno::Reference< deployment::
const
SolarMutexGuard
guard
;
WarningBox
aInfoBox
(
pParent
,
getResId
(
nResID
)
);
String
aMsgText
=
aInfoBox
.
GetMessText
();
aMsgText
.
SearchAndReplaceAllAscii
(
"%PRODUCTNAME"
,
BrandName
::
get
()
);
aMsgText
.
SearchAndReplaceAllAscii
(
"%PRODUCTNAME"
,
utl
::
ConfigManager
::
getProductName
()
);
aInfoBox
.
SetMessText
(
aMsgText
);
bHadWarning
=
true
;
...
...
@@ -665,7 +666,8 @@ bool DialogHelper::installForAllUsers( bool &bInstallForAll ) const
QueryBox
aQuery
(
m_pVCLWindow
,
getResId
(
RID_QUERYBOX_INSTALL_FOR_ALL
)
);
String
sMsgText
=
aQuery
.
GetMessText
();
sMsgText
.
SearchAndReplaceAllAscii
(
"%PRODUCTNAME"
,
BrandName
::
get
()
);
sMsgText
.
SearchAndReplaceAllAscii
(
"%PRODUCTNAME"
,
utl
::
ConfigManager
::
getProductName
()
);
aQuery
.
SetMessText
(
sMsgText
);
sal_uInt16
nYesBtnID
=
aQuery
.
GetButtonId
(
0
);
...
...
@@ -1279,7 +1281,8 @@ UpdateRequiredDialog::UpdateRequiredDialog( Window *pParent, TheExtensionManager
m_aCancelBtn
.
SetClickHdl
(
LINK
(
this
,
UpdateRequiredDialog
,
HandleCancelBtn
)
);
String
aText
=
m_aUpdateNeeded
.
GetText
();
aText
.
SearchAndReplaceAllAscii
(
"%PRODUCTNAME"
,
BrandName
::
get
()
);
aText
.
SearchAndReplaceAllAscii
(
"%PRODUCTNAME"
,
utl
::
ConfigManager
::
getProductName
()
);
m_aUpdateNeeded
.
SetText
(
aText
);
// resize update button
...
...
desktop/source/deployment/gui/dp_gui_service.cxx
Dosyayı görüntüle @
c1758889
...
...
@@ -107,36 +107,21 @@ void ReplaceProductNameHookProc( String& rStr )
nAll
++
;
if
(
rStr
.
SearchAscii
(
"%PRODUCT"
)
!=
STRING_NOTFOUND
)
{
String
&
rProductName
=
ProductName
::
get
();
String
&
rVersion
=
Version
::
get
();
String
&
rAboutBoxVersion
=
AboutBoxVersion
::
get
();
String
&
rExtension
=
Extension
::
get
();
String
&
rOOOVendor
=
OOOVendor
::
get
();
String
rProductName
=
ProductName
::
get
();
String
rVersion
=
Version
::
get
();
String
rAboutBoxVersion
=
AboutBoxVersion
::
get
();
String
rExtension
=
Extension
::
get
();
String
rOOOVendor
=
OOOVendor
::
get
();
if
(
!
rProductName
.
Len
()
)
{
rtl
::
OUString
aTmp
;
Any
aRet
=
::
utl
::
ConfigManager
::
GetDirectConfigProperty
(
::
utl
::
ConfigManager
::
PRODUCTNAME
);
aRet
>>=
aTmp
;
rProductName
=
aTmp
;
aRet
=
::
utl
::
ConfigManager
::
GetDirectConfigProperty
(
::
utl
::
ConfigManager
::
PRODUCTVERSION
);
aRet
>>=
aTmp
;
rVersion
=
aTmp
;
aRet
=
::
utl
::
ConfigManager
::
GetDirectConfigProperty
(
::
utl
::
ConfigManager
::
ABOUTBOXPRODUCTVERSION
);
aRet
>>=
aTmp
;
rAboutBoxVersion
=
aTmp
;
aRet
=
::
utl
::
ConfigManager
::
GetDirectConfigProperty
(
::
utl
::
ConfigManager
::
OOOVENDOR
);
aRet
>>=
aTmp
;
rOOOVendor
=
aTmp
;
rProductName
=
utl
::
ConfigManager
::
getProductName
();
rVersion
=
utl
::
ConfigManager
::
getProductVersion
();
rAboutBoxVersion
=
utl
::
ConfigManager
::
getAboutBoxProductVersion
();
rOOOVendor
=
utl
::
ConfigManager
::
getVendor
();
if
(
!
rExtension
.
Len
()
)
{
aRet
=
::
utl
::
ConfigManager
::
GetDirectConfigProperty
(
::
utl
::
ConfigManager
::
PRODUCTEXTENSION
);
aRet
>>=
aTmp
;
rExtension
=
aTmp
;
rExtension
=
utl
::
ConfigManager
::
getProductExtension
();
}
}
...
...
@@ -253,19 +238,14 @@ void ServiceImpl::startExecuteModal(
throw
RuntimeException
(
OUSTR
(
"Cannot initialize VCL!"
),
static_cast
<
OWeakObject
*>
(
this
)
);
AllSettings
as
=
app
->
GetSettings
();
OUString
slang
;
if
(
!
(
::
utl
::
ConfigManager
::
GetDirectConfigProperty
(
::
utl
::
ConfigManager
::
LOCALE
)
>>=
slang
))
throw
RuntimeException
(
OUSTR
(
"Cannot determine language!"
),
static_cast
<
OWeakObject
*>
(
this
)
);
as
.
SetUILanguage
(
MsLangId
::
convertIsoStringToLanguage
(
slang
)
);
as
.
SetUILanguage
(
MsLangId
::
convertIsoStringToLanguage
(
utl
::
ConfigManager
::
getLocale
()
)
);
app
->
SetSettings
(
as
);
String
sTitle
=
::
utl
::
ConfigManager
::
GetDirectConfigProperty
(
::
utl
::
ConfigManager
::
PRODUCTNAME
).
get
<
OUString
>
()
+
String
(
static_cast
<
sal_Unicode
>
(
' '
))
+
::
utl
::
ConfigManager
::
GetDirectConfigProperty
(
::
utl
::
ConfigManager
::
PRODUCTVERSION
).
get
<
OUString
>
();
app
->
SetDisplayName
(
sTitle
);
app
->
SetDisplayName
(
utl
::
ConfigManager
::
getProductName
()
+
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
" "
))
+
utl
::
ConfigManager
::
getProductVersion
());
ExtensionCmdQueue
::
syncRepositories
(
m_xComponentContext
);
}
}
...
...
desktop/source/deployment/gui/dp_gui_shared.hxx
Dosyayı görüntüle @
c1758889
...
...
@@ -29,7 +29,6 @@
#if !defined INCLUDED_DP_GUI_SHARED_HXX
#define INCLUDED_DP_GUI_SHARED_HXX
#include "unotools/configmgr.hxx"
#include "rtl/instance.hxx"
#include "tools/resmgr.hxx"
...
...
@@ -45,13 +44,6 @@ struct DeploymentGuiResMgr :
}
};
struct
BrandName
:
public
::
rtl
::
StaticWithInit
<
::
rtl
::
OUString
,
BrandName
>
{
const
::
rtl
::
OUString
operator
()
()
{
return
::
utl
::
ConfigManager
::
GetDirectConfigProperty
(
::
utl
::
ConfigManager
::
PRODUCTNAME
).
get
<
::
rtl
::
OUString
>
();
}
};
class
DpGuiResId
:
public
ResId
{
public
:
...
...
desktop/source/deployment/gui/dp_gui_updatedialog.cxx
Dosyayı görüntüle @
c1758889
...
...
@@ -101,6 +101,7 @@
#include "tools/resmgr.hxx"
#include "tools/solar.h"
#include "tools/string.hxx"
#include "unotools/configmgr.hxx"
#include "vcl/button.hxx"
#include "vcl/dialog.hxx"
#include "vcl/fixed.hxx"
...
...
@@ -1288,12 +1289,12 @@ IMPL_LINK(UpdateDialog, selectionHandler, void *, EMPTYARG)
nPos
=
m_noDependencyCurVer
.
indexOf
(
sProductName
);
if
(
nPos
>=
0
)
{
m_noDependencyCurVer
=
m_noDependencyCurVer
.
replaceAt
(
nPos
,
sProductName
.
getLength
(),
BrandName
::
get
()
);
m_noDependencyCurVer
=
m_noDependencyCurVer
.
replaceAt
(
nPos
,
sProductName
.
getLength
(),
utl
::
ConfigManager
::
getProductName
()
);
}
nPos
=
m_noDependency
.
indexOf
(
sProductName
);
if
(
nPos
>=
0
)
{
m_noDependency
=
m_noDependency
.
replaceAt
(
nPos
,
sProductName
.
getLength
(),
BrandName
::
get
()
);
m_noDependency
=
m_noDependency
.
replaceAt
(
nPos
,
sProductName
.
getLength
(),
utl
::
ConfigManager
::
getProductName
()
);
}
b
.
append
(
m_noInstall
);
...
...
desktop/source/deployment/misc/dp_resource.cxx
Dosyayı görüntüle @
c1758889
...
...
@@ -48,10 +48,7 @@ namespace {
struct
OfficeLocale
:
public
rtl
::
StaticWithInit
<
OUString
,
OfficeLocale
>
{
const
OUString
operator
()
()
{
OUString
slang
;
if
(
!
(
::
utl
::
ConfigManager
::
GetDirectConfigProperty
(
::
utl
::
ConfigManager
::
LOCALE
)
>>=
slang
))
throw
RuntimeException
(
OUSTR
(
"Cannot determine language!"
),
0
);
OUString
slang
(
utl
::
ConfigManager
::
getLocale
());
//fallback, the locale is currently only set when the user starts the
//office for the first time.
if
(
slang
.
getLength
()
==
0
)
...
...
@@ -83,16 +80,8 @@ String getResourceString( sal_uInt16 id )
{
const
osl
::
MutexGuard
guard
(
s_mutex
);
String
ret
(
ResId
(
id
,
*
DeploymentResMgr
::
get
()
)
);
if
(
ret
.
SearchAscii
(
"%PRODUCTNAME"
)
!=
STRING_NOTFOUND
)
{
static
String
s_brandName
;
if
(
s_brandName
.
Len
()
==
0
)
{
OUString
brandName
(
::
utl
::
ConfigManager
::
GetDirectConfigProperty
(
::
utl
::
ConfigManager
::
PRODUCTNAME
).
get
<
OUString
>
()
);
s_brandName
=
brandName
;
}
ret
.
SearchAndReplaceAllAscii
(
"%PRODUCTNAME"
,
s_brandName
);
}
ret
.
SearchAndReplaceAllAscii
(
"%PRODUCTNAME"
,
utl
::
ConfigManager
::
getProductName
()
);
return
ret
;
}
...
...
desktop/source/migration/migration.cxx
Dosyayı görüntüle @
c1758889
...
...
@@ -539,11 +539,6 @@ static FileBase::RC _checkAndCreateDirectory(INetURLObject& dirURL)
install_info
MigrationImpl
::
findInstallation
(
const
strings_v
&
rVersions
)
{
rtl
::
OUString
aProductName
;
uno
::
Any
aRet
=
::
utl
::
ConfigManager
::
GetDirectConfigProperty
(
::
utl
::
ConfigManager
::
PRODUCTNAME
);
aRet
>>=
aProductName
;
aProductName
=
aProductName
.
toAsciiLowerCase
();
install_info
aInfo
;
strings_v
::
const_iterator
i_ver
=
rVersions
.
begin
();
while
(
i_ver
!=
rVersions
.
end
())
...
...
@@ -556,9 +551,10 @@ install_info MigrationImpl::findInstallation(const strings_v& rVersions)
aProfileName
=
(
*
i_ver
).
copy
(
nSeparatorIndex
+
1
);
}
if
(
aVersion
.
getLength
()
&&
aProfileName
.
getLength
()
&&
(
!
aInfo
.
userdata
.
getLength
()
||
!
aProfileName
.
toAsciiLowerCase
().
compareTo
(
aProductName
,
aProductName
.
getLength
()
)
)
)
if
(
!
aVersion
.
isEmpty
()
&&
!
aProfileName
.
isEmpty
()
&&
(
aInfo
.
userdata
.
isEmpty
()
||
aProfileName
.
equalsIgnoreAsciiCase
(
utl
::
ConfigManager
::
getProductName
()
)
)
)
{
::
rtl
::
OUString
aUserInst
;
osl
::
Security
().
getConfigDir
(
aUserInst
);
...
...
desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx
Dosyayı görüntüle @
c1758889
...
...
@@ -65,18 +65,6 @@ using ::rtl::OUString;
namespace
{
//==============================================================================
struct
OfficeLocale
:
public
rtl
::
StaticWithInit
<
lang
::
Locale
,
OfficeLocale
>
{
const
lang
::
Locale
operator
()
()
{
OUString
slang
;
if
(
!
(
::
utl
::
ConfigManager
::
GetDirectConfigProperty
(
::
utl
::
ConfigManager
::
LOCALE
)
>>=
slang
))
throw
RuntimeException
(
OUSTR
(
"Cannot determine language!"
),
0
);
return
toLocale
(
slang
);
}
};
//==============================================================================
class
CommandEnvironmentImpl
:
public
::
cppu
::
WeakImplHelper3
<
XCommandEnvironment
,
...
...
@@ -189,7 +177,8 @@ void CommandEnvironmentImpl::printLicense(
->
createInstanceWithContext
(
OUSTR
(
"com.sun.star.i18n.Collator"
),
m_xComponentContext
),
UNO_QUERY_THROW
);
xCollator
->
loadDefaultCollator
(
OfficeLocale
::
get
(),
xCollator
->
loadDefaultCollator
(
toLocale
(
utl
::
ConfigManager
::
getLocale
()),
css
::
i18n
::
CollatorOptions
::
CollatorOptions_IGNORE_CASE
);
do
...
...
desktop/source/pkgchk/unopkg/unopkg_misc.cxx
Dosyayı görüntüle @
c1758889
...
...
@@ -511,8 +511,7 @@ Reference<XComponentContext> getUNO(
NULL
);
{
WarningBox
warn
(
NULL
,
WB_OK
|
WB_DEF_OK
,
sMsg
);
warn
.
SetText
(
::
utl
::
ConfigManager
::
GetDirectConfigProperty
(
::
utl
::
ConfigManager
::
PRODUCTNAME
).
get
<
OUString
>
());
warn
.
SetText
(
utl
::
ConfigManager
::
getProductName
());
warn
.
SetIcon
(
0
);
warn
.
Execute
();
}
...
...
desktop/source/pkgchk/unopkg/unopkg_shared.h
Dosyayı görüntüle @
c1758889
...
...
@@ -54,24 +54,11 @@ namespace unopkg {
return
locale
;
}
struct
OfficeLocale
:
public
rtl
::
StaticWithInit
<
css
::
lang
::
Locale
,
OfficeLocale
>
{
const
css
::
lang
::
Locale
operator
()
()
{
::
rtl
::
OUString
slang
;
if
(
!
(
::
utl
::
ConfigManager
::
GetDirectConfigProperty
(
::
utl
::
ConfigManager
::
LOCALE
)
>>=
slang
))
throw
css
::
uno
::
RuntimeException
(
OUSTR
(
"Cannot determine language!"
),
0
);
if
(
slang
.
getLength
()
==
0
)
slang
=
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"en-US"
));
return
toLocale
(
slang
);
}
};
struct
DeploymentResMgr
:
public
rtl
::
StaticWithInit
<
ResMgr
*
,
DeploymentResMgr
>
{
ResMgr
*
operator
()
()
{
return
ResMgr
::
CreateResMgr
(
"deployment"
,
OfficeLocale
::
get
());
return
ResMgr
::
CreateResMgr
(
"deployment"
,
toLocale
(
utl
::
ConfigManager
::
getLocale
()
)
);
}
};
...
...
filter/source/graphicfilter/eps/eps.cxx
Dosyayı görüntüle @
c1758889
...
...
@@ -484,15 +484,9 @@ void PSWriter::ImplWriteProlog( const Graphic* pPreview )
ImplWriteLine
(
"%%Pages: 0"
);
::
rtl
::
OUStringBuffer
aCreator
;
aCreator
.
appendAscii
(
RTL_CONSTASCII_STRINGPARAM
(
"%%Creator: "
)
);
::
utl
::
ConfigManager
&
rMgr
=
::
utl
::
ConfigManager
::
GetConfigManager
();
Any
aProductName
=
rMgr
.
GetDirectConfigProperty
(
::
utl
::
ConfigManager
::
PRODUCTNAME
);
::
rtl
::
OUString
sProductName
;
aProductName
>>=
sProductName
;
aCreator
.
append
(
sProductName
);
aProductName
=
rMgr
.
GetDirectConfigProperty
(
::
utl
::
ConfigManager
::
PRODUCTVERSION
);
aProductName
>>=
sProductName
;
aCreator
.
append
(
utl
::
ConfigManager
::
getProductName
()
);
aCreator
.
appendAscii
(
RTL_CONSTASCII_STRINGPARAM
(
" "
)
);
aCreator
.
append
(
sProductName
);
aCreator
.
append
(
utl
::
ConfigManager
::
getProductVersion
()
);
ImplWriteLine
(
::
rtl
::
OUStringToOString
(
aCreator
.
makeStringAndClear
(),
RTL_TEXTENCODING_UTF8
).
getStr
()
);
ImplWriteLine
(
"%%Title: none"
);
ImplWriteLine
(
"%%CreationDate: none"
);
...
...
filter/source/pdf/pdfexport.cxx
Dosyayı görüntüle @
c1758889
...
...
@@ -444,19 +444,10 @@ sal_Bool PDFExport::Export( const OUString& rFile, const Sequence< PropertyValue
}
}
// getting the string for the producer
String
aProducer
;
{
::
utl
::
ConfigManager
&
cMgr
=
::
utl
::
ConfigManager
::
GetConfigManager
();
Any
aProductName
=
cMgr
.
GetDirectConfigProperty
(
::
utl
::
ConfigManager
::
PRODUCTNAME
);
::
rtl
::
OUString
sProductName
;
aProductName
>>=
sProductName
;
aProducer
=
sProductName
;
aProductName
=
cMgr
.
GetDirectConfigProperty
(
::
utl
::
ConfigManager
::
PRODUCTVERSION
);
aProductName
>>=
sProductName
;
aProducer
.
AppendAscii
(
" "
);
aProducer
+=
String
(
sProductName
);
}
aContext
.
DocumentInfo
.
Producer
=
aProducer
;
aContext
.
DocumentInfo
.
Producer
=
utl
::
ConfigManager
::
getProductName
()
+
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
" "
))
+
utl
::
ConfigManager
::
getProductVersion
();
aContext
.
DocumentInfo
.
Creator
=
aCreator
;
for
(
sal_Int32
nData
=
0
,
nDataCount
=
rFilterData
.
getLength
();
nData
<
nDataCount
;
++
nData
)
...
...
framework/source/fwe/helper/titlehelper.cxx
Dosyayı görüntüle @
c1758889
...
...
@@ -542,28 +542,23 @@ void TitleHelper::impl_appendComponentTitle ( ::rtl::OUStringBuffer&
//*****************************************************************************************************************
void
TitleHelper
::
impl_appendProductName
(
::
rtl
::
OUStringBuffer
&
sTitle
)
{
::
rtl
::
OUString
sProductName
;
::
utl
::
ConfigManager
::
GetDirectConfigProperty
(
::
utl
::
ConfigManager
::
PRODUCTNAME
)
>>=
sProductName
;
if
(
sProductName
.
getLength
())