Kaydet (Commit) 8c67fd76 authored tarafından Rafael Dominguez's avatar Rafael Dominguez Kaydeden (comit) Caolán McNamara

Overload SdPageObjsTLB::GetSelectEntryList.

To return selected entries to a vector instead to a deprecated
List structure.
üst 08908961
...@@ -693,6 +693,21 @@ List* SdPageObjsTLB::GetSelectEntryList( sal_uInt16 nDepth ) ...@@ -693,6 +693,21 @@ List* SdPageObjsTLB::GetSelectEntryList( sal_uInt16 nDepth )
return( pList ); return( pList );
} }
void SdPageObjsTLB::GetSelectEntryList( sal_uInt16 nDepth, std::vector<rtl::OUString> &rEntries ) const
{
SvLBoxEntry* pEntry = FirstSelected();
while( pEntry )
{
sal_uInt16 nListDepth = GetModel()->GetDepth( pEntry );
if( nListDepth == nDepth )
rEntries.push_back(GetEntryText(pEntry));
pEntry = NextSelected( pEntry );
}
}
/************************************************************************* /*************************************************************************
|* |*
|* Eintraege werden erst auf Anforderung (Doppelklick) eingefuegt |* Eintraege werden erst auf Anforderung (Doppelklick) eingefuegt
......
...@@ -207,6 +207,17 @@ public: ...@@ -207,6 +207,17 @@ public:
sal_Bool SelectEntry( const String& rName ); sal_Bool SelectEntry( const String& rName );
String GetSelectEntry(); String GetSelectEntry();
List* GetSelectEntryList( sal_uInt16 nDepth ); List* GetSelectEntryList( sal_uInt16 nDepth );
/*************************************************************************
|*
|* Selektierte Eintrage zurueckgeben
|* nDepth == 0 -> Seiten
|* nDepth == 1 -> Objekte
|*
\************************************************************************/
void GetSelectEntryList (sal_uInt16 nDepth, std::vector<rtl::OUString> &rEntries) const;
SdDrawDocument* GetBookmarkDoc(SfxMedium* pMedium = NULL); SdDrawDocument* GetBookmarkDoc(SfxMedium* pMedium = NULL);
::sd::DrawDocShell* GetDropDocSh() { return(mpDropDocSh); } ::sd::DrawDocShell* GetDropDocSh() { return(mpDropDocSh); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment