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
8adec08d
Kaydet (Commit)
8adec08d
authored
Nis 18, 2012
tarafından
Olivier Hallot
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
More RTL_CONSTASCII conversions
üst
640d0064
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
23 deletions
+20
-23
strmname.h
sd/inc/strmname.h
+10
-10
docshel4.cxx
sd/source/ui/docshell/docshel4.cxx
+10
-13
No files found.
sd/inc/strmname.h
Dosyayı görüntüle @
8adec08d
...
@@ -30,24 +30,24 @@
...
@@ -30,24 +30,24 @@
#define _SD_STRMNAME_H
#define _SD_STRMNAME_H
// Alter Name des Dokument-Streams
// Alter Name des Dokument-Streams
static
const
String
pStarDrawDoc
(
RTL_CONSTASCII_USTRINGPARAM
(
"StarDrawDocument"
)
);
static
const
rtl
::
OUString
pStarDrawDoc
(
"StarDrawDocument"
);
// Name des Dokument-Streams
// Name des Dokument-Streams
static
const
String
pStarDrawDoc3
(
RTL_CONSTASCII_USTRINGPARAM
(
"StarDrawDocument3"
)
);
static
const
rtl
::
OUString
pStarDrawDoc3
(
"StarDrawDocument3"
);
// Sonstige
// Sonstige
static
const
String
pSfxStyleSheets
(
RTL_CONSTASCII_USTRINGPARAM
(
"SfxStyleSheets"
)
);
static
const
rtl
::
OUString
pSfxStyleSheets
(
"SfxStyleSheets"
);
static
const
String
pVCItemPoolName
(
RTL_CONSTASCII_USTRINGPARAM
(
"VCPool"
)
);
static
const
rtl
::
OUString
pVCItemPoolName
(
"VCPool"
);
static
const
String
pPreviewName
(
RTL_CONSTASCII_USTRINGPARAM
(
"StarDrawTemplatePreview"
)
);
static
const
rtl
::
OUString
pPreviewName
(
"StarDrawTemplatePreview"
);
// PowerPoint-Filter
// PowerPoint-Filter
static
const
String
pFilterPowerPoint97
(
RTL_CONSTASCII_USTRINGPARAM
(
"MS PowerPoint 97"
)
);
static
const
rtl
::
OUString
pFilterPowerPoint97
(
"MS PowerPoint 97"
);
static
const
String
pFilterPowerPoint97Template
(
RTL_CONSTASCII_USTRINGPARAM
(
"MS PowerPoint 97 Vorlage"
)
);
static
const
rtl
::
OUString
pFilterPowerPoint97Template
(
"MS PowerPoint 97 Vorlage"
);
static
const
String
pFilterPowerPoint97AutoPlay
(
RTL_CONSTASCII_USTRINGPARAM
(
"MS PowerPoint 97 AutoPlay"
)
);
static
const
rtl
::
OUString
pFilterPowerPoint97AutoPlay
(
"MS PowerPoint 97 AutoPlay"
);
// XML content stream
// XML content stream
static
const
String
pStarDrawXMLContent
(
RTL_CONSTASCII_USTRINGPARAM
(
"content.xml"
)
);
static
const
rtl
::
OUString
pStarDrawXMLContent
(
"content.xml"
);
static
const
String
pStarDrawOldXMLContent
(
RTL_CONSTASCII_USTRINGPARAM
(
"Content.xml"
)
);
static
const
rtl
::
OUString
pStarDrawOldXMLContent
(
"Content.xml"
);
#endif // _SD_STRMNAME_H
#endif // _SD_STRMNAME_H
...
...
sd/source/ui/docshell/docshel4.cxx
Dosyayı görüntüle @
8adec08d
...
@@ -440,7 +440,7 @@ sal_Bool DrawDocShell::ConvertFrom( SfxMedium& rMedium )
...
@@ -440,7 +440,7 @@ sal_Bool DrawDocShell::ConvertFrom( SfxMedium& rMedium )
{
{
mbNewDocument
=
sal_False
;
mbNewDocument
=
sal_False
;
const
String
aFilterName
(
rMedium
.
GetFilter
()
->
GetFilterName
()
);
const
rtl
::
OU
String
aFilterName
(
rMedium
.
GetFilter
()
->
GetFilterName
()
);
sal_Bool
bRet
=
sal_False
;
sal_Bool
bRet
=
sal_False
;
bool
bStartPresentation
=
false
;
bool
bStartPresentation
=
false
;
...
@@ -469,8 +469,7 @@ sal_Bool DrawDocShell::ConvertFrom( SfxMedium& rMedium )
...
@@ -469,8 +469,7 @@ sal_Bool DrawDocShell::ConvertFrom( SfxMedium& rMedium )
mpDoc
->
StopWorkStartupDelay
();
mpDoc
->
StopWorkStartupDelay
();
bRet
=
SdPPTFilter
(
rMedium
,
*
this
,
sal_True
).
Import
();
bRet
=
SdPPTFilter
(
rMedium
,
*
this
,
sal_True
).
Import
();
}
}
else
if
(
aFilterName
.
SearchAscii
(
"impress8"
)
!=
STRING_NOTFOUND
||
else
if
(
aFilterName
.
match
(
"impress8"
)
||
aFilterName
.
match
(
"draw8"
))
aFilterName
.
SearchAscii
(
"draw8"
)
!=
STRING_NOTFOUND
)
{
{
// TODO/LATER: nobody is interested in the error code?!
// TODO/LATER: nobody is interested in the error code?!
mpDoc
->
CreateFirstPages
();
mpDoc
->
CreateFirstPages
();
...
@@ -479,7 +478,7 @@ sal_Bool DrawDocShell::ConvertFrom( SfxMedium& rMedium )
...
@@ -479,7 +478,7 @@ sal_Bool DrawDocShell::ConvertFrom( SfxMedium& rMedium )
bRet
=
SdXMLFilter
(
rMedium
,
*
this
,
sal_True
).
Import
(
nError
);
bRet
=
SdXMLFilter
(
rMedium
,
*
this
,
sal_True
).
Import
(
nError
);
}
}
else
if
(
aFilterName
.
SearchAscii
(
"StarOffice XML (Draw)"
)
!=
STRING_NOTFOUND
||
aFilterName
.
SearchAscii
(
"StarOffice XML (Impress)"
)
!=
STRING_NOTFOUND
)
else
if
(
aFilterName
.
match
(
"StarOffice XML (Draw)"
)
||
aFilterName
.
match
(
"StarOffice XML (Impress)"
)
)
{
{
// TODO/LATER: nobody is interested in the error code?!
// TODO/LATER: nobody is interested in the error code?!
mpDoc
->
CreateFirstPages
();
mpDoc
->
CreateFirstPages
();
...
@@ -487,7 +486,7 @@ sal_Bool DrawDocShell::ConvertFrom( SfxMedium& rMedium )
...
@@ -487,7 +486,7 @@ sal_Bool DrawDocShell::ConvertFrom( SfxMedium& rMedium )
ErrCode
nError
=
ERRCODE_NONE
;
ErrCode
nError
=
ERRCODE_NONE
;
bRet
=
SdXMLFilter
(
rMedium
,
*
this
,
sal_True
,
SDXMLMODE_Normal
,
SOFFICE_FILEFORMAT_60
).
Import
(
nError
);
bRet
=
SdXMLFilter
(
rMedium
,
*
this
,
sal_True
,
SDXMLMODE_Normal
,
SOFFICE_FILEFORMAT_60
).
Import
(
nError
);
}
}
else
if
(
aFilterName
.
EqualsAscii
(
"CGM - Computer Graphics Metafile"
)
)
else
if
(
aFilterName
.
equals
(
"CGM - Computer Graphics Metafile"
)
)
{
{
mpDoc
->
CreateFirstPages
();
mpDoc
->
CreateFirstPages
();
mpDoc
->
StopWorkStartupDelay
();
mpDoc
->
StopWorkStartupDelay
();
...
@@ -593,30 +592,28 @@ sal_Bool DrawDocShell::ConvertTo( SfxMedium& rMedium )
...
@@ -593,30 +592,28 @@ sal_Bool DrawDocShell::ConvertTo( SfxMedium& rMedium )
if
(
mpDoc
->
GetPageCount
()
)
if
(
mpDoc
->
GetPageCount
()
)
{
{
const
SfxFilter
*
pMediumFilter
=
rMedium
.
GetFilter
();
const
SfxFilter
*
pMediumFilter
=
rMedium
.
GetFilter
();
const
String
aTypeName
(
pMediumFilter
->
GetTypeName
()
);
const
rtl
::
OUString
aTypeName
(
pMediumFilter
->
GetTypeName
()
);
SdFilter
*
pFilter
=
NULL
;
SdFilter
*
pFilter
=
NULL
;
if
(
aTypeName
.
SearchAscii
(
"graphic_HTML"
)
!=
STRING_NOTFOUND
)
if
(
aTypeName
.
match
(
"graphic_HTML"
)
)
{
{
pFilter
=
new
SdHTMLFilter
(
rMedium
,
*
this
,
sal_True
);
pFilter
=
new
SdHTMLFilter
(
rMedium
,
*
this
,
sal_True
);
}
}
else
if
(
aTypeName
.
SearchAscii
(
"MS_PowerPoint_97"
)
!=
STRING_NOTFOUND
)
else
if
(
aTypeName
.
match
(
"MS_PowerPoint_97"
)
)
{
{
pFilter
=
new
SdPPTFilter
(
rMedium
,
*
this
,
sal_True
);
pFilter
=
new
SdPPTFilter
(
rMedium
,
*
this
,
sal_True
);
((
SdPPTFilter
*
)
pFilter
)
->
PreSaveBasic
();
((
SdPPTFilter
*
)
pFilter
)
->
PreSaveBasic
();
}
}
else
if
(
aTypeName
.
SearchAscii
(
"CGM_Computer_Graphics_Metafile"
)
!=
STRING_NOTFOUND
)
else
if
(
aTypeName
.
match
(
"CGM_Computer_Graphics_Metafile"
)
)
{
{
pFilter
=
new
SdCGMFilter
(
rMedium
,
*
this
,
sal_True
);
pFilter
=
new
SdCGMFilter
(
rMedium
,
*
this
,
sal_True
);
}
}
else
if
(
(
aTypeName
.
SearchAscii
(
"draw8"
)
!=
STRING_NOTFOUND
)
||
else
if
(
aTypeName
.
match
(
"draw8"
)
||
aTypeName
.
match
(
"impress8"
)
)
(
aTypeName
.
SearchAscii
(
"impress8"
)
!=
STRING_NOTFOUND
)
)
{
{
pFilter
=
new
SdXMLFilter
(
rMedium
,
*
this
,
sal_True
);
pFilter
=
new
SdXMLFilter
(
rMedium
,
*
this
,
sal_True
);
UpdateDocInfoForSave
();
UpdateDocInfoForSave
();
}
}
else
if
(
(
aTypeName
.
SearchAscii
(
"StarOffice_XML_Impress"
)
!=
STRING_NOTFOUND
)
||
else
if
(
aTypeName
.
match
(
"StarOffice_XML_Impress"
)
||
aTypeName
.
match
(
"StarOffice_XML_Draw"
)
)
(
aTypeName
.
SearchAscii
(
"StarOffice_XML_Draw"
)
!=
STRING_NOTFOUND
)
)
{
{
pFilter
=
new
SdXMLFilter
(
rMedium
,
*
this
,
sal_True
,
SDXMLMODE_Normal
,
SOFFICE_FILEFORMAT_60
);
pFilter
=
new
SdXMLFilter
(
rMedium
,
*
this
,
sal_True
,
SDXMLMODE_Normal
,
SOFFICE_FILEFORMAT_60
);
UpdateDocInfoForSave
();
UpdateDocInfoForSave
();
...
...
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