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
c5376ef6
Kaydet (Commit)
c5376ef6
authored
Kas 06, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:stringconstant: elide explicit ctor usage (manually due to macros)
Change-Id: I4633229b94be1b15dfa14eafe8d7176a1fd253c9
üst
7bad24fe
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
21 deletions
+10
-21
properties.h
framework/inc/properties.h
+0
-11
titlehelper.cxx
framework/source/fwe/helper/titlehelper.cxx
+1
-1
titlebarupdate.cxx
framework/source/helper/titlebarupdate.cxx
+2
-2
layoutmanager.cxx
framework/source/layoutmanager/layoutmanager.cxx
+5
-5
loadenv.cxx
framework/source/loadenv/loadenv.cxx
+2
-2
No files found.
framework/inc/properties.h
Dosyayı görüntüle @
c5376ef6
...
...
@@ -100,11 +100,6 @@ namespace framework{
#define LAYOUTMANAGER_PROPNAME_ASCII_PRESERVE_CONTENT_SIZE "PreserveContentSize"
#define LAYOUTMANAGER_PROPNAME_MENUBARCLOSER LAYOUTMANAGER_PROPNAME_ASCII_MENUBARCLOSER
#define LAYOUTMANAGER_PROPNAME_AUTOMATICTOOLBARS OUString( LAYOUTMANAGER_PROPNAME_ASCII_AUTOMATICTOOLBARS )
#define LAYOUTMANAGER_PROPNAME_REFRESHVISIBILITY OUString( LAYOUTMANAGER_PROPNAME_ASCII_REFRESHVISIBILITY )
#define LAYOUTMANAGER_PROPNAME_HIDECURRENTUI OUString( LAYOUTMANAGER_PROPNAME_ASCII_HIDECURRENTUI )
#define LAYOUTMANAGER_PROPNAME_LOCKCOUNT OUString( LAYOUTMANAGER_PROPNAME_ASCII_LOCKCOUNT )
#define LAYOUTMANAGER_PROPNAME_PRESERVE_CONTENT_SIZE OUString( LAYOUTMANAGER_PROPNAME_ASCII_PRESERVE_CONTENT_SIZE )
#define LAYOUTMANAGER_PROPHANDLE_MENUBARCLOSER 0
#define LAYOUTMANAGER_PROPHANDLE_AUTOMATICTOOLBARS 1
...
...
@@ -141,18 +136,12 @@ namespace framework{
#define FILTER_PROPNAME_ASCII_DOCUMENTSERVICE "DocumentService"
#define FILTER_PROPNAME_DOCUMENTSERVICE OUString( FILTER_PROPNAME_ASCII_DOCUMENTSERVICE )
/** properties for office module config (Setup.xcu) */
#define OFFICEFACTORY_PROPNAME_ASCII_WINDOWATTRIBUTES "ooSetupFactoryWindowAttributes"
#define OFFICEFACTORY_PROPNAME_ASCII_UINAME "ooSetupFactoryUIName"
#define OFFICEFACTORY_PROPNAME_ASCII_ICON "ooSetupFactoryIcon"
#define OFFICEFACTORY_PROPNAME_WINDOWATTRIBUTES OUString( OFFICEFACTORY_PROPNAME_ASCII_WINDOWATTRIBUTES )
#define OFFICEFACTORY_PROPNAME_UINAME OUString( OFFICEFACTORY_PROPNAME_ASCII_UINAME )
#define OFFICEFACTORY_PROPNAME_ICON OUString( OFFICEFACTORY_PROPNAME_ASCII_ICON )
/** properties for tab window (old) */
#define TABWINDOW_PROPNAME_ASCII_PARENTWINDOW "ParentWindow"
#define TABWINDOW_PROPNAME_ASCII_TOPWINDOW "TopWindow"
...
...
framework/source/fwe/helper/titlehelper.cxx
Dosyayı görüntüle @
c5376ef6
...
...
@@ -542,7 +542,7 @@ void TitleHelper::impl_appendModuleName (OUStringBuffer& sTitle)
const
OUString
sID
=
xModuleManager
->
identify
(
xOwner
);
::
comphelper
::
SequenceAsHashMap
lProps
=
xModuleManager
->
getByName
(
sID
);
const
OUString
sUIName
=
lProps
.
getUnpackedValueOrDefault
(
OFFICEFACTORY_PROPNAME_UINAME
,
OUString
());
const
OUString
sUIName
=
lProps
.
getUnpackedValueOrDefault
(
OFFICEFACTORY_PROPNAME_
ASCII_
UINAME
,
OUString
());
// An UIname property is an optional value !
// So please add it to the title in case it does really exists only.
...
...
framework/source/helper/titlebarupdate.cxx
Dosyayı görüntüle @
c5376ef6
...
...
@@ -196,8 +196,8 @@ bool TitleBarUpdate::implst_getModuleInfo(const css::uno::Reference< css::frame:
rInfo
.
sID
=
xModuleManager
->
identify
(
xFrame
);
::
comphelper
::
SequenceAsHashMap
lProps
=
xModuleManager
->
getByName
(
rInfo
.
sID
);
rInfo
.
sUIName
=
lProps
.
getUnpackedValueOrDefault
(
OFFICEFACTORY_PROPNAME_UINAME
,
OUString
());
rInfo
.
nIcon
=
lProps
.
getUnpackedValueOrDefault
(
OFFICEFACTORY_PROPNAME_ICON
,
INVALID_ICON_ID
);
rInfo
.
sUIName
=
lProps
.
getUnpackedValueOrDefault
(
OFFICEFACTORY_PROPNAME_
ASCII_
UINAME
,
OUString
());
rInfo
.
nIcon
=
lProps
.
getUnpackedValueOrDefault
(
OFFICEFACTORY_PROPNAME_
ASCII_
ICON
,
INVALID_ICON_ID
);
// Note: If we could retrieve a module id ... everything is OK.
// UIName and Icon ID are optional values !
...
...
framework/source/layoutmanager/layoutmanager.cxx
Dosyayı görüntüle @
c5376ef6
...
...
@@ -148,12 +148,12 @@ LayoutManager::LayoutManager( const Reference< XComponentContext >& xContext ) :
m_aAsyncLayoutTimer
.
SetTimeout
(
50
);
m_aAsyncLayoutTimer
.
SetTimeoutHdl
(
LINK
(
this
,
LayoutManager
,
AsyncLayoutHdl
)
);
registerProperty
(
LAYOUTMANAGER_PROPNAME_AUTOMATICTOOLBARS
,
LAYOUTMANAGER_PROPHANDLE_AUTOMATICTOOLBARS
,
css
::
beans
::
PropertyAttribute
::
TRANSIENT
,
&
m_bAutomaticToolbars
,
cppu
::
UnoType
<
decltype
(
m_bAutomaticToolbars
)
>::
get
()
);
registerProperty
(
LAYOUTMANAGER_PROPNAME_HIDECURRENTUI
,
LAYOUTMANAGER_PROPHANDLE_HIDECURRENTUI
,
beans
::
PropertyAttribute
::
TRANSIENT
,
&
m_bHideCurrentUI
,
cppu
::
UnoType
<
decltype
(
m_bHideCurrentUI
)
>::
get
()
);
registerProperty
(
LAYOUTMANAGER_PROPNAME_LOCKCOUNT
,
LAYOUTMANAGER_PROPHANDLE_LOCKCOUNT
,
beans
::
PropertyAttribute
::
TRANSIENT
|
beans
::
PropertyAttribute
::
READONLY
,
&
m_nLockCount
,
cppu
::
UnoType
<
decltype
(
m_nLockCount
)
>::
get
()
);
registerProperty
(
LAYOUTMANAGER_PROPNAME_A
SCII_A
UTOMATICTOOLBARS
,
LAYOUTMANAGER_PROPHANDLE_AUTOMATICTOOLBARS
,
css
::
beans
::
PropertyAttribute
::
TRANSIENT
,
&
m_bAutomaticToolbars
,
cppu
::
UnoType
<
decltype
(
m_bAutomaticToolbars
)
>::
get
()
);
registerProperty
(
LAYOUTMANAGER_PROPNAME_
ASCII_
HIDECURRENTUI
,
LAYOUTMANAGER_PROPHANDLE_HIDECURRENTUI
,
beans
::
PropertyAttribute
::
TRANSIENT
,
&
m_bHideCurrentUI
,
cppu
::
UnoType
<
decltype
(
m_bHideCurrentUI
)
>::
get
()
);
registerProperty
(
LAYOUTMANAGER_PROPNAME_
ASCII_
LOCKCOUNT
,
LAYOUTMANAGER_PROPHANDLE_LOCKCOUNT
,
beans
::
PropertyAttribute
::
TRANSIENT
|
beans
::
PropertyAttribute
::
READONLY
,
&
m_nLockCount
,
cppu
::
UnoType
<
decltype
(
m_nLockCount
)
>::
get
()
);
registerProperty
(
LAYOUTMANAGER_PROPNAME_MENUBARCLOSER
,
LAYOUTMANAGER_PROPHANDLE_MENUBARCLOSER
,
beans
::
PropertyAttribute
::
TRANSIENT
,
&
m_bMenuBarCloseButton
,
cppu
::
UnoType
<
decltype
(
m_bMenuBarCloseButton
)
>::
get
()
);
registerPropertyNoMember
(
LAYOUTMANAGER_PROPNAME_REFRESHVISIBILITY
,
LAYOUTMANAGER_PROPHANDLE_REFRESHVISIBILITY
,
beans
::
PropertyAttribute
::
TRANSIENT
,
cppu
::
UnoType
<
decltype
(
bRefreshVisibility
)
>::
get
(),
&
bRefreshVisibility
);
registerProperty
(
LAYOUTMANAGER_PROPNAME_PRESERVE_CONTENT_SIZE
,
LAYOUTMANAGER_PROPHANDLE_PRESERVE_CONTENT_SIZE
,
beans
::
PropertyAttribute
::
TRANSIENT
,
&
m_bPreserveContentSize
,
cppu
::
UnoType
<
decltype
(
m_bPreserveContentSize
)
>::
get
()
);
registerPropertyNoMember
(
LAYOUTMANAGER_PROPNAME_
ASCII_
REFRESHVISIBILITY
,
LAYOUTMANAGER_PROPHANDLE_REFRESHVISIBILITY
,
beans
::
PropertyAttribute
::
TRANSIENT
,
cppu
::
UnoType
<
decltype
(
bRefreshVisibility
)
>::
get
(),
&
bRefreshVisibility
);
registerProperty
(
LAYOUTMANAGER_PROPNAME_
ASCII_
PRESERVE_CONTENT_SIZE
,
LAYOUTMANAGER_PROPHANDLE_PRESERVE_CONTENT_SIZE
,
beans
::
PropertyAttribute
::
TRANSIENT
,
&
m_bPreserveContentSize
,
cppu
::
UnoType
<
decltype
(
m_bPreserveContentSize
)
>::
get
()
);
}
LayoutManager
::~
LayoutManager
()
...
...
framework/source/loadenv/loadenv.cxx
Dosyayı görüntüle @
c5376ef6
...
...
@@ -1713,7 +1713,7 @@ void LoadEnv::impl_applyPersistentWindowState(const css::uno::Reference< css::aw
xContext
->
getServiceManager
()
->
createInstanceWithContext
(
SERVICENAME_FILTERFACTORY
,
xContext
),
css
::
uno
::
UNO_QUERY_THROW
);
::
comphelper
::
SequenceAsHashMap
lProps
(
xFilterCfg
->
getByName
(
sFilter
));
OUString
sModule
=
lProps
.
getUnpackedValueOrDefault
(
FILTER_PROPNAME_DOCUMENTSERVICE
,
OUString
());
OUString
sModule
=
lProps
.
getUnpackedValueOrDefault
(
FILTER_PROPNAME_
ASCII_
DOCUMENTSERVICE
,
OUString
());
// get access to the configuration of this office module
css
::
uno
::
Reference
<
css
::
container
::
XNameAccess
>
xModuleCfg
(
::
comphelper
::
ConfigurationHelper
::
openConfig
(
...
...
@@ -1726,7 +1726,7 @@ void LoadEnv::impl_applyPersistentWindowState(const css::uno::Reference< css::aw
// and apply it on the window.
// Do nothing, if no configuration entry exists!
OUString
sWindowState
;
::
comphelper
::
ConfigurationHelper
::
readRelativeKey
(
xModuleCfg
,
sModule
,
OFFICEFACTORY_PROPNAME_WINDOWATTRIBUTES
)
>>=
sWindowState
;
::
comphelper
::
ConfigurationHelper
::
readRelativeKey
(
xModuleCfg
,
sModule
,
OFFICEFACTORY_PROPNAME_
ASCII_
WINDOWATTRIBUTES
)
>>=
sWindowState
;
if
(
!
sWindowState
.
isEmpty
())
{
// SOLAR SAFE ->
...
...
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