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
b3a2011b
Kaydet (Commit)
b3a2011b
authored
Tem 10, 2013
tarafından
Cao Cuong Ngo
Kaydeden (comit)
Cédric Bosdonnat
Eyl 02, 2013
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Cmis update properties
Change-Id: I13db07386f766019701ad9348988dcede718660c
üst
7c29619b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
14 deletions
+45
-14
dinfdlg.hxx
include/sfx2/dinfdlg.hxx
+5
-0
dinfdlg.cxx
sfx2/source/dialog/dinfdlg.cxx
+40
-14
No files found.
include/sfx2/dinfdlg.hxx
Dosyayı görüntüle @
b3a2011b
...
@@ -590,6 +590,11 @@ public:
...
@@ -590,6 +590,11 @@ public:
struct
CmisPropertyLine
struct
CmisPropertyLine
{
{
OUString
m_sId
;
bool
m_bUpdatable
;
bool
m_bRequired
;
bool
m_bMultiValued
;
bool
m_bOpenChoice
;
FixedText
m_aName
;
FixedText
m_aName
;
FixedText
m_aType
;
FixedText
m_aType
;
CmisPropertiesEdit
m_aValueEdit
;
CmisPropertiesEdit
m_aValueEdit
;
...
...
sfx2/source/dialog/dinfdlg.cxx
Dosyayı görüntüle @
b3a2011b
...
@@ -578,21 +578,33 @@ std::vector< CmisProperty* > SfxDocumentInfoItem::GetCmisProperties() const
...
@@ -578,21 +578,33 @@ std::vector< CmisProperty* > SfxDocumentInfoItem::GetCmisProperties() const
uno
::
Sequence
<
document
::
CmisProperty
>
SfxDocumentInfoItem
::
GetCmisPropertiesSeq
()
const
uno
::
Sequence
<
document
::
CmisProperty
>
SfxDocumentInfoItem
::
GetCmisPropertiesSeq
()
const
{
{
Sequence
<
document
::
CmisProperty
>
aPropertiesSeq
(
m_aCmisProperties
.
size
()
);
sal_Int32
i
=
0
;
sal_Int32
i
=
0
;
std
::
vector
<
CmisProperty
*
>::
const_iterator
pIter
;
std
::
vector
<
CmisProperty
*
>::
const_iterator
pIter
;
sal_Int32
updatableCount
=
0
,
nCount
=
0
;
for
(
pIter
=
m_aCmisProperties
.
begin
();
pIter
!=
m_aCmisProperties
.
end
();
++
pIter
,
++
i
)
{
if
(
(
*
pIter
)
->
m_bUpdatable
)
updatableCount
++
;
}
Sequence
<
document
::
CmisProperty
>
aPropertiesSeq
(
updatableCount
);
for
(
pIter
=
m_aCmisProperties
.
begin
();
for
(
pIter
=
m_aCmisProperties
.
begin
();
pIter
!=
m_aCmisProperties
.
end
();
++
pIter
,
++
i
)
pIter
!=
m_aCmisProperties
.
end
();
++
pIter
,
++
i
)
if
((
*
pIter
)
->
m_bUpdatable
)
{
{
CmisProperty
*
aProp
=
*
pIter
;
CmisProperty
*
aProp
=
*
pIter
;
aPropertiesSeq
[
i
].
Id
=
aProp
->
m_sId
;
aPropertiesSeq
[
nCount
].
Id
=
aProp
->
m_sId
;
aPropertiesSeq
[
i
].
Name
=
aProp
->
m_sName
;
aPropertiesSeq
[
nCount
].
Name
=
aProp
->
m_sName
;
aPropertiesSeq
[
i
].
Updatable
=
aProp
->
m_bUpdatable
;
aPropertiesSeq
[
nCount
].
Updatable
=
aProp
->
m_bUpdatable
;
aPropertiesSeq
[
i
].
Required
=
aProp
->
m_bRequired
;
aPropertiesSeq
[
nCount
].
Required
=
aProp
->
m_bRequired
;
aPropertiesSeq
[
i
].
MultiValued
=
aProp
->
m_bMultiValued
;
aPropertiesSeq
[
nCount
].
MultiValued
=
aProp
->
m_bMultiValued
;
aPropertiesSeq
[
i
].
OpenChoice
=
aProp
->
m_bOpenChoice
;
aPropertiesSeq
[
nCount
].
OpenChoice
=
aProp
->
m_bOpenChoice
;
aPropertiesSeq
[
i
].
Choices
=
aProp
->
m_aChoices
;
aPropertiesSeq
[
nCount
].
Choices
=
aProp
->
m_aChoices
;
aPropertiesSeq
[
i
].
Value
=
aProp
->
m_aValue
;
aPropertiesSeq
[
nCount
].
Value
=
aProp
->
m_aValue
;
nCount
++
;
}
}
return
aPropertiesSeq
;
return
aPropertiesSeq
;
...
@@ -2303,6 +2315,7 @@ void CmisPropertiesYesNoButton::Resize()
...
@@ -2303,6 +2315,7 @@ void CmisPropertiesYesNoButton::Resize()
// struct CmisPropertyLine ---------------------------------------------
// struct CmisPropertyLine ---------------------------------------------
CmisPropertyLine
::
CmisPropertyLine
(
Window
*
pParent
)
:
CmisPropertyLine
::
CmisPropertyLine
(
Window
*
pParent
)
:
m_sId
(
),
m_aName
(
pParent
,
SfxResId
(
SFX_CMIS_PROPERTY_NAME
)
),
m_aName
(
pParent
,
SfxResId
(
SFX_CMIS_PROPERTY_NAME
)
),
m_aType
(
pParent
,
SfxResId
(
SFX_CMIS_PROPERTY_TYPE
)
),
m_aType
(
pParent
,
SfxResId
(
SFX_CMIS_PROPERTY_TYPE
)
),
m_aValueEdit
(
pParent
,
SfxResId
(
SFX_CMIS_ED_PROPERTY_VALUE
),
this
),
m_aValueEdit
(
pParent
,
SfxResId
(
SFX_CMIS_ED_PROPERTY_VALUE
),
this
),
...
@@ -2501,12 +2514,19 @@ void CmisPropertiesWindow::updateLineWidth()
...
@@ -2501,12 +2514,19 @@ void CmisPropertiesWindow::updateLineWidth()
}
}
}
}
void
CmisPropertiesWindow
::
AddLine
(
const
OUString
&
/*sId*/
,
const
OUString
&
sName
,
void
CmisPropertiesWindow
::
AddLine
(
const
OUString
&
sId
,
const
OUString
&
sName
,
const
bool
bUpdatable
,
const
bool
/*bRequired*/
,
const
bool
bUpdatable
,
const
bool
bRequired
,
const
bool
/*bMultiValued*/
,
const
bool
/*bOpenChoice*/
,
const
bool
bMultiValued
,
const
bool
bOpenChoice
,
Any
&
/*aChoices*/
,
Any
&
rAny
)
Any
&
/*aChoices*/
,
Any
&
rAny
)
{
{
CmisPropertyLine
*
pNewLine
=
new
CmisPropertyLine
(
this
);
CmisPropertyLine
*
pNewLine
=
new
CmisPropertyLine
(
this
);
pNewLine
->
m_sId
=
sId
;
pNewLine
->
m_bUpdatable
=
bUpdatable
;
pNewLine
->
m_bRequired
=
bRequired
;
pNewLine
->
m_bMultiValued
=
bMultiValued
;
pNewLine
->
m_bOpenChoice
=
bOpenChoice
;
pNewLine
->
m_aValueEdit
.
SetLoseFocusHdl
(
LINK
(
this
,
CmisPropertiesWindow
,
EditLoseFocusHdl
)
);
pNewLine
->
m_aValueEdit
.
SetLoseFocusHdl
(
LINK
(
this
,
CmisPropertiesWindow
,
EditLoseFocusHdl
)
);
pNewLine
->
m_aName
.
SetAccessibleName
(
m_aName
.
GetAccessibleName
());
pNewLine
->
m_aName
.
SetAccessibleName
(
m_aName
.
GetAccessibleName
());
...
@@ -2669,6 +2689,12 @@ Sequence< document::CmisProperty > CmisPropertiesWindow::GetCmisProperties() con
...
@@ -2669,6 +2689,12 @@ Sequence< document::CmisProperty > CmisPropertiesWindow::GetCmisProperties() con
{
{
CmisPropertyLine
*
pLine
=
*
pIter
;
CmisPropertyLine
*
pLine
=
*
pIter
;
aPropertiesSeq
[
i
].
Id
=
pLine
->
m_sId
;
aPropertiesSeq
[
i
].
Updatable
=
pLine
->
m_bUpdatable
;
aPropertiesSeq
[
i
].
Required
=
pLine
->
m_bRequired
;
aPropertiesSeq
[
i
].
OpenChoice
=
pLine
->
m_bOpenChoice
;
aPropertiesSeq
[
i
].
MultiValued
=
pLine
->
m_bMultiValued
;
String
sPropertyName
=
pLine
->
m_aName
.
GetText
();
String
sPropertyName
=
pLine
->
m_aName
.
GetText
();
if
(
sPropertyName
.
Len
()
>
0
)
if
(
sPropertyName
.
Len
()
>
0
)
{
{
...
@@ -2845,7 +2871,7 @@ sal_Bool SfxCmisPropertiesPage::FillItemSet( SfxItemSet& rSet )
...
@@ -2845,7 +2871,7 @@ sal_Bool SfxCmisPropertiesPage::FillItemSet( SfxItemSet& rSet )
sal_Int32
i
=
0
,
nCount
=
aPropertySeq
.
getLength
();
sal_Int32
i
=
0
,
nCount
=
aPropertySeq
.
getLength
();
for
(
;
i
<
nCount
;
++
i
)
for
(
;
i
<
nCount
;
++
i
)
{
{
if
(
!
aPropertySeq
[
i
].
Name
.
isEmpty
()
)
if
(
!
aPropertySeq
[
i
].
Id
.
isEmpty
()
)
pInfo
->
AddCmisProperty
(
aPropertySeq
[
i
].
Id
,
pInfo
->
AddCmisProperty
(
aPropertySeq
[
i
].
Id
,
aPropertySeq
[
i
].
Name
,
aPropertySeq
[
i
].
Name
,
aPropertySeq
[
i
].
Updatable
,
aPropertySeq
[
i
].
Updatable
,
...
...
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