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
4be81de0
Kaydet (Commit)
4be81de0
authored
Nis 07, 2016
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Resolve OUStringList typedef
Change-Id: Ifb5dc5128b5619abb83eea427c7fb1115fd825f3
üst
02041335
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
30 additions
and
32 deletions
+30
-32
converter.hxx
framework/inc/classes/converter.hxx
+1
-1
filtercachedata.hxx
framework/inc/classes/filtercachedata.hxx
+7
-7
protocolhandlercache.hxx
framework/inc/classes/protocolhandlercache.hxx
+1
-1
stdtypes.h
framework/inc/stdtypes.h
+0
-2
presethandler.cxx
framework/source/accelerators/presethandler.cxx
+2
-2
storageholder.cxx
framework/source/accelerators/storageholder.cxx
+10
-10
converter.cxx
framework/source/fwi/classes/converter.cxx
+2
-2
protocolhandlercache.cxx
framework/source/fwi/classes/protocolhandlercache.cxx
+1
-1
presethandler.hxx
framework/source/inc/accelerators/presethandler.hxx
+2
-2
storageholder.hxx
framework/source/inc/accelerators/storageholder.hxx
+1
-1
jobexecutor.cxx
framework/source/jobs/jobexecutor.cxx
+3
-3
pathsettings.cxx
framework/source/services/pathsettings.cxx
+0
-0
No files found.
framework/inc/classes/converter.hxx
Dosyayı görüntüle @
4be81de0
...
@@ -39,7 +39,7 @@ class FWI_DLLPUBLIC Converter
...
@@ -39,7 +39,7 @@ class FWI_DLLPUBLIC Converter
static
css
::
uno
::
Sequence
<
css
::
beans
::
NamedValue
>
convert_seqPropVal2seqNamedVal
(
const
css
::
uno
::
Sequence
<
css
::
beans
::
PropertyValue
>&
lSource
);
static
css
::
uno
::
Sequence
<
css
::
beans
::
NamedValue
>
convert_seqPropVal2seqNamedVal
(
const
css
::
uno
::
Sequence
<
css
::
beans
::
PropertyValue
>&
lSource
);
// Seq<String> => Vector<String>
// Seq<String> => Vector<String>
static
OUStringList
convert_seqOUString2OUStringList
(
const
css
::
uno
::
Sequence
<
OUString
>&
lSource
);
static
std
::
vector
<
OUString
>
convert_seqOUString2OUStringList
(
const
css
::
uno
::
Sequence
<
OUString
>&
lSource
);
static
OUString
convert_DateTime2ISO8601
(
const
DateTime
&
aSource
);
static
OUString
convert_DateTime2ISO8601
(
const
DateTime
&
aSource
);
};
};
...
...
framework/inc/classes/filtercachedata.hxx
Dosyayı görüntüle @
4be81de0
...
@@ -113,8 +113,8 @@ struct FileType
...
@@ -113,8 +113,8 @@ struct FileType
OUString
sMediaType
;
OUString
sMediaType
;
OUString
sClipboardFormat
;
OUString
sClipboardFormat
;
sal_Int32
nDocumentIconID
;
sal_Int32
nDocumentIconID
;
OUStringList
lURLPattern
;
std
::
vector
<
OUString
>
lURLPattern
;
OUStringList
lExtensions
;
std
::
vector
<
OUString
>
lExtensions
;
};
};
// These struct describe a filter which is registered for one type.
// These struct describe a filter which is registered for one type.
...
@@ -179,7 +179,7 @@ struct Filter
...
@@ -179,7 +179,7 @@ struct Filter
OUString
sFilterService
;
OUString
sFilterService
;
OUString
sUIComponent
;
OUString
sUIComponent
;
sal_Int32
nFlags
;
sal_Int32
nFlags
;
OUStringList
lUserData
;
std
::
vector
<
OUString
>
lUserData
;
sal_Int32
nFileFormatVersion
;
sal_Int32
nFileFormatVersion
;
OUString
sTemplateName
;
OUString
sTemplateName
;
};
};
...
@@ -220,7 +220,7 @@ struct Detector
...
@@ -220,7 +220,7 @@ struct Detector
public
:
public
:
OUString
sName
;
OUString
sName
;
OUStringList
lTypes
;
std
::
vector
<
OUString
>
lTypes
;
};
};
// Programmer can register his own services for loading documents in a frame.
// Programmer can register his own services for loading documents in a frame.
...
@@ -262,7 +262,7 @@ struct Loader
...
@@ -262,7 +262,7 @@ struct Loader
OUString
sName
;
OUString
sName
;
OUStringHashMap
lUINames
;
OUStringHashMap
lUINames
;
OUStringList
lTypes
;
std
::
vector
<
OUString
>
lTypes
;
};
};
// Programmer can register his own services to handle a FileType and intercept dispatches.
// Programmer can register his own services to handle a FileType and intercept dispatches.
...
@@ -300,7 +300,7 @@ struct ContentHandler
...
@@ -300,7 +300,7 @@ struct ContentHandler
public
:
public
:
OUString
sName
;
OUString
sName
;
OUStringList
lTypes
;
std
::
vector
<
OUString
>
lTypes
;
};
};
// We need different hash maps for different tables of our configuration management.
// We need different hash maps for different tables of our configuration management.
...
@@ -319,7 +319,7 @@ class SetNodeHash : public std::unordered_map< OUString ,
...
@@ -319,7 +319,7 @@ class SetNodeHash : public std::unordered_map< OUString ,
// The preferred hash maps file extensions to preferred types to find these ones faster.
// The preferred hash maps file extensions to preferred types to find these ones faster.
class
PerformanceHash
:
public
std
::
unordered_map
<
OUString
,
class
PerformanceHash
:
public
std
::
unordered_map
<
OUString
,
OUStringList
,
std
::
vector
<
OUString
>
,
OUStringHash
>
OUStringHash
>
{
{
};
};
...
...
framework/inc/classes/protocolhandlercache.hxx
Dosyayı görüntüle @
4be81de0
...
@@ -52,7 +52,7 @@ struct FWI_DLLPUBLIC ProtocolHandler
...
@@ -52,7 +52,7 @@ struct FWI_DLLPUBLIC ProtocolHandler
/// the uno implementation name of this handler
/// the uno implementation name of this handler
OUString
m_sUNOName
;
OUString
m_sUNOName
;
/// list of URL pattern which defines the protocols which this handler is registered for
/// list of URL pattern which defines the protocols which this handler is registered for
OUStringList
m_lProtocols
;
std
::
vector
<
OUString
>
m_lProtocols
;
};
};
/**
/**
...
...
framework/inc/stdtypes.h
Dosyayı görüntüle @
4be81de0
...
@@ -79,8 +79,6 @@ struct KeyEventEqualsFunc
...
@@ -79,8 +79,6 @@ struct KeyEventEqualsFunc
}
}
};
};
typedef
::
std
::
vector
<
OUString
>
OUStringList
;
/**
/**
Basic OUString hash.
Basic OUString hash.
Key and values are OUStrings.
Key and values are OUStrings.
...
...
framework/source/accelerators/presethandler.cxx
Dosyayı görüntüle @
4be81de0
...
@@ -462,8 +462,8 @@ void PresetHandler::connectToResource( PresetHandler::EConfigType
...
@@ -462,8 +462,8 @@ void PresetHandler::connectToResource( PresetHandler::EConfigType
const
OUString
*
pNames
;
const
OUString
*
pNames
;
sal_Int32
c
;
sal_Int32
c
;
sal_Int32
i
;
sal_Int32
i
;
OUStringList
lPresets
;
std
::
vector
<
OUString
>
lPresets
;
OUStringList
lTargets
;
std
::
vector
<
OUString
>
lTargets
;
// read preset names of share layer
// read preset names of share layer
xAccess
.
set
(
xShare
,
css
::
uno
::
UNO_QUERY
);
xAccess
.
set
(
xShare
,
css
::
uno
::
UNO_QUERY
);
...
...
framework/source/accelerators/storageholder.cxx
Dosyayı görüntüle @
4be81de0
...
@@ -87,7 +87,7 @@ css::uno::Reference< css::embed::XStorage > StorageHolder::openPath(const OUStri
...
@@ -87,7 +87,7 @@ css::uno::Reference< css::embed::XStorage > StorageHolder::openPath(const OUStri
sal_Int32
nOpenMode
)
sal_Int32
nOpenMode
)
{
{
OUString
sNormedPath
=
StorageHolder
::
impl_st_normPath
(
sPath
);
OUString
sNormedPath
=
StorageHolder
::
impl_st_normPath
(
sPath
);
OUStringList
lFolders
=
StorageHolder
::
impl_st_parsePath
(
sNormedPath
);
std
::
vector
<
OUString
>
lFolders
=
StorageHolder
::
impl_st_parsePath
(
sNormedPath
);
// SAFE -> ----------------------------------
// SAFE -> ----------------------------------
osl
::
ResettableMutexGuard
aReadLock
(
m_mutex
);
osl
::
ResettableMutexGuard
aReadLock
(
m_mutex
);
...
@@ -97,7 +97,7 @@ css::uno::Reference< css::embed::XStorage > StorageHolder::openPath(const OUStri
...
@@ -97,7 +97,7 @@ css::uno::Reference< css::embed::XStorage > StorageHolder::openPath(const OUStri
css
::
uno
::
Reference
<
css
::
embed
::
XStorage
>
xChild
;
css
::
uno
::
Reference
<
css
::
embed
::
XStorage
>
xChild
;
OUString
sRelPath
;
OUString
sRelPath
;
OUStringList
::
const_iterator
pIt
;
std
::
vector
<
OUString
>
::
const_iterator
pIt
;
for
(
pIt
=
lFolders
.
begin
();
for
(
pIt
=
lFolders
.
begin
();
pIt
!=
lFolders
.
end
();
pIt
!=
lFolders
.
end
();
...
@@ -167,11 +167,11 @@ css::uno::Reference< css::embed::XStorage > StorageHolder::openPath(const OUStri
...
@@ -167,11 +167,11 @@ css::uno::Reference< css::embed::XStorage > StorageHolder::openPath(const OUStri
StorageHolder
::
TStorageList
StorageHolder
::
getAllPathStorages
(
const
OUString
&
sPath
)
StorageHolder
::
TStorageList
StorageHolder
::
getAllPathStorages
(
const
OUString
&
sPath
)
{
{
OUString
sNormedPath
=
StorageHolder
::
impl_st_normPath
(
sPath
);
OUString
sNormedPath
=
StorageHolder
::
impl_st_normPath
(
sPath
);
OUStringList
lFolders
=
StorageHolder
::
impl_st_parsePath
(
sNormedPath
);
std
::
vector
<
OUString
>
lFolders
=
StorageHolder
::
impl_st_parsePath
(
sNormedPath
);
StorageHolder
::
TStorageList
lStoragesOfPath
;
StorageHolder
::
TStorageList
lStoragesOfPath
;
OUString
sRelPath
;
OUString
sRelPath
;
OUStringList
::
const_iterator
pIt
;
std
::
vector
<
OUString
>
::
const_iterator
pIt
;
osl
::
MutexGuard
g
(
m_mutex
);
osl
::
MutexGuard
g
(
m_mutex
);
...
@@ -229,14 +229,14 @@ void StorageHolder::commitPath(const OUString& sPath)
...
@@ -229,14 +229,14 @@ void StorageHolder::commitPath(const OUString& sPath)
void
StorageHolder
::
closePath
(
const
OUString
&
rPath
)
void
StorageHolder
::
closePath
(
const
OUString
&
rPath
)
{
{
OUString
sNormedPath
=
StorageHolder
::
impl_st_normPath
(
rPath
);
OUString
sNormedPath
=
StorageHolder
::
impl_st_normPath
(
rPath
);
OUStringList
lFolders
=
StorageHolder
::
impl_st_parsePath
(
sNormedPath
);
std
::
vector
<
OUString
>
lFolders
=
StorageHolder
::
impl_st_parsePath
(
sNormedPath
);
/* convert list of paths in the following way:
/* convert list of paths in the following way:
[0] = "path_1" => "path_1
[0] = "path_1" => "path_1
[1] = "path_2" => "path_1/path_2"
[1] = "path_2" => "path_1/path_2"
[2] = "path_3" => "path_1/path_2/path_3"
[2] = "path_3" => "path_1/path_2/path_3"
*/
*/
OUStringList
::
iterator
pIt1
;
std
::
vector
<
OUString
>
::
iterator
pIt1
;
OUString
sParentPath
;
OUString
sParentPath
;
for
(
pIt1
=
lFolders
.
begin
();
for
(
pIt1
=
lFolders
.
begin
();
pIt1
!=
lFolders
.
end
();
pIt1
!=
lFolders
.
end
();
...
@@ -249,7 +249,7 @@ void StorageHolder::closePath(const OUString& rPath)
...
@@ -249,7 +249,7 @@ void StorageHolder::closePath(const OUString& rPath)
osl
::
MutexGuard
g
(
m_mutex
);
osl
::
MutexGuard
g
(
m_mutex
);
OUStringList
::
reverse_iterator
pIt2
;
std
::
vector
<
OUString
>
::
reverse_iterator
pIt2
;
for
(
pIt2
=
lFolders
.
rbegin
();
for
(
pIt2
=
lFolders
.
rbegin
();
pIt2
!=
lFolders
.
rend
();
pIt2
!=
lFolders
.
rend
();
++
pIt2
)
++
pIt2
)
...
@@ -355,7 +355,7 @@ css::uno::Reference< css::embed::XStorage > StorageHolder::getParentStorage(cons
...
@@ -355,7 +355,7 @@ css::uno::Reference< css::embed::XStorage > StorageHolder::getParentStorage(cons
{
{
// normed path = "a/b/c/" ... we search for "a/b/"
// normed path = "a/b/c/" ... we search for "a/b/"
OUString
sNormedPath
=
StorageHolder
::
impl_st_normPath
(
sChildPath
);
OUString
sNormedPath
=
StorageHolder
::
impl_st_normPath
(
sChildPath
);
OUStringList
lFolders
=
StorageHolder
::
impl_st_parsePath
(
sNormedPath
);
std
::
vector
<
OUString
>
lFolders
=
StorageHolder
::
impl_st_parsePath
(
sNormedPath
);
sal_Int32
c
=
lFolders
.
size
();
sal_Int32
c
=
lFolders
.
size
();
// a) "" => - => no parent
// a) "" => - => no parent
...
@@ -498,9 +498,9 @@ OUString StorageHolder::impl_st_normPath(const OUString& sPath)
...
@@ -498,9 +498,9 @@ OUString StorageHolder::impl_st_normPath(const OUString& sPath)
return
sNormedPath
;
return
sNormedPath
;
}
}
OUStringList
StorageHolder
::
impl_st_parsePath
(
const
OUString
&
sPath
)
std
::
vector
<
OUString
>
StorageHolder
::
impl_st_parsePath
(
const
OUString
&
sPath
)
{
{
OUStringList
lToken
;
std
::
vector
<
OUString
>
lToken
;
sal_Int32
i
=
0
;
sal_Int32
i
=
0
;
while
(
true
)
while
(
true
)
{
{
...
...
framework/source/fwi/classes/converter.cxx
Dosyayı görüntüle @
4be81de0
...
@@ -40,9 +40,9 @@ css::uno::Sequence< css::beans::NamedValue > Converter::convert_seqPropVal2seqNa
...
@@ -40,9 +40,9 @@ css::uno::Sequence< css::beans::NamedValue > Converter::convert_seqPropVal2seqNa
/**
/**
* converts a sequence of unicode strings into a vector of such items
* converts a sequence of unicode strings into a vector of such items
*/
*/
OUStringList
Converter
::
convert_seqOUString2OUStringList
(
const
css
::
uno
::
Sequence
<
OUString
>&
lSource
)
std
::
vector
<
OUString
>
Converter
::
convert_seqOUString2OUStringList
(
const
css
::
uno
::
Sequence
<
OUString
>&
lSource
)
{
{
OUStringList
lDestination
;
std
::
vector
<
OUString
>
lDestination
;
sal_Int32
nCount
=
lSource
.
getLength
();
sal_Int32
nCount
=
lSource
.
getLength
();
for
(
sal_Int32
nItem
=
0
;
nItem
<
nCount
;
++
nItem
)
for
(
sal_Int32
nItem
=
0
;
nItem
<
nCount
;
++
nItem
)
...
...
framework/source/fwi/classes/protocolhandlercache.cxx
Dosyayı görüntüle @
4be81de0
...
@@ -240,7 +240,7 @@ void HandlerCFGAccess::read( HandlerHash** ppHandler ,
...
@@ -240,7 +240,7 @@ void HandlerCFGAccess::read( HandlerHash** ppHandler ,
aHandler
.
m_lProtocols
=
Converter
::
convert_seqOUString2OUStringList
(
lTemp
);
aHandler
.
m_lProtocols
=
Converter
::
convert_seqOUString2OUStringList
(
lTemp
);
// register his pattern into the performance search hash
// register his pattern into the performance search hash
for
(
OUStringList
::
iterator
pItem
=
aHandler
.
m_lProtocols
.
begin
();
for
(
std
::
vector
<
OUString
>
::
iterator
pItem
=
aHandler
.
m_lProtocols
.
begin
();
pItem
!=
aHandler
.
m_lProtocols
.
end
();
pItem
!=
aHandler
.
m_lProtocols
.
end
();
++
pItem
)
++
pItem
)
{
{
...
...
framework/source/inc/accelerators/presethandler.hxx
Dosyayı görüntüle @
4be81de0
...
@@ -126,11 +126,11 @@ class PresetHandler
...
@@ -126,11 +126,11 @@ class PresetHandler
/** @short knows the names of all presets inside the current
/** @short knows the names of all presets inside the current
working storage of the share layer. */
working storage of the share layer. */
OUStringList
m_lPresets
;
std
::
vector
<
OUString
>
m_lPresets
;
/** @short knows the names of all targets inside the current
/** @short knows the names of all targets inside the current
working storage of the user layer. */
working storage of the user layer. */
OUStringList
m_lTargets
;
std
::
vector
<
OUString
>
m_lTargets
;
/** @short its the current office locale and will be used
/** @short its the current office locale and will be used
to handle localized presets.
to handle localized presets.
...
...
framework/source/inc/accelerators/storageholder.hxx
Dosyayı görüntüle @
4be81de0
...
@@ -183,7 +183,7 @@ class StorageHolder
...
@@ -183,7 +183,7 @@ class StorageHolder
/** @short TODO
/** @short TODO
*/
*/
static
OUStringList
impl_st_parsePath
(
const
OUString
&
sPath
);
static
std
::
vector
<
OUString
>
impl_st_parsePath
(
const
OUString
&
sPath
);
};
};
}
// namespace framework
}
// namespace framework
...
...
framework/source/jobs/jobexecutor.cxx
Dosyayı görüntüle @
4be81de0
...
@@ -71,7 +71,7 @@ private:
...
@@ -71,7 +71,7 @@ private:
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
m_xContext
;
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
m_xContext
;
/** cached list of all registered event names of cfg for call optimization. */
/** cached list of all registered event names of cfg for call optimization. */
OUStringList
m_lEvents
;
std
::
vector
<
OUString
>
m_lEvents
;
/** we listen at the configuration for changes at the event list. */
/** we listen at the configuration for changes at the event list. */
ConfigAccess
m_aConfig
;
ConfigAccess
m_aConfig
;
...
@@ -343,7 +343,7 @@ void SAL_CALL JobExecutor::elementInserted( const css::container::ContainerEvent
...
@@ -343,7 +343,7 @@ void SAL_CALL JobExecutor::elementInserted( const css::container::ContainerEvent
OUString
sEvent
=
::
utl
::
extractFirstFromConfigurationPath
(
sValue
);
OUString
sEvent
=
::
utl
::
extractFirstFromConfigurationPath
(
sValue
);
if
(
!
sEvent
.
isEmpty
())
if
(
!
sEvent
.
isEmpty
())
{
{
OUStringList
::
iterator
pEvent
=
std
::
find
(
m_lEvents
.
begin
(),
m_lEvents
.
end
(),
sEvent
);
std
::
vector
<
OUString
>
::
iterator
pEvent
=
std
::
find
(
m_lEvents
.
begin
(),
m_lEvents
.
end
(),
sEvent
);
if
(
pEvent
==
m_lEvents
.
end
())
if
(
pEvent
==
m_lEvents
.
end
())
m_lEvents
.
push_back
(
sEvent
);
m_lEvents
.
push_back
(
sEvent
);
}
}
...
@@ -358,7 +358,7 @@ void SAL_CALL JobExecutor::elementRemoved ( const css::container::ContainerEvent
...
@@ -358,7 +358,7 @@ void SAL_CALL JobExecutor::elementRemoved ( const css::container::ContainerEvent
OUString
sEvent
=
::
utl
::
extractFirstFromConfigurationPath
(
sValue
);
OUString
sEvent
=
::
utl
::
extractFirstFromConfigurationPath
(
sValue
);
if
(
!
sEvent
.
isEmpty
())
if
(
!
sEvent
.
isEmpty
())
{
{
OUStringList
::
iterator
pEvent
=
std
::
find
(
m_lEvents
.
begin
(),
m_lEvents
.
end
(),
sEvent
);
std
::
vector
<
OUString
>
::
iterator
pEvent
=
std
::
find
(
m_lEvents
.
begin
(),
m_lEvents
.
end
(),
sEvent
);
if
(
pEvent
!=
m_lEvents
.
end
())
if
(
pEvent
!=
m_lEvents
.
end
())
m_lEvents
.
erase
(
pEvent
);
m_lEvents
.
erase
(
pEvent
);
}
}
...
...
framework/source/services/pathsettings.cxx
Dosyayı görüntüle @
4be81de0
This diff is collapsed.
Click to expand it.
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