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
4deddf20
Kaydet (Commit)
4deddf20
authored
Şub 05, 2013
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
String to OUString.
Change-Id: I3a0eff8ca0c8b654a38ee2df1022ca162bcb67aa
üst
66f8bbc1
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
23 additions
and
25 deletions
+23
-25
scdetect.cxx
sc/source/ui/unoobj/scdetect.cxx
+1
-1
sddetect.cxx
sd/source/ui/unoidl/sddetect.cxx
+1
-1
docfilt.hxx
sfx2/inc/sfx2/docfilt.hxx
+7
-7
docfile.cxx
sfx2/source/doc/docfile.cxx
+1
-1
docfilt.cxx
sfx2/source/doc/docfilt.cxx
+11
-13
smdetect.cxx
starmath/source/smdetect.cxx
+1
-1
swdetect.cxx
sw/source/ui/uno/swdetect.cxx
+1
-1
No files found.
sc/source/ui/unoobj/scdetect.cxx
Dosyayı görüntüle @
4deddf20
...
...
@@ -379,7 +379,7 @@ static sal_Bool lcl_MayBeDBase( SvStream& rStream )
{
try
{
String
aFilterName
;
OU
String
aFilterName
;
if
(
pFilter
)
aFilterName
=
pFilter
->
GetName
();
aTypeName
=
SfxFilter
::
GetTypeFromStorage
(
xStorage
,
pFilter
?
pFilter
->
IsOwnTemplateFormat
()
:
false
,
&
aFilterName
);
...
...
sd/source/ui/unoidl/sddetect.cxx
Dosyayı görüntüle @
4deddf20
...
...
@@ -254,7 +254,7 @@ SdFilterDetect::~SdFilterDetect()
// the storage can be corrupted and it will be detected here
try
{
String
sFilterName
;
OU
String
sFilterName
;
if
(
pFilter
)
sFilterName
=
pFilter
->
GetName
();
aTypeName
=
SfxFilter
::
GetTypeFromStorage
(
xStorage
,
pFilter
?
pFilter
->
IsOwnTemplateFormat
()
:
sal_False
,
&
sFilterName
);
...
...
sfx2/inc/sfx2/docfilt.hxx
Dosyayı görüntüle @
4deddf20
...
...
@@ -101,13 +101,13 @@ public:
static
const
SfxFilter
*
GetFilterByName
(
const
String
&
rName
);
static
const
SfxFilter
*
GetDefaultFilterFromFactory
(
const
String
&
rServiceName
);
static
String
GetTypeFromStorage
(
const
SotStorage
&
rStg
);
static
String
GetTypeFromStorage
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
embed
::
XStorage
>&
xStorage
,
sal_Bool
bTemplate
=
sal_Fals
e
,
String
*
pName
=
0
)
throw
(
::
com
::
sun
::
star
::
beans
::
UnknownPropertyException
,
::
com
::
sun
::
star
::
lang
::
WrappedTargetException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
static
OUString
GetTypeFromStorage
(
const
SotStorage
&
rStg
);
static
OUString
GetTypeFromStorage
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
embed
::
XStorage
>&
xStorag
e
,
bool
bTemplate
=
false
,
OUString
*
pName
=
NULL
)
throw
(
com
::
sun
::
star
::
beans
::
UnknownPropertyException
,
com
::
sun
::
star
::
lang
::
WrappedTargetException
,
com
::
sun
::
star
::
uno
::
RuntimeException
);
};
#endif
...
...
sfx2/source/doc/docfile.cxx
Dosyayı görüntüle @
4deddf20
...
...
@@ -2933,7 +2933,7 @@ SfxMedium::SfxMedium( const ::com::sun::star::uno::Sequence< ::com::sun::star::b
SfxMedium
::
SfxMedium
(
const
uno
::
Reference
<
embed
::
XStorage
>&
rStor
,
const
String
&
rBaseURL
,
const
SfxItemSet
*
p
)
:
pImp
(
new
SfxMedium_Impl
(
this
))
{
String
aType
=
SfxFilter
::
GetTypeFromStorage
(
rStor
);
OUString
aType
=
SfxFilter
::
GetTypeFromStorage
(
rStor
);
pImp
->
m_pFilter
=
SFX_APP
()
->
GetFilterMatcher
().
GetFilter4EA
(
aType
);
DBG_ASSERT
(
pImp
->
m_pFilter
,
"No Filter for storage found!"
);
...
...
sfx2/source/doc/docfilt.cxx
Dosyayı görüntüle @
4deddf20
...
...
@@ -124,7 +124,7 @@ const SfxFilter* SfxFilter::GetFilterByName( const String& rName )
return
aMatch
.
GetFilter4FilterName
(
rName
,
0
,
0
);
}
String
SfxFilter
::
GetTypeFromStorage
(
const
SotStorage
&
rStg
)
OU
String
SfxFilter
::
GetTypeFromStorage
(
const
SotStorage
&
rStg
)
{
const
char
*
pType
=
0
;
if
(
rStg
.
IsStream
(
rtl
::
OUString
(
"WordDocument"
)
)
)
...
...
@@ -164,26 +164,24 @@ String SfxFilter::GetTypeFromStorage( const SotStorage& rStg )
return
pType
?
rtl
::
OUString
::
createFromAscii
(
pType
)
:
rtl
::
OUString
();
}
String
SfxFilter
::
GetTypeFromStorage
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
embed
::
XStorage
>&
xStorage
,
sal_Bool
bTemplate
,
String
*
pFilterName
)
throw
(
beans
::
UnknownPropertyException
,
lang
::
WrappedTargetException
,
uno
::
RuntimeException
)
OUString
SfxFilter
::
GetTypeFromStorage
(
const
uno
::
Reference
<
embed
::
XStorage
>&
xStorage
,
bool
bTemplate
,
OUString
*
pFilterName
)
throw
(
beans
::
UnknownPropertyException
,
lang
::
WrappedTargetException
,
uno
::
RuntimeException
)
{
SfxFilterMatcher
aMatcher
;
const
char
*
pType
=
0
;
String
aName
;
OU
String
aName
;
if
(
pFilterName
)
{
aName
=
*
pFilterName
;
pFilterName
->
Erase
();
*
pFilterName
=
OUString
();
}
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
beans
::
XPropertySet
>
xProps
(
xStorage
,
com
::
sun
::
star
::
uno
::
UNO_QUERY
);
if
(
xProps
.
is
()
)
{
::
rtl
::
OUString
aMediaType
;
xProps
->
getPropertyValue
(
::
rtl
::
OUString
(
"MediaType"
)
)
>>=
aMediaType
;
OUString
aMediaType
;
xProps
->
getPropertyValue
(
"MediaType"
)
>>=
aMediaType
;
if
(
!
aMediaType
.
isEmpty
()
)
{
::
com
::
sun
::
star
::
datatransfer
::
DataFlavor
aDataFlavor
;
...
...
@@ -200,7 +198,7 @@ String SfxFilter::GetTypeFromStorage( const com::sun::star::uno::Reference< com:
nDont
|=
SFX_FILTER_TEMPLATEPATH
;
const
SfxFilter
*
pFilter
=
0
;
if
(
aName
.
Len
()
)
if
(
!
aName
.
isEmpty
()
)
// get preselected Filter if it matches the desired filter flags
pFilter
=
aMatcher
.
GetFilter4FilterName
(
aName
,
nMust
,
nDont
);
...
...
@@ -226,10 +224,10 @@ String SfxFilter::GetTypeFromStorage( const com::sun::star::uno::Reference< com:
//TODO: do it without SfxFilter
//TODO/LATER: don't yield FilterName, should be done in FWK!
String
aRet
;
OU
String
aRet
;
if
(
pType
)
{
aRet
=
rtl
::
OUString
::
createFromAscii
(
pType
);
aRet
=
OUString
::
createFromAscii
(
pType
);
if
(
pFilterName
)
*
pFilterName
=
aMatcher
.
GetFilter4EA
(
aRet
)
->
GetName
();
}
...
...
starmath/source/smdetect.cxx
Dosyayı görüntüle @
4deddf20
...
...
@@ -224,7 +224,7 @@ SmFilterDetect::~SmFilterDetect()
const
SfxFilter
*
pFilter
=
aPreselectedFilterName
.
Len
()
?
SfxFilterMatcher
().
GetFilter4FilterName
(
aPreselectedFilterName
)
:
aTypeName
.
Len
()
?
SfxFilterMatcher
(
rtl
::
OUString
(
"smath"
)).
GetFilter4EA
(
aTypeName
)
:
0
;
String
aTmpFilterName
;
OU
String
aTmpFilterName
;
if
(
pFilter
)
aTmpFilterName
=
pFilter
->
GetName
();
aTypeName
=
SfxFilter
::
GetTypeFromStorage
(
xStorage
,
pFilter
?
pFilter
->
IsAllowedAsTemplate
()
:
sal_False
,
&
aTmpFilterName
);
...
...
sw/source/ui/uno/swdetect.cxx
Dosyayı görüntüle @
4deddf20
...
...
@@ -231,7 +231,7 @@ SwFilterDetect::~SwFilterDetect()
SfxFilterMatcher
(
rtl
::
OUString
(
"swriter"
)).
GetFilter4EA
(
aTypeName
)
:
0
;
if
(
!
pPreFilter
)
pPreFilter
=
SfxFilterMatcher
(
rtl
::
OUString
(
"sweb"
)).
GetFilter4EA
(
aTypeName
);
String
aFilterName
;
OU
String
aFilterName
;
if
(
pPreFilter
)
{
aFilterName
=
pPreFilter
->
GetName
();
...
...
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