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
228051c1
Kaydet (Commit)
228051c1
authored
Eki 18, 2011
tarafından
Cédric Bosdonnat
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Reapply "CMIS: use another name to show than the one extracted from the base URL
This reverts commit
4901bdf4
.
üst
538d29f5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
5 deletions
+25
-5
sfxbasemodel.cxx
sfx2/source/doc/sfxbasemodel.cxx
+19
-3
cmis_content.cxx
ucb/source/ucp/cmis/cmis_content.cxx
+6
-2
No files found.
sfx2/source/doc/sfxbasemodel.cxx
Dosyayı görüntüle @
228051c1
...
...
@@ -55,6 +55,7 @@
#include <com/sun/star/document/XStorageChangeListener.hpp>
#include <com/sun/star/document/XActionLockable.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/XPropertySetInfo.hpp>
#include <com/sun/star/container/XIndexContainer.hpp>
#include <com/sun/star/script/provider/XScriptProviderFactory.hpp>
#include <com/sun/star/script/provider/XScriptProvider.hpp>
...
...
@@ -65,6 +66,7 @@
#include <com/sun/star/embed/Aspects.hpp>
#include <com/sun/star/document/XDocumentProperties.hpp>
#include <com/sun/star/frame/XTransientDocumentsDocumentContentFactory.hpp>
#include <com/sun/star/ucb/XCommandEnvironment.hpp>
#include <comphelper/enumhelper.hxx> // can be removed when this is a "real" service
#include <cppuhelper/interfacecontainer.hxx>
...
...
@@ -3769,9 +3771,23 @@ css::uno::Reference< css::frame::XUntitledNumbers > SfxBaseModel::impl_getUntitl
SfxMedium
*
pMedium
=
m_pData
->
m_pObjectShell
->
GetMedium
();
if
(
pMedium
)
{
SFX_ITEMSET_ARG
(
pMedium
->
GetItemSet
(),
pRepairedDocItem
,
SfxBoolItem
,
SID_REPAIRPACKAGE
,
sal_False
);
if
(
pRepairedDocItem
&&
pRepairedDocItem
->
GetValue
()
)
aResult
+=
String
(
SfxResId
(
STR_REPAIREDDOCUMENT
)
);
::
ucbhelper
::
Content
aContent
(
pMedium
->
GetName
(),
com
::
sun
::
star
::
uno
::
Reference
<
ucb
::
XCommandEnvironment
>
()
);
com
::
sun
::
star
::
uno
::
Reference
<
beans
::
XPropertySetInfo
>
xProps
=
aContent
.
getProperties
();
if
(
xProps
.
is
()
)
{
::
rtl
::
OUString
aServerTitle
(
RTL_CONSTASCII_USTRINGPARAM
(
"TitleOnServer"
)
);
if
(
xProps
->
hasPropertyByName
(
aServerTitle
)
)
{
uno
::
Any
aAny
=
aContent
.
getPropertyValue
(
aServerTitle
);
aAny
>>=
aResult
;
}
}
else
{
SFX_ITEMSET_ARG
(
pMedium
->
GetItemSet
(),
pRepairedDocItem
,
SfxBoolItem
,
SID_REPAIRPACKAGE
,
sal_False
);
if
(
pRepairedDocItem
&&
pRepairedDocItem
->
GetValue
()
)
aResult
+=
String
(
SfxResId
(
STR_REPAIREDDOCUMENT
)
);
}
}
if
(
m_pData
->
m_pObjectShell
->
IsReadOnlyUI
()
||
(
pMedium
&&
pMedium
->
IsReadOnly
())
)
...
...
ucb/source/ucp/cmis/cmis_content.cxx
Dosyayı görüntüle @
228051c1
...
...
@@ -126,6 +126,9 @@ namespace cmis
for
(
sal_Int32
n
=
0
;
n
<
nProps
;
++
n
)
{
const
beans
::
Property
&
rProp
=
pProps
[
n
];
#if OSL_DEBUG_LEVEL > 1
fprintf
(
stderr
,
"Property: %s
\n
"
,
rtl
::
OUStringToOString
(
rProp
.
Name
,
RTL_TEXTENCODING_UTF8
).
getStr
()
);
#endif
if
(
rProp
.
Name
.
equalsAsciiL
(
RTL_CONSTASCII_STRINGPARAM
(
"IsDocument"
)
)
)
{
...
...
@@ -141,8 +144,9 @@ namespace cmis
else
xRow
->
appendVoid
(
rProp
);
}
else
if
(
rProp
.
Name
.
equalsAsciiL
(
RTL_CONSTASCII_STRINGPARAM
(
"Title"
)
)
)
else
if
(
rProp
.
Name
.
equalsAsciiL
(
RTL_CONSTASCII_STRINGPARAM
(
"Title
OnServer
"
)
)
)
{
// TODO Set the path instead of the name
xRow
->
appendString
(
rProp
,
rtl
::
OUString
::
createFromAscii
(
m_pObject
->
getName
().
c_str
()
)
);
}
else
if
(
rProp
.
Name
.
equalsAsciiL
(
RTL_CONSTASCII_STRINGPARAM
(
"IsReadOnly"
)
)
)
...
...
@@ -354,7 +358,7 @@ namespace cmis
beans
::
Property
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"IsFolder"
)
),
-
1
,
getCppuBooleanType
(),
beans
::
PropertyAttribute
::
BOUND
|
beans
::
PropertyAttribute
::
READONLY
),
beans
::
Property
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"Title"
)
),
beans
::
Property
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"Title
OnServer
"
)
),
-
1
,
getCppuType
(
static_cast
<
const
rtl
::
OUString
*
>
(
0
)
),
beans
::
PropertyAttribute
::
BOUND
),
beans
::
Property
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"IsReadOnly"
)
),
...
...
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