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
40b4567b
Kaydet (Commit)
40b4567b
authored
Agu 07, 2013
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: convert SwCondCollItem to OUString
Change-Id: Id3efca3f1cb555ec995973b8a5bdd2a78318e18f
üst
df7ffcdb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
10 deletions
+11
-10
ccoll.hxx
sw/inc/ccoll.hxx
+3
-3
unostyle.cxx
sw/source/core/unocore/unostyle.cxx
+1
-2
ccoll.cxx
sw/source/ui/chrdlg/ccoll.cxx
+7
-5
No files found.
sw/inc/ccoll.hxx
Dosyayı görüntüle @
40b4567b
...
@@ -62,7 +62,7 @@ class SW_DLLPUBLIC SwCondCollItem : public SfxPoolItem
...
@@ -62,7 +62,7 @@ class SW_DLLPUBLIC SwCondCollItem : public SfxPoolItem
{
{
static
const
CommandStruct
aCmds
[
COND_COMMAND_COUNT
];
static
const
CommandStruct
aCmds
[
COND_COMMAND_COUNT
];
String
sStyles
[
COND_COMMAND_COUNT
];
OUString
m_
sStyles
[
COND_COMMAND_COUNT
];
public
:
public
:
SwCondCollItem
(
sal_uInt16
nWhich
=
FN_COND_COLL
);
SwCondCollItem
(
sal_uInt16
nWhich
=
FN_COND_COLL
);
...
@@ -75,8 +75,8 @@ public:
...
@@ -75,8 +75,8 @@ public:
static
const
CommandStruct
*
GetCmds
();
static
const
CommandStruct
*
GetCmds
();
const
String
&
GetStyle
(
sal_uInt16
nPos
)
const
;
OUString
GetStyle
(
sal_uInt16
nPos
)
const
;
void
SetStyle
(
const
String
*
pStyle
,
sal_uInt16
nPos
);
void
SetStyle
(
const
OU
String
*
pStyle
,
sal_uInt16
nPos
);
};
};
...
...
sw/source/core/unocore/unostyle.cxx
Dosyayı görüntüle @
40b4567b
...
@@ -1918,8 +1918,7 @@ static void lcl_SetStyleProperty(const SfxItemPropertySimpleEntry& rEntry,
...
@@ -1918,8 +1918,7 @@ static void lcl_SetStyleProperty(const SfxItemPropertySimpleEntry& rEntry,
break
;
break
;
}
}
String
tmp
(
aStyleName
);
//FIXME
aCondItem
.
SetStyle
(
&
aStyleName
,
nIdx
);
aCondItem
.
SetStyle
(
&
tmp
,
nIdx
);
}
}
else
else
bFailed
=
sal_True
;
bFailed
=
sal_True
;
...
...
sw/source/ui/chrdlg/ccoll.cxx
Dosyayı görüntüle @
40b4567b
...
@@ -162,7 +162,8 @@ int SwCondCollItem::operator==( const SfxPoolItem& rItem) const
...
@@ -162,7 +162,8 @@ int SwCondCollItem::operator==( const SfxPoolItem& rItem) const
OSL_ENSURE
(
SfxPoolItem
::
operator
==
(
rItem
),
"different types"
);
OSL_ENSURE
(
SfxPoolItem
::
operator
==
(
rItem
),
"different types"
);
sal_Bool
bReturn
=
sal_True
;
sal_Bool
bReturn
=
sal_True
;
for
(
sal_uInt16
i
=
0
;
i
<
COND_COMMAND_COUNT
;
i
++
)
for
(
sal_uInt16
i
=
0
;
i
<
COND_COMMAND_COUNT
;
i
++
)
if
(
sStyles
[
i
]
!=
((
SwCondCollItem
&
)
rItem
).
sStyles
[
i
])
if
(
m_sStyles
[
i
]
!=
static_cast
<
SwCondCollItem
const
&>
(
rItem
).
m_sStyles
[
i
])
{
{
bReturn
=
sal_False
;
bReturn
=
sal_False
;
break
;
break
;
...
@@ -171,15 +172,16 @@ int SwCondCollItem::operator==( const SfxPoolItem& rItem) const
...
@@ -171,15 +172,16 @@ int SwCondCollItem::operator==( const SfxPoolItem& rItem) const
return
bReturn
;
return
bReturn
;
}
}
const
String
&
SwCondCollItem
::
GetStyle
(
sal_uInt16
nPos
)
const
OUString
SwCondCollItem
::
GetStyle
(
sal_uInt16
const
nPos
)
const
{
{
return
nPos
<
COND_COMMAND_COUNT
?
sStyles
[
nPos
]
:
aEmptyStr
;
return
(
nPos
<
COND_COMMAND_COUNT
)
?
m_sStyles
[
nPos
]
:
OUString
()
;
}
}
void
SwCondCollItem
::
SetStyle
(
const
String
*
pStyle
,
sal_uInt16
nPos
)
void
SwCondCollItem
::
SetStyle
(
OUString
const
*
const
pStyle
,
sal_uInt16
const
nPos
)
{
{
if
(
nPos
<
COND_COMMAND_COUNT
)
if
(
nPos
<
COND_COMMAND_COUNT
)
sStyles
[
nPos
]
=
pStyle
?
*
pStyle
:
aEmptyStr
;
m_sStyles
[
nPos
]
=
(
pStyle
)
?
*
pStyle
:
OUString
()
;
}
}
const
CommandStruct
*
SwCondCollItem
::
GetCmds
()
const
CommandStruct
*
SwCondCollItem
::
GetCmds
()
...
...
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