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
dff288c6
Kaydet (Commit)
dff288c6
authored
Eki 06, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:mergedclasses
Change-Id: I3eb2de4edcd4b2d757d1e0916e7c903b5d6c569e
üst
b700e342
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
17 additions
and
69 deletions
+17
-69
mergeclasses.results
compilerplugins/clang/mergeclasses.results
+0
-1
acceleratorconfiguration.cxx
framework/source/accelerators/acceleratorconfiguration.cxx
+1
-1
documentacceleratorconfiguration.cxx
.../source/accelerators/documentacceleratorconfiguration.cxx
+0
-1
presethandler.cxx
framework/source/accelerators/presethandler.cxx
+2
-2
storageholder.cxx
framework/source/accelerators/storageholder.cxx
+5
-4
acceleratorconfiguration.hxx
...work/source/inc/accelerators/acceleratorconfiguration.hxx
+3
-5
istoragelistener.hxx
framework/source/inc/accelerators/istoragelistener.hxx
+0
-49
presethandler.hxx
framework/source/inc/accelerators/presethandler.hxx
+2
-2
storageholder.hxx
framework/source/inc/accelerators/storageholder.hxx
+4
-4
No files found.
compilerplugins/clang/mergeclasses.results
Dosyayı görüntüle @
dff288c6
...
...
@@ -163,7 +163,6 @@ merge dbp::OModuleResourceClient with dbp::OUnoAutoPilot
merge dbtools::ISQLStatementHelper with connectivity::mysql::OTables
merge formula::ExternalReferenceHelper with ScExternalRefManager
merge formula::IStructHelper with formula::StructPage
merge framework::IStorageListener with framework::XMLBasedAcceleratorConfiguration
merge frm::IAttributeHandler with frm::AttributeHandler
merge frm::ICommandDescriptionProvider with frm::DefaultCommandDescriptionProvider
merge frm::ICommandImageProvider with frm::DocumentCommandImageProvider
...
...
framework/source/accelerators/acceleratorconfiguration.cxx
Dosyayı görüntüle @
dff288c6
...
...
@@ -387,7 +387,7 @@ void SAL_CALL XMLBasedAcceleratorConfiguration::removeResetListener(const css::u
}
// IStorageListener
void
XMLBasedAcceleratorConfiguration
::
changesOccurred
(
const
OUString
&
/*sPath*/
)
void
XMLBasedAcceleratorConfiguration
::
changesOccurred
()
{
reload
();
}
...
...
framework/source/accelerators/documentacceleratorconfiguration.cxx
Dosyayı görüntüle @
dff288c6
...
...
@@ -18,7 +18,6 @@
*/
#include <accelerators/acceleratorconfiguration.hxx>
#include <accelerators/istoragelistener.hxx>
#include <accelerators/presethandler.hxx>
#include <xml/acceleratorconfigurationreader.hxx>
...
...
framework/source/accelerators/presethandler.cxx
Dosyayı görüntüle @
dff288c6
...
...
@@ -632,7 +632,7 @@ void PresetHandler::commitUserChanges()
}
}
void
PresetHandler
::
addStorageListener
(
IStorageListener
*
pListener
)
void
PresetHandler
::
addStorageListener
(
XMLBasedAcceleratorConfiguration
*
pListener
)
{
OUString
sRelPath
;
EConfigType
eCfgType
;
...
...
@@ -662,7 +662,7 @@ void PresetHandler::addStorageListener(IStorageListener* pListener)
}
}
void
PresetHandler
::
removeStorageListener
(
IStorageListener
*
pListener
)
void
PresetHandler
::
removeStorageListener
(
XMLBasedAcceleratorConfiguration
*
pListener
)
{
OUString
sRelPath
;
EConfigType
eCfgType
;
...
...
framework/source/accelerators/storageholder.cxx
Dosyayı görüntüle @
dff288c6
...
...
@@ -18,6 +18,7 @@
*/
#include <accelerators/storageholder.hxx>
#include <accelerators/acceleratorconfiguration.hxx>
#include <services.h>
...
...
@@ -284,13 +285,13 @@ void StorageHolder::notifyPath(const OUString& sPath)
pIt2
!=
rInfo
.
Listener
.
end
();
++
pIt2
)
{
IStorageListener
*
pListener
=
*
pIt2
;
XMLBasedAcceleratorConfiguration
*
pListener
=
*
pIt2
;
if
(
pListener
)
pListener
->
changesOccurred
(
sNormedPath
);
pListener
->
changesOccurred
();
}
}
void
StorageHolder
::
addStorageListener
(
IStorageListener
*
pListener
,
void
StorageHolder
::
addStorageListener
(
XMLBasedAcceleratorConfiguration
*
pListener
,
const
OUString
&
sPath
)
{
OUString
sNormedPath
=
StorageHolder
::
impl_st_normPath
(
sPath
);
...
...
@@ -307,7 +308,7 @@ void StorageHolder::addStorageListener( IStorageListener* pListener,
rInfo
.
Listener
.
push_back
(
pListener
);
}
void
StorageHolder
::
removeStorageListener
(
IStorageListener
*
pListener
,
void
StorageHolder
::
removeStorageListener
(
XMLBasedAcceleratorConfiguration
*
pListener
,
const
OUString
&
sPath
)
{
OUString
sNormedPath
=
StorageHolder
::
impl_st_normPath
(
sPath
);
...
...
framework/source/inc/accelerators/acceleratorconfiguration.hxx
Dosyayı görüntüle @
dff288c6
...
...
@@ -20,7 +20,6 @@
#ifndef INCLUDED_FRAMEWORK_SOURCE_INC_ACCELERATORS_ACCELERATORCONFIGURATION_HXX
#define INCLUDED_FRAMEWORK_SOURCE_INC_ACCELERATORS_ACCELERATORCONFIGURATION_HXX
#include <accelerators/istoragelistener.hxx>
#include <accelerators/presethandler.hxx>
#include <accelerators/acceleratorcache.hxx>
#include <accelerators/keymapping.hxx>
...
...
@@ -61,8 +60,7 @@ const char CFG_ENTRY_MODULES[] = "Modules";
/**
implements a read/write access to the accelerator configuration.
*/
class
XMLBasedAcceleratorConfiguration
:
public
IStorageListener
,
public
::
cppu
::
WeakImplHelper
<
class
XMLBasedAcceleratorConfiguration
:
public
::
cppu
::
WeakImplHelper
<
css
::
form
::
XReset
,
// TODO use XPresetHandler instead if available
css
::
ui
::
XAcceleratorConfiguration
>
// => css::ui::XUIConfigurationPersistence
// css::ui::XUIConfigurationStorage
...
...
@@ -176,8 +174,8 @@ class XMLBasedAcceleratorConfiguration : public IStorageListener,
virtual
void
SAL_CALL
removeResetListener
(
const
css
::
uno
::
Reference
<
css
::
form
::
XResetListener
>&
xListener
)
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
//
IStorageListener
v
irtual
void
changesOccurred
(
const
OUString
&
sPath
)
SAL_OVERRIDE
;
//
called when changes occurred in the storage
v
oid
changesOccurred
()
;
// helper for derived classes
...
...
framework/source/inc/accelerators/istoragelistener.hxx
deleted
100644 → 0
Dosyayı görüntüle @
b700e342
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_FRAMEWORK_SOURCE_INC_ACCELERATORS_ISTORAGELISTENER_HXX
#define INCLUDED_FRAMEWORK_SOURCE_INC_ACCELERATORS_ISTORAGELISTENER_HXX
#include <general.h>
#include <stdtypes.h>
// definition
namespace
framework
{
/**
TODO document me
*/
class
IStorageListener
{
public
:
/** @short TODO */
virtual
void
changesOccurred
(
const
OUString
&
sPath
)
=
0
;
protected
:
~
IStorageListener
()
{}
};
}
// namespace framework
#endif // INCLUDED_FRAMEWORK_SOURCE_INC_ACCELERATORS_ISTORAGELISTENER_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
framework/source/inc/accelerators/presethandler.hxx
Dosyayı görüntüle @
dff288c6
...
...
@@ -355,8 +355,8 @@ class PresetHandler
void
commitUserChanges
();
/** TODO */
void
addStorageListener
(
IStorageListener
*
pListener
);
void
removeStorageListener
(
IStorageListener
*
pListener
);
void
addStorageListener
(
XMLBasedAcceleratorConfiguration
*
pListener
);
void
removeStorageListener
(
XMLBasedAcceleratorConfiguration
*
pListener
);
// helper
...
...
framework/source/inc/accelerators/storageholder.hxx
Dosyayı görüntüle @
dff288c6
...
...
@@ -20,7 +20,6 @@
#ifndef INCLUDED_FRAMEWORK_SOURCE_INC_ACCELERATORS_STORAGEHOLDER_HXX
#define INCLUDED_FRAMEWORK_SOURCE_INC_ACCELERATORS_STORAGEHOLDER_HXX
#include <accelerators/istoragelistener.hxx>
#include <general.h>
#include <stdtypes.h>
...
...
@@ -29,6 +28,7 @@
namespace
framework
{
class
XMLBasedAcceleratorConfiguration
;
/**
TODO document me
*/
...
...
@@ -41,7 +41,7 @@ class StorageHolder
/** @short TODO */
typedef
::
std
::
vector
<
css
::
uno
::
Reference
<
css
::
embed
::
XStorage
>
>
TStorageList
;
typedef
::
std
::
vector
<
IStorageListener
*
>
TStorageListenerList
;
typedef
::
std
::
vector
<
XMLBasedAcceleratorConfiguration
*
>
TStorageListenerList
;
struct
TStorageInfo
{
...
...
@@ -118,12 +118,12 @@ class StorageHolder
/** @short TODO
*/
void
addStorageListener
(
IStorageListener
*
pListener
,
void
addStorageListener
(
XMLBasedAcceleratorConfiguration
*
pListener
,
const
OUString
&
sPath
);
/** @short TODO
*/
void
removeStorageListener
(
IStorageListener
*
pListener
,
void
removeStorageListener
(
XMLBasedAcceleratorConfiguration
*
pListener
,
const
OUString
&
sPath
);
/** @short TODO
...
...
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