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
c65e00d9
Kaydet (Commit)
c65e00d9
authored
Kas 07, 2015
tarafından
Maxim Monastirsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tdf#93837 Make customization actually work
Change-Id: I004c9ad3a7d389228b9bb532a1b2c5d6294f7e42
üst
899453aa
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
9 deletions
+36
-9
cfg.cxx
cui/source/customize/cfg.cxx
+0
-0
cfg.hxx
cui/source/inc/cfg.hxx
+36
-9
No files found.
cui/source/customize/cfg.cxx
Dosyayı görüntüle @
c65e00d9
This diff is collapsed.
Click to expand it.
cui/source/inc/cfg.hxx
Dosyayı görüntüle @
c65e00d9
...
@@ -95,6 +95,17 @@ private:
...
@@ -95,6 +95,17 @@ private:
static
css
::
uno
::
Reference
static
css
::
uno
::
Reference
<
css
::
ui
::
XImageManager
>*
xDefaultImgMgr
;
<
css
::
ui
::
XImageManager
>*
xDefaultImgMgr
;
protected
:
void
ApplyMenu
(
css
::
uno
::
Reference
<
css
::
container
::
XIndexContainer
>&
rMenuBar
,
css
::
uno
::
Reference
<
css
::
lang
::
XSingleComponentFactory
>&
rFactory
,
SvxConfigEntry
*
pMenuData
=
nullptr
);
bool
LoadSubMenus
(
const
css
::
uno
::
Reference
<
css
::
container
::
XIndexAccess
>&
xMenuSettings
,
const
OUString
&
rBaseTitle
,
SvxConfigEntry
*
pParentData
);
public
:
public
:
SaveInData
(
SaveInData
(
...
@@ -170,15 +181,6 @@ private:
...
@@ -170,15 +181,6 @@ private:
css
::
uno
::
Reference
<
css
::
lang
::
XSingleComponentFactory
>&
rFactory
,
css
::
uno
::
Reference
<
css
::
lang
::
XSingleComponentFactory
>&
rFactory
,
SvTreeListEntry
*
pParent
=
nullptr
);
SvTreeListEntry
*
pParent
=
nullptr
);
void
ApplyMenu
(
css
::
uno
::
Reference
<
css
::
container
::
XIndexContainer
>&
rNewMenuBar
,
css
::
uno
::
Reference
<
css
::
lang
::
XSingleComponentFactory
>&
rFactory
,
SvxConfigEntry
*
pMenuData
=
nullptr
);
bool
LoadSubMenus
(
const
css
::
uno
::
Reference
<
css
::
container
::
XIndexAccess
>&
xMenuBarSettings
,
const
OUString
&
rBaseTitle
,
SvxConfigEntry
*
pParentData
);
public
:
public
:
MenuSaveInData
(
MenuSaveInData
(
...
@@ -198,6 +200,26 @@ public:
...
@@ -198,6 +200,26 @@ public:
bool
Apply
()
override
;
bool
Apply
()
override
;
};
};
class
ContextMenuSaveInData
:
public
SaveInData
{
private
:
std
::
unique_ptr
<
SvxConfigEntry
>
m_pRootEntry
;
public
:
ContextMenuSaveInData
(
const
css
::
uno
::
Reference
<
css
::
ui
::
XUIConfigurationManager
>&
xCfgMgr
,
const
css
::
uno
::
Reference
<
css
::
ui
::
XUIConfigurationManager
>&
xParentCfgMgr
,
const
OUString
&
aModuleId
,
bool
bIsDocConfig
);
virtual
~
ContextMenuSaveInData
();
SvxEntries
*
GetEntries
()
override
;
void
SetEntries
(
SvxEntries
*
pNewEntries
)
override
;
bool
HasSettings
()
override
;
bool
HasURL
(
const
OUString
&
rURL
)
override
;
void
Reset
()
override
;
bool
Apply
()
override
;
};
class
SvxConfigEntry
class
SvxConfigEntry
{
{
private
:
private
:
...
@@ -213,6 +235,7 @@ private:
...
@@ -213,6 +235,7 @@ private:
bool
bIsUserDefined
;
bool
bIsUserDefined
;
bool
bIsMain
;
bool
bIsMain
;
bool
bIsParentData
;
bool
bIsParentData
;
bool
bIsModified
;
/// toolbar specific properties
/// toolbar specific properties
bool
bIsVisible
;
bool
bIsVisible
;
...
@@ -238,6 +261,7 @@ public:
...
@@ -238,6 +261,7 @@ public:
bIsUserDefined
(
false
),
bIsUserDefined
(
false
),
bIsMain
(
false
),
bIsMain
(
false
),
bIsParentData
(
false
),
bIsParentData
(
false
),
bIsModified
(
false
),
bIsVisible
(
true
),
bIsVisible
(
true
),
nStyle
(
0
),
nStyle
(
0
),
mpEntries
(
nullptr
)
mpEntries
(
nullptr
)
...
@@ -270,6 +294,9 @@ public:
...
@@ -270,6 +294,9 @@ public:
void
SetParentData
(
bool
bValue
=
true
)
{
bIsParentData
=
bValue
;
}
void
SetParentData
(
bool
bValue
=
true
)
{
bIsParentData
=
bValue
;
}
bool
IsParentData
()
{
return
bIsParentData
;
}
bool
IsParentData
()
{
return
bIsParentData
;
}
void
SetModified
(
bool
bValue
=
true
)
{
bIsModified
=
bValue
;
}
bool
IsModified
()
{
return
bIsModified
;
}
bool
IsMovable
();
bool
IsMovable
();
bool
IsDeletable
();
bool
IsDeletable
();
bool
IsRenamable
();
bool
IsRenamable
();
...
...
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