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
9a2fc944
Kaydet (Commit)
9a2fc944
authored
Nis 21, 2015
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
cleanup ResourceManager
Change-Id: Ic07e0a9eb72fc78c23d65c82420daa57dbeb44f7
üst
502a7008
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
44 deletions
+35
-44
ResourceManager.cxx
sfx2/source/sidebar/ResourceManager.cxx
+0
-0
ResourceManager.hxx
sfx2/source/sidebar/ResourceManager.hxx
+35
-44
No files found.
sfx2/source/sidebar/ResourceManager.cxx
Dosyayı görüntüle @
9a2fc944
This diff is collapsed.
Click to expand it.
sfx2/source/sidebar/ResourceManager.hxx
Dosyayı görüntüle @
9a2fc944
...
...
@@ -42,10 +42,8 @@ class ResourceManager
public
:
static
ResourceManager
&
Instance
();
const
DeckDescriptor
*
GetDeckDescriptor
(
const
::
rtl
::
OUString
&
rsDeckId
)
const
;
const
PanelDescriptor
*
GetPanelDescriptor
(
const
::
rtl
::
OUString
&
rsPanelId
)
const
;
const
DeckDescriptor
*
GetDeckDescriptor
(
const
OUString
&
rsDeckId
)
const
;
const
PanelDescriptor
*
GetPanelDescriptor
(
const
OUString
&
rsPanelId
)
const
;
/** Excluded or include a deck from being displayed in the tab
bar.
...
...
@@ -54,77 +52,70 @@ public:
because the ResourceManager gives access to them only
read-only.
*/
void
SetIsDeckEnabled
(
const
::
rtl
::
OUString
&
rsDeckId
,
const
bool
bIsEnabled
);
void
SetIsDeckEnabled
(
const
OUString
&
rsDeckId
,
const
bool
bIsEnabled
);
class
DeckContextDescriptor
{
public
:
::
rtl
::
OUString
msId
;
OUString
msId
;
bool
mbIsEnabled
;
};
typedef
::
std
::
vector
<
DeckContextDescriptor
>
DeckContextDescriptorContainer
;
typedef
std
::
vector
<
DeckContextDescriptor
>
DeckContextDescriptorContainer
;
class
PanelContextDescriptor
{
public
:
::
rtl
::
OUString
msId
;
::
rtl
::
OUString
msMenuCommand
;
OUString
msId
;
OUString
msMenuCommand
;
bool
mbIsInitiallyVisible
;
bool
mbShowForReadOnlyDocuments
;
};
typedef
::
std
::
vector
<
PanelContextDescriptor
>
PanelContextDescriptorContainer
;
typedef
std
::
vector
<
PanelContextDescriptor
>
PanelContextDescriptorContainer
;
const
DeckContextDescriptorContainer
&
GetMatchingDecks
(
DeckContextDescriptorContainer
&
rDeckDescriptors
,
const
Context
&
rContext
,
const
bool
bIsDocumentReadOnly
,
const
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>&
rxFrame
);
const
DeckContextDescriptorContainer
&
GetMatchingDecks
(
DeckContextDescriptorContainer
&
rDeckDescriptors
,
const
Context
&
rContext
,
const
bool
bIsDocumentReadOnly
,
const
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>&
rxFrame
);
const
PanelContextDescriptorContainer
&
GetMatchingPanels
(
PanelContextDescriptorContainer
&
rPanelDescriptors
,
const
Context
&
rContext
,
const
::
rtl
::
OUString
&
rsDeckId
,
const
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>&
rxFrame
);
const
PanelContextDescriptorContainer
&
GetMatchingPanels
(
PanelContextDescriptorContainer
&
rPanelDescriptors
,
const
Context
&
rContext
,
const
OUString
&
rsDeckId
,
const
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>&
rxFrame
);
/** Remember the expansions state per panel and context.
This is not persistent past application end.
*/
void
StorePanelExpansionState
(
const
::
rtl
::
OUString
&
rsPanelId
,
const
bool
bExpansionState
,
const
Context
&
rContext
);
void
StorePanelExpansionState
(
const
OUString
&
rsPanelId
,
const
bool
bExpansionState
,
const
Context
&
rContext
);
private
:
ResourceManager
();
~
ResourceManager
();
typedef
::
std
::
vector
<
DeckDescriptor
>
DeckContainer
;
typedef
std
::
vector
<
DeckDescriptor
>
DeckContainer
;
DeckContainer
maDecks
;
typedef
::
std
::
vector
<
PanelDescriptor
>
PanelContainer
;
typedef
std
::
vector
<
PanelDescriptor
>
PanelContainer
;
PanelContainer
maPanels
;
mutable
::
std
::
set
<
rtl
::
OUString
>
maProcessedApplications
;
mutable
std
::
set
<
rtl
::
OUString
>
maProcessedApplications
;
SvtMiscOptions
maMiscOptions
;
void
ReadDeckList
();
void
ReadPanelList
();
void
ReadContextList
(
const
::
utl
::
OConfigurationNode
&
rNode
,
ContextList
&
rContextList
,
const
::
rtl
::
OUString
&
rsDefaultMenuCommand
)
const
;
void
ReadLegacyAddons
(
const
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>&
rxFrame
);
::
utl
::
OConfigurationTreeRoot
GetLegacyAddonRootNode
(
const
::
rtl
::
OUString
&
rsModuleName
)
const
;
void
GetToolPanelNodeNames
(
::
std
::
vector
<
rtl
::
OUString
>&
rMatchingNames
,
const
::
utl
::
OConfigurationTreeRoot
&
aRoot
)
const
;
bool
IsDeckEnabled
(
const
::
rtl
::
OUString
&
rsDeckId
,
const
Context
&
rContext
,
const
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>&
rxFrame
)
const
;
void
ReadContextList
(
const
utl
::
OConfigurationNode
&
rNode
,
ContextList
&
rContextList
,
const
OUString
&
rsDefaultMenuCommand
)
const
;
void
ReadLegacyAddons
(
const
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>&
rxFrame
);
utl
::
OConfigurationTreeRoot
GetLegacyAddonRootNode
(
const
OUString
&
rsModuleName
)
const
;
void
GetToolPanelNodeNames
(
std
::
vector
<
OUString
>&
rMatchingNames
,
const
utl
::
OConfigurationTreeRoot
&
aRoot
)
const
;
bool
IsDeckEnabled
(
const
OUString
&
rsDeckId
,
const
Context
&
rContext
,
const
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>&
rxFrame
)
const
;
};
}
}
// end of namespace sfx2::sidebar
...
...
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