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
862f694f
Kaydet (Commit)
862f694f
authored
Ock 21, 2013
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix spelling misteak
Change-Id: Ie5d3564cf00c27c11597dd3ff1ba8dc82e250c0b
üst
ee860cbf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
23 deletions
+23
-23
guisaveas.cxx
sfx2/source/doc/guisaveas.cxx
+23
-23
No files found.
sfx2/source/doc/guisaveas.cxx
Dosyayı görüntüle @
862f694f
...
@@ -298,8 +298,8 @@ public:
...
@@ -298,8 +298,8 @@ public:
sal_Bool
ShowDocumentInfoDialog
();
sal_Bool
ShowDocumentInfoDialog
();
::
rtl
::
OUString
GetRec
co
mendedDir
(
const
::
rtl
::
OUString
&
aSuggestedDir
);
::
rtl
::
OUString
GetRec
om
mendedDir
(
const
::
rtl
::
OUString
&
aSuggestedDir
);
::
rtl
::
OUString
GetRec
co
mendedName
(
const
::
rtl
::
OUString
&
aSuggestedName
,
::
rtl
::
OUString
GetRec
om
mendedName
(
const
::
rtl
::
OUString
&
aSuggestedName
,
const
::
rtl
::
OUString
&
aTypeName
);
const
::
rtl
::
OUString
&
aTypeName
);
};
};
...
@@ -946,12 +946,12 @@ sal_Bool ModelData_Impl::OutputFileDialog( sal_Int8 nStoreMode,
...
@@ -946,12 +946,12 @@ sal_Bool ModelData_Impl::OutputFileDialog( sal_Int8 nStoreMode,
}
}
}
}
::
rtl
::
OUString
aRec
comendedDir
=
GetRecco
mendedDir
(
aSuggestedDir
);
::
rtl
::
OUString
aRec
ommendedDir
=
GetRecom
mendedDir
(
aSuggestedDir
);
if
(
!
aRec
co
mendedDir
.
isEmpty
()
)
if
(
!
aRec
om
mendedDir
.
isEmpty
()
)
pFileDlg
->
SetDisplayFolder
(
aRec
co
mendedDir
);
pFileDlg
->
SetDisplayFolder
(
aRec
om
mendedDir
);
::
rtl
::
OUString
aRec
comendedName
=
GetRecco
mendedName
(
aSuggestedName
,
aAdjustToType
);
::
rtl
::
OUString
aRec
ommendedName
=
GetRecom
mendedName
(
aSuggestedName
,
aAdjustToType
);
if
(
!
aRec
co
mendedName
.
isEmpty
()
)
if
(
!
aRec
om
mendedName
.
isEmpty
()
)
pFileDlg
->
SetFileName
(
aRec
co
mendedName
);
pFileDlg
->
SetFileName
(
aRec
om
mendedName
);
uno
::
Reference
<
view
::
XSelectionSupplier
>
xSel
(
GetModel
()
->
getCurrentController
(),
uno
::
UNO_QUERY
);
uno
::
Reference
<
view
::
XSelectionSupplier
>
xSel
(
GetModel
()
->
getCurrentController
(),
uno
::
UNO_QUERY
);
if
(
xSel
.
is
()
&&
xSel
->
getSelection
().
hasValue
()
)
if
(
xSel
.
is
()
&&
xSel
->
getSelection
().
hasValue
()
)
...
@@ -1133,9 +1133,9 @@ sal_Bool ModelData_Impl::ShowDocumentInfoDialog()
...
@@ -1133,9 +1133,9 @@ sal_Bool ModelData_Impl::ShowDocumentInfoDialog()
}
}
//-------------------------------------------------------------------------
//-------------------------------------------------------------------------
::
rtl
::
OUString
ModelData_Impl
::
GetRec
co
mendedDir
(
const
::
rtl
::
OUString
&
aSuggestedDir
)
::
rtl
::
OUString
ModelData_Impl
::
GetRec
om
mendedDir
(
const
::
rtl
::
OUString
&
aSuggestedDir
)
{
{
::
rtl
::
OUString
aRec
co
mendedDir
;
::
rtl
::
OUString
aRec
om
mendedDir
;
if
(
(
!
aSuggestedDir
.
isEmpty
()
||
GetStorable
()
->
hasLocation
()
)
if
(
(
!
aSuggestedDir
.
isEmpty
()
||
GetStorable
()
->
hasLocation
()
)
&&
!
GetMediaDescr
().
getUnpackedValueOrDefault
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"RepairPackage"
)),
&&
!
GetMediaDescr
().
getUnpackedValueOrDefault
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"RepairPackage"
)),
...
@@ -1160,36 +1160,36 @@ sal_Bool ModelData_Impl::ShowDocumentInfoDialog()
...
@@ -1160,36 +1160,36 @@ sal_Bool ModelData_Impl::ShowDocumentInfoDialog()
aLocation
.
setFinalSlash
();
aLocation
.
setFinalSlash
();
if
(
!
aLocation
.
HasError
()
)
if
(
!
aLocation
.
HasError
()
)
aRec
co
mendedDir
=
aLocation
.
GetMainURL
(
INetURLObject
::
NO_DECODE
);
aRec
om
mendedDir
=
aLocation
.
GetMainURL
(
INetURLObject
::
NO_DECODE
);
}
}
else
else
{
{
aRec
co
mendedDir
=
INetURLObject
(
SvtPathOptions
().
GetWorkPath
()
).
GetMainURL
(
INetURLObject
::
NO_DECODE
);
aRec
om
mendedDir
=
INetURLObject
(
SvtPathOptions
().
GetWorkPath
()
).
GetMainURL
(
INetURLObject
::
NO_DECODE
);
}
}
return
aRec
co
mendedDir
;
return
aRec
om
mendedDir
;
}
}
//-------------------------------------------------------------------------
//-------------------------------------------------------------------------
::
rtl
::
OUString
ModelData_Impl
::
GetRec
co
mendedName
(
const
::
rtl
::
OUString
&
aSuggestedName
,
const
::
rtl
::
OUString
&
aTypeName
)
::
rtl
::
OUString
ModelData_Impl
::
GetRec
om
mendedName
(
const
::
rtl
::
OUString
&
aSuggestedName
,
const
::
rtl
::
OUString
&
aTypeName
)
{
{
// the last used name might be provided by aSuggestedName from the old selection, or from the MediaDescriptor
// the last used name might be provided by aSuggestedName from the old selection, or from the MediaDescriptor
::
rtl
::
OUString
aRec
co
mendedName
;
::
rtl
::
OUString
aRec
om
mendedName
;
if
(
!
aSuggestedName
.
isEmpty
()
)
if
(
!
aSuggestedName
.
isEmpty
()
)
aRec
co
mendedName
=
aSuggestedName
;
aRec
om
mendedName
=
aSuggestedName
;
else
else
{
{
aRec
co
mendedName
=
INetURLObject
(
GetStorable
()
->
getLocation
()
).
GetName
(
INetURLObject
::
DECODE_WITH_CHARSET
);
aRec
om
mendedName
=
INetURLObject
(
GetStorable
()
->
getLocation
()
).
GetName
(
INetURLObject
::
DECODE_WITH_CHARSET
);
if
(
aRec
co
mendedName
.
isEmpty
()
)
if
(
aRec
om
mendedName
.
isEmpty
()
)
{
{
try
{
try
{
uno
::
Reference
<
frame
::
XTitle
>
xTitle
(
GetModel
(),
uno
::
UNO_QUERY_THROW
);
uno
::
Reference
<
frame
::
XTitle
>
xTitle
(
GetModel
(),
uno
::
UNO_QUERY_THROW
);
aRec
co
mendedName
=
xTitle
->
getTitle
();
aRec
om
mendedName
=
xTitle
->
getTitle
();
}
catch
(
const
uno
::
Exception
&
)
{}
}
catch
(
const
uno
::
Exception
&
)
{}
}
}
if
(
!
aRec
co
mendedName
.
isEmpty
()
&&
!
aTypeName
.
isEmpty
()
)
if
(
!
aRec
om
mendedName
.
isEmpty
()
&&
!
aTypeName
.
isEmpty
()
)
{
{
// adjust the extension to the type
// adjust the extension to the type
uno
::
Reference
<
container
::
XNameAccess
>
xTypeDetection
=
uno
::
Reference
<
container
::
XNameAccess
>
(
uno
::
Reference
<
container
::
XNameAccess
>
xTypeDetection
=
uno
::
Reference
<
container
::
XNameAccess
>
(
...
@@ -1197,7 +1197,7 @@ sal_Bool ModelData_Impl::ShowDocumentInfoDialog()
...
@@ -1197,7 +1197,7 @@ sal_Bool ModelData_Impl::ShowDocumentInfoDialog()
uno
::
UNO_QUERY
);
uno
::
UNO_QUERY
);
if
(
xTypeDetection
.
is
()
)
if
(
xTypeDetection
.
is
()
)
{
{
INetURLObject
aObj
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"file:///c:/"
)
)
+
aRec
co
mendedName
);
INetURLObject
aObj
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"file:///c:/"
)
)
+
aRec
om
mendedName
);
uno
::
Sequence
<
beans
::
PropertyValue
>
aTypeNameProps
;
uno
::
Sequence
<
beans
::
PropertyValue
>
aTypeNameProps
;
if
(
(
xTypeDetection
->
getByName
(
aTypeName
)
>>=
aTypeNameProps
)
&&
aTypeNameProps
.
getLength
()
)
if
(
(
xTypeDetection
->
getByName
(
aTypeName
)
>>=
aTypeNameProps
)
&&
aTypeNameProps
.
getLength
()
)
...
@@ -1210,12 +1210,12 @@ sal_Bool ModelData_Impl::ShowDocumentInfoDialog()
...
@@ -1210,12 +1210,12 @@ sal_Bool ModelData_Impl::ShowDocumentInfoDialog()
aObj
.
SetExtension
(
aExtensions
[
0
]
);
aObj
.
SetExtension
(
aExtensions
[
0
]
);
}
}
aRec
co
mendedName
=
aObj
.
GetName
(
INetURLObject
::
DECODE_WITH_CHARSET
);
aRec
om
mendedName
=
aObj
.
GetName
(
INetURLObject
::
DECODE_WITH_CHARSET
);
}
}
}
}
}
}
return
aRec
co
mendedName
;
return
aRec
om
mendedName
;
}
}
...
...
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