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
dac1be92
Kaydet (Commit)
dac1be92
authored
Tem 14, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sfx2: remove pointless GenLink class
Change-Id: I82df7b89c598c3c7903dee865f899862902a0d86
üst
8fdf12f7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
13 additions
and
76 deletions
+13
-76
app.hxx
include/sfx2/app.hxx
+0
-1
genlink.hxx
include/sfx2/genlink.hxx
+0
-50
hintpost.hxx
include/sfx2/hintpost.hxx
+6
-6
app.cxx
sfx2/source/appl/app.cxx
+0
-1
dispatch.cxx
sfx2/source/control/dispatch.cxx
+1
-1
hintpost.cxx
sfx2/source/notify/hintpost.cxx
+6
-16
tbxitem.cxx
sfx2/source/toolbox/tbxitem.cxx
+0
-1
No files found.
include/sfx2/app.hxx
Dosyayı görüntüle @
dac1be92
...
@@ -42,7 +42,6 @@ class WorkWindow;
...
@@ -42,7 +42,6 @@ class WorkWindow;
class
ISfxTemplateCommon
;
class
ISfxTemplateCommon
;
class
BasicManager
;
class
BasicManager
;
class
DdeService
;
class
DdeService
;
class
GenLink
;
class
PrinterDialog
;
class
PrinterDialog
;
class
Point
;
class
Point
;
class
Rectangle
;
class
Rectangle
;
...
...
include/sfx2/genlink.hxx
deleted
100644 → 0
Dosyayı görüntüle @
8fdf12f7
/* -*- 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_SFX2_GENLINK_HXX
#define INCLUDED_SFX2_GENLINK_HXX
#include <tools/link.hxx>
typedef
long
(
*
CFuncPtr
)(
void
*
);
class
GenLink
{
Link
<>
aLink
;
CFuncPtr
pFunc
;
public
:
GenLink
()
:
pFunc
(
0
)
{}
GenLink
(
CFuncPtr
pCFunc
)
:
pFunc
(
pCFunc
)
{}
GenLink
(
const
Link
<>&
rLink
)
:
aLink
(
rLink
),
pFunc
(
0
)
{}
GenLink
(
const
GenLink
&
rOrig
)
:
aLink
(
rOrig
.
aLink
),
pFunc
(
rOrig
.
pFunc
)
{}
GenLink
&
operator
=
(
const
GenLink
&
rOrig
)
{
pFunc
=
rOrig
.
pFunc
;
aLink
=
rOrig
.
aLink
;
return
*
this
;
}
bool
operator
!
()
const
{
return
!
aLink
&&
!
pFunc
;
}
bool
IsSet
()
const
{
return
aLink
.
IsSet
()
||
pFunc
;
}
long
Call
(
void
*
pCaller
)
{
return
pFunc
?
(
*
pFunc
)(
pCaller
)
:
aLink
.
Call
(
pCaller
);
}
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
include/sfx2/hintpost.hxx
Dosyayı görüntüle @
dac1be92
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
#ifndef INCLUDED_SFX2_HINTPOST_HXX
#ifndef INCLUDED_SFX2_HINTPOST_HXX
#define INCLUDED_SFX2_HINTPOST_HXX
#define INCLUDED_SFX2_HINTPOST_HXX
#include <
sfx2/gen
link.hxx>
#include <
tools/
link.hxx>
#include <tools/ref.hxx>
#include <tools/ref.hxx>
...
@@ -34,13 +34,13 @@ class SfxHint;
...
@@ -34,13 +34,13 @@ class SfxHint;
The instances are held via Ref-Count until a possibly sent
The instances are held via Ref-Count until a possibly sent
event has arrived. If the target dies before delivery,
event has arrived. If the target dies before delivery,
the connection must be severed with SetEventHdl(
Gen
Link()).
the connection must be severed with SetEventHdl(Link()).
*/
*/
class
SfxHintPoster
:
public
SvRefBase
class
SfxHintPoster
:
public
SvRefBase
{
{
GenLink
aLink
;
private
:
private
:
Link
<>
m_Link
;
DECL_LINK
(
DoEvent_Impl
,
SfxHint
*
);
DECL_LINK
(
DoEvent_Impl
,
SfxHint
*
);
protected
:
protected
:
...
@@ -48,10 +48,10 @@ protected:
...
@@ -48,10 +48,10 @@ protected:
void
Event
(
SfxHint
*
pPostedHint
);
void
Event
(
SfxHint
*
pPostedHint
);
public
:
public
:
SfxHintPoster
(
const
GenLink
&
rLink
);
SfxHintPoster
(
const
Link
<>&
rLink
);
void
Post
(
SfxHint
*
pHint
=
0
);
void
Post
(
SfxHint
*
pHint
=
0
);
void
SetEventHdl
(
const
GenLink
&
rLink
);
void
SetEventHdl
(
const
Link
<>&
rLink
);
};
};
typedef
tools
::
SvRef
<
SfxHintPoster
>
SfxHintPosterRef
;
typedef
tools
::
SvRef
<
SfxHintPoster
>
SfxHintPosterRef
;
...
...
sfx2/source/appl/app.cxx
Dosyayı görüntüle @
dac1be92
...
@@ -77,7 +77,6 @@
...
@@ -77,7 +77,6 @@
#include <sfx2/bindings.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/viewsh.hxx>
#include <sfx2/viewsh.hxx>
#include <sfx2/genlink.hxx>
#include <sfx2/viewfrm.hxx>
#include <sfx2/viewfrm.hxx>
#include "appdata.hxx"
#include "appdata.hxx"
#include "openflag.hxx"
#include "openflag.hxx"
...
...
sfx2/source/control/dispatch.cxx
Dosyayı görüntüle @
dac1be92
...
@@ -329,7 +329,7 @@ void SfxDispatcher::Construct_Impl( SfxDispatcher* pParent )
...
@@ -329,7 +329,7 @@ void SfxDispatcher::Construct_Impl( SfxDispatcher* pParent )
for
(
sal_uInt16
n
=
0
;
n
<
SFX_OBJECTBAR_MAX
;
n
++
)
for
(
sal_uInt16
n
=
0
;
n
<
SFX_OBJECTBAR_MAX
;
n
++
)
xImp
->
aObjBars
[
n
].
nResId
=
0
;
xImp
->
aObjBars
[
n
].
nResId
=
0
;
GenLink
aGenLink
(
LINK
(
this
,
SfxDispatcher
,
PostMsgHandler
)
);
Link
<>
aGenLink
(
LINK
(
this
,
SfxDispatcher
,
PostMsgHandler
)
);
xImp
->
xPoster
=
new
SfxHintPoster
(
aGenLink
);
xImp
->
xPoster
=
new
SfxHintPoster
(
aGenLink
);
...
...
sfx2/source/notify/hintpost.cxx
Dosyayı görüntüle @
dac1be92
...
@@ -17,36 +17,28 @@
...
@@ -17,36 +17,28 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
*/
#include <sfx2/hintpost.hxx>
#include "arrdecl.hxx"
#include "arrdecl.hxx"
#include <sfx2/hintpost.hxx>
#include <sfx2/app.hxx>
#include <sfx2/app.hxx>
#include "sfxtypes.hxx"
#include "sfxtypes.hxx"
SfxHintPoster
::
SfxHintPoster
(
const
Link
<>&
rLink
)
SfxHintPoster
::
SfxHintPoster
(
const
GenLink
&
rLink
)
:
:
m_Link
(
rLink
)
aLink
(
rLink
)
{
{
}
}
SfxHintPoster
::~
SfxHintPoster
()
SfxHintPoster
::~
SfxHintPoster
()
{
{
}
}
void
SfxHintPoster
::
Post
(
SfxHint
*
pHintToPost
)
void
SfxHintPoster
::
Post
(
SfxHint
*
pHintToPost
)
{
{
Application
::
PostUserEvent
(
(
LINK
(
this
,
SfxHintPoster
,
DoEvent_Impl
)
),
pHintToPost
);
Application
::
PostUserEvent
(
(
LINK
(
this
,
SfxHintPoster
,
DoEvent_Impl
)
),
pHintToPost
);
AddFirstRef
();
AddFirstRef
();
}
}
IMPL_LINK
(
SfxHintPoster
,
DoEvent_Impl
,
SfxHint
*
,
pPostedHint
)
IMPL_LINK
(
SfxHintPoster
,
DoEvent_Impl
,
SfxHint
*
,
pPostedHint
)
{
{
Event
(
pPostedHint
);
Event
(
pPostedHint
);
...
@@ -56,14 +48,12 @@ IMPL_LINK( SfxHintPoster, DoEvent_Impl, SfxHint *, pPostedHint )
...
@@ -56,14 +48,12 @@ IMPL_LINK( SfxHintPoster, DoEvent_Impl, SfxHint *, pPostedHint )
void
SfxHintPoster
::
Event
(
SfxHint
*
pPostedHint
)
void
SfxHintPoster
::
Event
(
SfxHint
*
pPostedHint
)
{
{
a
Link
.
Call
(
pPostedHint
);
m_
Link
.
Call
(
pPostedHint
);
}
}
void
SfxHintPoster
::
SetEventHdl
(
const
Link
<>&
rLink
)
void
SfxHintPoster
::
SetEventHdl
(
const
GenLink
&
rLink
)
{
{
a
Link
=
rLink
;
m_
Link
=
rLink
;
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sfx2/source/toolbox/tbxitem.cxx
Dosyayı görüntüle @
dac1be92
...
@@ -77,7 +77,6 @@
...
@@ -77,7 +77,6 @@
#include "statcach.hxx"
#include "statcach.hxx"
#include <sfx2/viewfrm.hxx>
#include <sfx2/viewfrm.hxx>
#include "sfxtypes.hxx"
#include "sfxtypes.hxx"
#include <sfx2/genlink.hxx>
#include <sfx2/sfxresid.hxx>
#include <sfx2/sfxresid.hxx>
#include <sfx2/sfx.hrc>
#include <sfx2/sfx.hrc>
#include <sfx2/module.hxx>
#include <sfx2/module.hxx>
...
...
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