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
c68506e0
Kaydet (Commit)
c68506e0
authored
Ock 12, 2012
tarafından
August Sodora
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SvStringsDtor->std::vector
üst
0df9d7c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
17 deletions
+12
-17
docvor.cxx
sfx2/source/doc/docvor.cxx
+12
-17
No files found.
sfx2/source/doc/docvor.cxx
Dosyayı görüntüle @
c68506e0
...
...
@@ -155,7 +155,7 @@ friend class SfxOrganizeListBox_Impl;
SfxOrganizeMgr
aMgr
;
sfx2
::
FileDialogHelper
*
pFileDlg
;
SvStringsDtor
*
GetAllFactoryURLs_Impl
()
const
;
std
::
vector
<
rtl
::
OUString
>
GetAllFactoryURLs_Impl
()
const
;
sal_Bool
GetServiceName_Impl
(
String
&
rFactoryURL
,
String
&
rFileURL
)
const
;
long
Dispatch_Impl
(
sal_uInt16
nId
,
Menu
*
_pMenu
);
String
GetPath_Impl
(
sal_Bool
bOpen
,
const
String
&
rFileName
);
...
...
@@ -1691,11 +1691,11 @@ sal_Bool SfxOrganizeDlg_Impl::DontDelete_Impl( SvLBoxEntry* pEntry )
return
sal_False
;
}
SvStringsDtor
*
SfxOrganizeDlg_Impl
::
GetAllFactoryURLs_Impl
(
)
const
std
::
vector
<
rtl
::
OUString
>
SfxOrganizeDlg_Impl
::
GetAllFactoryURLs_Impl
(
)
const
{
SvtModuleOptions
aModOpt
;
const
::
com
::
sun
::
star
::
uno
::
Sequence
<
::
rtl
::
OUString
>&
aServiceNames
=
aModOpt
.
GetAllServiceNames
()
;
SvStringsDtor
*
pList
=
new
SvStringsDtor
;
std
::
vector
<
rtl
::
OUString
>
aList
;
sal_Int32
nCount
=
aServiceNames
.
getLength
();
for
(
sal_Int32
i
=
0
;
i
<
nCount
;
++
i
)
{
...
...
@@ -1703,12 +1703,11 @@ SvStringsDtor* SfxOrganizeDlg_Impl::GetAllFactoryURLs_Impl( ) const
{
SvtModuleOptions
::
EFactory
eFac
=
SvtModuleOptions
::
E_WRITER
;
SvtModuleOptions
::
ClassifyFactoryByName
(
aServiceNames
[
i
],
eFac
);
String
*
pURL
=
new
String
(
aModOpt
.
GetFactoryEmptyDocumentURL
(
eFac
)
);
pList
->
Insert
(
pURL
,
pList
->
Count
()
);
aList
.
push_back
(
aModOpt
.
GetFactoryEmptyDocumentURL
(
eFac
));
}
}
return
p
List
;
return
a
List
;
}
sal_Bool
SfxOrganizeDlg_Impl
::
GetServiceName_Impl
(
String
&
rName
,
String
&
rFileURL
)
const
...
...
@@ -2068,20 +2067,17 @@ IMPL_LINK( SfxOrganizeDlg_Impl, MenuActivate_Impl, Menu *, pMenu )
pMenu
->
EnableItem
(
ID_DEFAULT_TEMPLATE
,
bEnable
);
bEnable
=
sal_True
;
SvStringsDtor
*
pList
=
GetAllFactoryURLs_Impl
();
sal_uInt16
nCount
=
pList
->
Count
();
if
(
nCount
>
0
)
std
::
vector
<
rtl
::
OUString
>
aList
(
GetAllFactoryURLs_Impl
());
if
(
!
aList
.
empty
())
{
PopupMenu
*
pSubMenu
=
new
PopupMenu
;
sal_uInt16
nItemId
=
ID_RESET_DEFAULT_TEMPLATE
+
1
;
for
(
sal_uInt16
i
=
0
;
i
<
nCount
;
++
i
)
for
(
std
::
vector
<
rtl
::
OUString
>::
const_iterator
i
=
aList
.
begin
();
i
!=
aList
.
end
();
++
i
)
{
String
aObjFacURL
(
*
pList
->
GetObject
(
i
)
);
String
aTitle
=
SvFileInformationManager
::
GetDescription
(
INetURLObject
(
aObjFacURL
)
);
pSubMenu
->
InsertItem
(
nItemId
,
aTitle
,
SvFileInformationManager
::
GetImage
(
INetURLObject
(
aObjFacURL
),
false
)
);
pSubMenu
->
SetItemCommand
(
nItemId
++
,
aObjFacURL
);
INetURLObject
aObj
(
*
i
);
String
aTitle
=
SvFileInformationManager
::
GetDescription
(
aObj
);
pSubMenu
->
InsertItem
(
nItemId
,
aTitle
,
SvFileInformationManager
::
GetImage
(
aObj
,
false
));
pSubMenu
->
SetItemCommand
(
nItemId
++
,
*
i
);
DBG_ASSERT
(
nItemId
<=
ID_RESET_DEFAULT_TEMPLATE_END
,
"menu item id overflow"
);
}
pMenu
->
SetPopupMenu
(
ID_RESET_DEFAULT_TEMPLATE
,
pSubMenu
);
...
...
@@ -2089,7 +2085,6 @@ IMPL_LINK( SfxOrganizeDlg_Impl, MenuActivate_Impl, Menu *, pMenu )
else
bEnable
=
sal_False
;
delete
pList
;
pMenu
->
EnableItem
(
ID_RESET_DEFAULT_TEMPLATE
,
bEnable
);
return
1
;
...
...
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