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
cf33f6b4
Kaydet (Commit)
cf33f6b4
authored
Şub 25, 2016
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sfx2 classification: expose category names as parsed from the policy
Change-Id: I53b958dff2f43d4762445c4b474f2b00ae6dc9d0
üst
0c4a0a53
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
classificationhelper.hxx
include/sfx2/classificationhelper.hxx
+3
-0
classificationhelper.cxx
sfx2/source/view/classificationhelper.cxx
+14
-0
No files found.
include/sfx2/classificationhelper.hxx
Dosyayı görüntüle @
cf33f6b4
...
...
@@ -11,6 +11,7 @@
#define INCLUDED_SFX2_CLASSIFICATIONHELPER_HXX
#include <memory>
#include <vector>
#include <rtl/ustring.hxx>
#include <sfx2/dllapi.h>
...
...
@@ -35,6 +36,8 @@ public:
SfxClassificationHelper
(
SfxObjectShell
&
rObjectShell
);
~
SfxClassificationHelper
();
OUString
GetBACName
();
/// Return all possible valid category names, based on the policy.
std
::
vector
<
OUString
>
GetBACNames
();
/// Setting this sets all the other properties, based on the policy.
void
SetBACName
(
const
OUString
&
rName
);
/// If GetImpactLevelColor() will return something meaningful.
...
...
sfx2/source/view/classificationhelper.cxx
Dosyayı görüntüle @
cf33f6b4
...
...
@@ -10,6 +10,7 @@
#include <sfx2/classificationhelper.hxx>
#include <map>
#include <algorithm>
#include <com/sun/star/beans/XPropertyContainer.hpp>
#include <com/sun/star/document/XDocumentProperties.hpp>
...
...
@@ -493,6 +494,19 @@ OUString SfxClassificationHelper::GetDocumentWatermark()
return
OUString
();
}
std
::
vector
<
OUString
>
SfxClassificationHelper
::
GetBACNames
()
{
if
(
m_pImpl
->
m_aCategories
.
empty
())
m_pImpl
->
parsePolicy
();
std
::
vector
<
OUString
>
aRet
;
std
::
transform
(
m_pImpl
->
m_aCategories
.
begin
(),
m_pImpl
->
m_aCategories
.
end
(),
std
::
back_inserter
(
aRet
),
[](
const
std
::
pair
<
OUString
,
SfxClassificationCategory
>&
rPair
)
{
return
rPair
.
first
;
});
return
aRet
;
}
void
SfxClassificationHelper
::
SetBACName
(
const
OUString
&
rName
)
{
if
(
m_pImpl
->
m_aCategories
.
empty
())
...
...
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