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
90e983df
Kaydet (Commit)
90e983df
authored
Ock 21, 2012
tarafından
August Sodora
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use a smart pointer here instead
üst
e0d20cbd
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
23 deletions
+12
-23
basicbox.cxx
basctl/source/basicide/basicbox.cxx
+1
-1
baside3.cxx
basctl/source/basicide/baside3.cxx
+1
-1
basides1.cxx
basctl/source/basicide/basides1.cxx
+1
-1
basidesh.cxx
basctl/source/basicide/basidesh.cxx
+1
-7
managelang.cxx
basctl/source/dlged/managelang.cxx
+2
-7
basidesh.hxx
basctl/source/inc/basidesh.hxx
+2
-2
managelang.hxx
basctl/source/inc/managelang.hxx
+4
-4
No files found.
basctl/source/basicide/basicbox.cxx
Dosyayı görüntüle @
90e983df
...
...
@@ -424,7 +424,7 @@ void BasicLanguageBox::FillBox()
m_sCurrentText
=
GetSelectEntry
();
ClearBox
();
LocalizationMgr
*
pCurMgr
=
BasicIDEGlobals
::
GetShell
()
->
GetCurLocalizationMgr
(
);
boost
::
shared_ptr
<
LocalizationMgr
>
pCurMgr
(
BasicIDEGlobals
::
GetShell
()
->
GetCurLocalizationMgr
()
);
if
(
pCurMgr
->
isLibraryLocalized
()
)
{
Enable
();
...
...
basctl/source/basicide/baside3.cxx
Dosyayı görüntüle @
90e983df
...
...
@@ -1152,7 +1152,7 @@ sal_Bool implImportDialog( Window* pWin, const ::rtl::OUString& rCurPath, const
bool
bCopyResourcesForDialog
=
true
;
if
(
bAddDialogLanguagesToLib
)
{
LocalizationMgr
*
pCurMgr
=
pIDEShell
->
GetCurLocalizationMgr
();
boost
::
shared_ptr
<
LocalizationMgr
>
pCurMgr
=
pIDEShell
->
GetCurLocalizationMgr
();
lang
::
Locale
aFirstLocale
;
aFirstLocale
=
aOnlyInImportLanguages
[
0
];
...
...
basctl/source/basicide/basides1.cxx
Dosyayı görüntüle @
90e983df
...
...
@@ -1024,7 +1024,7 @@ void BasicIDEShell::GetState(SfxItemSet &rSet)
else
{
::
rtl
::
OUString
aItemStr
;
LocalizationMgr
*
pCurMgr
=
GetCurLocalizationMgr
(
);
boost
::
shared_ptr
<
LocalizationMgr
>
pCurMgr
(
GetCurLocalizationMgr
()
);
if
(
pCurMgr
->
isLibraryLocalized
()
)
{
Sequence
<
lang
::
Locale
>
aLocaleSeq
=
pCurMgr
->
getStringResourceManager
()
->
getLocales
();
...
...
basctl/source/basicide/basidesh.cxx
Dosyayı görüntüle @
90e983df
...
...
@@ -206,8 +206,6 @@ void BasicIDEShell::Init()
pObjectCatalog
=
0
;
bCreatingWindow
=
sal_False
;
m_pCurLocalizationMgr
=
NULL
;
pTabBar
=
new
BasicIDETabBar
(
&
GetViewFrame
()
->
GetWindow
()
);
pTabBar
->
SetSplitHdl
(
LINK
(
this
,
BasicIDEShell
,
TabBarSplitHdl
)
);
bTabBarSplitted
=
sal_False
;
...
...
@@ -245,8 +243,6 @@ BasicIDEShell::~BasicIDEShell()
SetWindow
(
0
);
SetCurWindow
(
0
);
delete
m_pCurLocalizationMgr
;
IDEBaseWindow
*
pWin
=
aIDEWindowTable
.
First
();
while
(
pWin
)
{
...
...
@@ -1014,7 +1010,6 @@ void BasicIDEShell::SetCurLib( const ScriptDocument& rDocument, ::rtl::OUString
void
BasicIDEShell
::
SetCurLibForLocalization
(
const
ScriptDocument
&
rDocument
,
::
rtl
::
OUString
aLibName
)
{
// Create LocalizationMgr
delete
m_pCurLocalizationMgr
;
Reference
<
resource
::
XStringResourceManager
>
xStringResourceManager
;
try
{
...
...
@@ -1026,9 +1021,8 @@ void BasicIDEShell::SetCurLibForLocalization( const ScriptDocument& rDocument, :
}
catch
(
const
container
::
NoSuchElementException
&
)
{}
m_pCurLocalizationMgr
=
new
LocalizationMgr
(
this
,
rDocument
,
aLibName
,
xStringResourceManager
);
m_pCurLocalizationMgr
=
boost
::
shared_ptr
<
LocalizationMgr
>
(
new
LocalizationMgr
(
this
,
rDocument
,
aLibName
,
xStringResourceManager
));
m_pCurLocalizationMgr
->
handleTranslationbar
();
}
...
...
basctl/source/dlged/managelang.cxx
Dosyayı görüntüle @
90e983df
...
...
@@ -85,10 +85,8 @@ namespace {
}
}
ManageLanguageDialog
::
ManageLanguageDialog
(
Window
*
pParent
,
LocalizationMgr
*
_pLMgr
)
:
ManageLanguageDialog
::
ManageLanguageDialog
(
Window
*
pParent
,
boost
::
shared_ptr
<
LocalizationMgr
>
_pLMgr
)
:
ModalDialog
(
pParent
,
IDEResId
(
RID_DLG_MANAGE_LANGUAGE
)
),
m_aLanguageFT
(
this
,
IDEResId
(
FT_LANGUAGE
)
),
m_aLanguageLB
(
this
,
IDEResId
(
LB_LANGUAGE
)
),
m_aAddPB
(
this
,
IDEResId
(
PB_ADD_LANG
)
),
...
...
@@ -290,10 +288,9 @@ IMPL_LINK( ManageLanguageDialog, SelectHdl, ListBox *, EMPTYARG )
// class SetDefaultLanguageDialog -----------------------------------------------
SetDefaultLanguageDialog
::
SetDefaultLanguageDialog
(
Window
*
pParent
,
LocalizationMgr
*
_pLMgr
)
:
SetDefaultLanguageDialog
::
SetDefaultLanguageDialog
(
Window
*
pParent
,
boost
::
shared_ptr
<
LocalizationMgr
>
_pLMgr
)
:
ModalDialog
(
pParent
,
IDEResId
(
RID_DLG_SETDEF_LANGUAGE
)
),
m_aLanguageFT
(
this
,
IDEResId
(
FT_DEF_LANGUAGE
)
),
m_pLanguageLB
(
new
SvxLanguageBox
(
this
,
IDEResId
(
LB_DEF_LANGUAGE
)
)
),
m_pCheckLangLB
(
NULL
),
...
...
@@ -302,9 +299,7 @@ SetDefaultLanguageDialog::SetDefaultLanguageDialog( Window* pParent, Localizatio
m_aOKBtn
(
this
,
IDEResId
(
PB_DEF_OK
)
),
m_aCancelBtn
(
this
,
IDEResId
(
PB_DEF_CANCEL
)
),
m_aHelpBtn
(
this
,
IDEResId
(
PB_DEF_HELP
)
),
m_pLocalizationMgr
(
_pLMgr
)
{
if
(
m_pLocalizationMgr
->
isLibraryLocalized
()
)
{
...
...
basctl/source/inc/basidesh.hxx
Dosyayı görüntüle @
90e983df
...
...
@@ -85,7 +85,7 @@ friend class LocalizationMgr;
IDEBaseWindow
*
pCurWin
;
ScriptDocument
m_aCurDocument
;
::
rtl
::
OUString
m_aCurLibName
;
LocalizationMgr
*
m_pCurLocalizationMgr
;
boost
::
shared_ptr
<
LocalizationMgr
>
m_pCurLocalizationMgr
;
ScrollBar
aHScrollBar
;
ScrollBar
aVScrollBar
;
...
...
@@ -177,7 +177,7 @@ public:
GetCurDocument
()
const
{
return
m_aCurDocument
;
}
const
::
rtl
::
OUString
&
GetCurLibName
()
const
{
return
m_aCurLibName
;
}
ObjectCatalog
*
GetObjectCatalog
()
const
{
return
pObjectCatalog
;
}
LocalizationMgr
*
GetCurLocalizationMgr
()
const
{
return
m_pCurLocalizationMgr
;
}
boost
::
shared_ptr
<
LocalizationMgr
>
GetCurLocalizationMgr
()
const
{
return
m_pCurLocalizationMgr
;
}
ScrollBar
&
GetHScrollBar
()
{
return
aHScrollBar
;
}
ScrollBar
&
GetVScrollBar
()
{
return
aVScrollBar
;
}
...
...
basctl/source/inc/managelang.hxx
Dosyayı görüntüle @
90e983df
...
...
@@ -68,7 +68,7 @@ private:
HelpButton
m_aHelpBtn
;
OKButton
m_aCloseBtn
;
LocalizationMgr
*
m_pLocalizationMgr
;
boost
::
shared_ptr
<
LocalizationMgr
>
m_pLocalizationMgr
;
::
rtl
::
OUString
m_sDefLangStr
;
::
rtl
::
OUString
m_sDeleteStr
;
...
...
@@ -85,7 +85,7 @@ private:
DECL_LINK
(
SelectHdl
,
ListBox
*
);
public
:
ManageLanguageDialog
(
Window
*
pParent
,
LocalizationMgr
*
_pLMgr
);
ManageLanguageDialog
(
Window
*
pParent
,
boost
::
shared_ptr
<
LocalizationMgr
>
_pLMgr
);
~
ManageLanguageDialog
();
};
...
...
@@ -103,13 +103,13 @@ private:
HelpButton
m_aHelpBtn
;
bool
m_bIsDefaultMode
;
LocalizationMgr
*
m_pLocalizationMgr
;
boost
::
shared_ptr
<
LocalizationMgr
>
m_pLocalizationMgr
;
void
FillLanguageBox
();
void
CalcInfoSize
();
public
:
SetDefaultLanguageDialog
(
Window
*
pParent
,
LocalizationMgr
*
_pLMgr
);
SetDefaultLanguageDialog
(
Window
*
pParent
,
boost
::
shared_ptr
<
LocalizationMgr
>
_pLMgr
);
~
SetDefaultLanguageDialog
();
::
com
::
sun
::
star
::
uno
::
Sequence
<
::
com
::
sun
::
star
::
lang
::
Locale
>
GetLocales
()
const
;
...
...
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