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
0ed6aa49
Kaydet (Commit)
0ed6aa49
authored
Nis 10, 2013
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SvtPathOptions with LanguageTag
Change-Id: I33f43c6d0249a6681d451a4be8c5548da4987f9c
üst
c0c96884
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
20 deletions
+13
-20
DocumentInfoPreview.hxx
svtools/inc/svtools/DocumentInfoPreview.hxx
+2
-2
DocumentInfoPreview.cxx
svtools/source/contnr/DocumentInfoPreview.cxx
+2
-2
templwin.cxx
svtools/source/contnr/templwin.cxx
+0
-3
pathoptions.hxx
unotools/inc/unotools/pathoptions.hxx
+2
-2
pathoptions.cxx
unotools/source/config/pathoptions.cxx
+7
-11
No files found.
svtools/inc/svtools/DocumentInfoPreview.hxx
Dosyayı görüntüle @
0ed6aa49
...
...
@@ -23,7 +23,7 @@
#include "sal/config.h"
#include "boost/scoped_ptr.hpp"
#include "
com/sun/star/lang/Locale.hpp
"
#include "
i18nlangtag/languagetag.hxx
"
#include "com/sun/star/uno/Reference.hxx"
#include "svtools/svmedit2.hxx"
#include "svtools/svtdllapi.h"
...
...
@@ -57,7 +57,7 @@ public:
private
:
ExtMultiLineEdit
m_pEditWin
;
boost
::
scoped_ptr
<
SvtDocInfoTable_Impl
>
m_pInfoTable
;
com
::
sun
::
star
::
lang
::
Locale
m_aLocale
;
LanguageTag
m_aLanguageTag
;
void
insertEntry
(
OUString
const
&
title
,
OUString
const
&
value
);
...
...
svtools/source/contnr/DocumentInfoPreview.cxx
Dosyayı görüntüle @
0ed6aa49
...
...
@@ -44,7 +44,7 @@ namespace svtools {
ODocumentInfoPreview
::
ODocumentInfoPreview
(
Window
*
pParent
,
WinBits
nBits
)
:
Window
(
pParent
,
WB_DIALOGCONTROL
),
m_pEditWin
(
this
,
nBits
),
m_pInfoTable
(
new
SvtDocInfoTable_Impl
),
m_aL
ocale
(
SvtPathOptions
().
GetLocale
())
// detect application language
m_aL
anguageTag
(
SvtPathOptions
().
GetLanguageTag
())
// detect application language
{
m_pEditWin
.
SetLeftMargin
(
10
);
m_pEditWin
.
Show
();
...
...
@@ -91,7 +91,7 @@ void ODocumentInfoPreview::fill(
}
else
{
insertNonempty
(
DI_MIMETYPE
,
INetContentTypes
::
GetPresentation
(
eTypeID
,
LanguageTag
(
m_aLocale
)
));
insertNonempty
(
DI_MIMETYPE
,
INetContentTypes
::
GetPresentation
(
eTypeID
,
m_aLanguageTag
));
}
}
...
...
svtools/source/contnr/templwin.cxx
Dosyayı görüntüle @
0ed6aa49
...
...
@@ -598,9 +598,6 @@ OUString SvtDocInfoTable_Impl::GetString( long nId ) const
SvtFrameWindow_Impl
::
SvtFrameWindow_Impl
(
Window
*
pParent
)
:
Window
(
pParent
)
{
// detect application language
aLocale
=
SvtPathOptions
().
GetLocale
();
// create windows and frame
pEditWin
=
new
ODocumentInfoPreview
(
this
,
WB_LEFT
|
WB_VSCROLL
|
WB_READONLY
|
WB_BORDER
|
WB_3DLOOK
);
pTextWin
=
new
Window
(
this
);
...
...
unotools/inc/unotools/pathoptions.hxx
Dosyayı görüntüle @
0ed6aa49
...
...
@@ -21,7 +21,7 @@
#include "unotools/unotoolsdllapi.h"
#include <tools/string.hxx>
#include <
com/sun/star/lang/Locale.hpp
>
#include <
i18nlangtag/languagetag.hxx
>
#include <unotools/options.hxx>
#define SVT_SEARCHPATH_DELIMITER ';'
...
...
@@ -121,7 +121,7 @@ public:
String
ExpandMacros
(
const
String
&
rPath
)
const
;
String
UseVariable
(
const
String
&
rVar
)
const
;
sal_Bool
SearchFile
(
String
&
rIniFile
,
Paths
ePath
=
PATH_USERCONFIG
);
::
com
::
sun
::
star
::
lang
::
Locale
GetLocale
()
const
;
const
LanguageTag
&
GetLanguageTag
()
const
;
sal_Bool
IsReadonly
()
const
;
};
...
...
unotools/source/config/pathoptions.cxx
Dosyayı görüntüle @
0ed6aa49
...
...
@@ -111,7 +111,7 @@ class SvtPathOptions_Impl
mutable
EnumToHandleMap
m_aMapEnumToPropHandle
;
VarNameToEnumMap
m_aMapVarNamesToEnum
;
::
com
::
sun
::
star
::
lang
::
Locale
m_aLocale
;
LanguageTag
m_aLanguageTag
;
String
m_aEmptyString
;
mutable
::
osl
::
Mutex
m_aMutex
;
...
...
@@ -174,7 +174,7 @@ class SvtPathOptions_Impl
OUString
ExpandMacros
(
const
OUString
&
rPath
)
const
;
OUString
UsePathVariables
(
const
OUString
&
rPath
)
const
;
::
com
::
sun
::
star
::
lang
::
Locale
GetLocale
()
const
{
return
m_aLocale
;
}
const
LanguageTag
&
GetLanguageTag
()
const
{
return
m_aLanguageTag
;
}
};
// global ----------------------------------------------------------------
...
...
@@ -411,7 +411,8 @@ OUString SvtPathOptions_Impl::SubstVar( const OUString& rVar ) const
// -----------------------------------------------------------------------
SvtPathOptions_Impl
::
SvtPathOptions_Impl
()
:
m_aPathArray
(
(
sal_Int32
)
SvtPathOptions
::
PATH_COUNT
)
m_aPathArray
(
(
sal_Int32
)
SvtPathOptions
::
PATH_COUNT
),
m_aLanguageTag
(
LANGUAGE_DONTKNOW
)
{
Reference
<
XComponentContext
>
xContext
=
comphelper
::
getProcessComponentContext
();
...
...
@@ -469,12 +470,7 @@ SvtPathOptions_Impl::SvtPathOptions_Impl() :
}
// Set language type!
/* FIXME-BCP47 */
OUString
aLocaleStr
(
ConfigManager
::
getLocale
()
);
sal_Int32
nIndex
=
0
;
m_aLocale
.
Language
=
aLocaleStr
.
getToken
(
0
,
'-'
,
nIndex
);
m_aLocale
.
Country
=
aLocaleStr
.
getToken
(
0
,
'-'
,
nIndex
);
m_aLocale
.
Variant
=
aLocaleStr
.
getToken
(
0
,
'-'
,
nIndex
);
m_aLanguageTag
.
reset
(
ConfigManager
::
getLocale
()
);
}
// -----------------------------------------------------------------------
...
...
@@ -979,9 +975,9 @@ sal_Bool SvtPathOptions::SearchFile( String& rIniFile, Paths ePath )
// -----------------------------------------------------------------------
::
com
::
sun
::
star
::
lang
::
Locale
SvtPathOptions
::
GetLocale
()
const
const
LanguageTag
&
SvtPathOptions
::
GetLanguageTag
()
const
{
return
pImp
->
GetL
ocale
();
return
pImp
->
GetL
anguageTag
();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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