Kaydet (Commit) fe9a5a4b authored tarafından Stephan Bergmann's avatar Stephan Bergmann

ODR violation (base class must be the same across compilation units)

Change-Id: Ieb98d8984c8d39fb72afbceccca29a2d402dc41e
üst abfc2c74
...@@ -45,13 +45,11 @@ namespace sdext { namespace presenter { ...@@ -45,13 +45,11 @@ namespace sdext { namespace presenter {
class PresenterController; class PresenterController;
class PresenterTextView; class PresenterTextView;
namespace { typedef ::cppu::WeakComponentImplHelper <
typedef ::cppu::WeakComponentImplHelper < css::accessibility::XAccessible,
css::accessibility::XAccessible, css::lang::XInitialization,
css::lang::XInitialization, css::awt::XFocusListener
css::awt::XFocusListener > PresenterAccessibleInterfaceBase;
> PresenterAccessibleInterfaceBase;
}
class PresenterAccessible class PresenterAccessible
: public ::cppu::BaseMutex, : public ::cppu::BaseMutex,
......
...@@ -38,14 +38,12 @@ namespace sdext { namespace presenter { ...@@ -38,14 +38,12 @@ namespace sdext { namespace presenter {
class PresenterController; class PresenterController;
namespace { typedef ::cppu::WeakComponentImplHelper <
typedef ::cppu::WeakComponentImplHelper < css::awt::XWindowListener,
css::awt::XWindowListener, css::awt::XPaintListener,
css::awt::XPaintListener, css::awt::XMouseListener,
css::awt::XMouseListener, css::awt::XMouseMotionListener
css::awt::XMouseMotionListener > PresenterButtonInterfaceBase;
> PresenterButtonInterfaceBase;
}
/** Button for the presenter screen. It displays a text surrounded by a /** Button for the presenter screen. It displays a text surrounded by a
frame. frame.
......
...@@ -57,16 +57,14 @@ class PresenterPaneBorderPainter; ...@@ -57,16 +57,14 @@ class PresenterPaneBorderPainter;
class PresenterTheme; class PresenterTheme;
class PresenterWindowManager; class PresenterWindowManager;
namespace { typedef ::cppu::WeakComponentImplHelper <
typedef ::cppu::WeakComponentImplHelper < css::drawing::framework::XConfigurationChangeListener,
css::drawing::framework::XConfigurationChangeListener, css::frame::XFrameActionListener,
css::frame::XFrameActionListener, css::awt::XKeyListener,
css::awt::XKeyListener, css::awt::XFocusListener,
css::awt::XFocusListener, css::awt::XMouseListener,
css::awt::XMouseListener, css::awt::XMouseMotionListener
css::awt::XMouseMotionListener > PresenterControllerInterfaceBase;
> PresenterControllerInterfaceBase;
}
/// Represents an element in the toolbar that shows the time elapsed since the presentation started. /// Represents an element in the toolbar that shows the time elapsed since the presentation started.
class IPresentationTime class IPresentationTime
......
...@@ -31,11 +31,9 @@ ...@@ -31,11 +31,9 @@
namespace sdext { namespace presenter { namespace sdext { namespace presenter {
namespace { typedef ::cppu::WeakComponentImplHelper <
typedef ::cppu::WeakComponentImplHelper < css::presentation::XSlideShowListener
css::presentation::XSlideShowListener > PresenterCurrentSlideObserverInterfaceBase;
> PresenterCurrentSlideObserverInterfaceBase;
}
/** Check periodically the slide show controller and the /** Check periodically the slide show controller and the
frame::XController whether the current slide has changed. If so, frame::XController whether the current slide has changed. If so,
......
...@@ -31,18 +31,16 @@ ...@@ -31,18 +31,16 @@
#include <com/sun/star/rendering/XSpriteCanvas.hpp> #include <com/sun/star/rendering/XSpriteCanvas.hpp>
#include <memory> #include <memory>
namespace {
typedef cppu::WeakComponentImplHelper<
css::drawing::framework::XView,
css::awt::XWindowListener,
css::awt::XPaintListener
> PresenterHelpViewInterfaceBase;
}
namespace sdext { namespace presenter { namespace sdext { namespace presenter {
class PresenterButton; class PresenterButton;
typedef cppu::WeakComponentImplHelper<
css::drawing::framework::XView,
css::awt::XWindowListener,
css::awt::XPaintListener
> PresenterHelpViewInterfaceBase;
/** Show help text that describes the defined keys. /** Show help text that describes the defined keys.
*/ */
class PresenterHelpView class PresenterHelpView
......
...@@ -39,22 +39,20 @@ ...@@ -39,22 +39,20 @@
#include <rtl/ref.hxx> #include <rtl/ref.hxx>
#include <memory> #include <memory>
namespace {
typedef cppu::WeakComponentImplHelper<
css::awt::XWindowListener,
css::awt::XPaintListener,
css::drawing::framework::XView,
css::drawing::XDrawView,
css::awt::XKeyListener
> PresenterNotesViewInterfaceBase;
}
namespace sdext { namespace presenter { namespace sdext { namespace presenter {
class PresenterButton; class PresenterButton;
class PresenterScrollBar; class PresenterScrollBar;
class PresenterTextView; class PresenterTextView;
typedef cppu::WeakComponentImplHelper<
css::awt::XWindowListener,
css::awt::XPaintListener,
css::drawing::framework::XView,
css::drawing::XDrawView,
css::awt::XKeyListener
> PresenterNotesViewInterfaceBase;
/** A drawing framework view of the notes of a slide. At the moment this is /** A drawing framework view of the notes of a slide. At the moment this is
a simple text view that does not show the original formatting of the a simple text view that does not show the original formatting of the
notes text. notes text.
......
...@@ -42,14 +42,12 @@ namespace sdext { namespace presenter { ...@@ -42,14 +42,12 @@ namespace sdext { namespace presenter {
class PresenterController; class PresenterController;
namespace { typedef ::cppu::WeakComponentImplHelper <
typedef ::cppu::WeakComponentImplHelper < css::drawing::framework::XPane,
css::drawing::framework::XPane, css::lang::XInitialization,
css::lang::XInitialization, css::awt::XWindowListener,
css::awt::XWindowListener, css::awt::XPaintListener
css::awt::XPaintListener > PresenterPaneBaseInterfaceBase;
> PresenterPaneBaseInterfaceBase;
}
/** Base class of the panes used by the presenter screen. Pane objects are /** Base class of the panes used by the presenter screen. Pane objects are
stored in the PresenterPaneContainer. Sizes and positions are stored in the PresenterPaneContainer. Sizes and positions are
......
...@@ -36,11 +36,9 @@ namespace sdext { namespace presenter { ...@@ -36,11 +36,9 @@ namespace sdext { namespace presenter {
class PresenterPane; class PresenterPane;
class PresenterTheme; class PresenterTheme;
namespace { typedef ::cppu::WeakComponentImplHelper<
typedef ::cppu::WeakComponentImplHelper< css::drawing::framework::XPaneBorderPainter
css::drawing::framework::XPaneBorderPainter > PresenterPaneBorderPainterInterfaceBase;
> PresenterPaneBorderPainterInterfaceBase;
}
/** This class is responsible for painting window borders of PresenterPane /** This class is responsible for painting window borders of PresenterPane
objects. objects.
......
...@@ -43,11 +43,9 @@ namespace sdext { namespace presenter { ...@@ -43,11 +43,9 @@ namespace sdext { namespace presenter {
class PresenterPaneBase; class PresenterPaneBase;
class PresenterSprite; class PresenterSprite;
namespace { typedef ::cppu::WeakComponentImplHelper <
typedef ::cppu::WeakComponentImplHelper < css::lang::XEventListener
css::lang::XEventListener > PresenterPaneContainerInterfaceBase;
> PresenterPaneContainerInterfaceBase;
}
/** This class could also be called PresenterPaneAndViewContainer because it /** This class could also be called PresenterPaneAndViewContainer because it
stores not only references to all panes that belong to the presenter stores not only references to all panes that belong to the presenter
......
...@@ -37,11 +37,9 @@ namespace sdext { namespace presenter { ...@@ -37,11 +37,9 @@ namespace sdext { namespace presenter {
class PresenterController; class PresenterController;
namespace { typedef ::cppu::WeakComponentImplHelper <
typedef ::cppu::WeakComponentImplHelper < css::drawing::framework::XResourceFactory
css::drawing::framework::XResourceFactory > PresenterPaneFactoryInterfaceBase;
> PresenterPaneFactoryInterfaceBase;
}
/** The PresenterPaneFactory provides a fixed set of panes. /** The PresenterPaneFactory provides a fixed set of panes.
......
...@@ -31,13 +31,11 @@ ...@@ -31,13 +31,11 @@
namespace sdext { namespace presenter { namespace sdext { namespace presenter {
namespace { typedef ::cppu::WeakComponentImplHelper <
typedef ::cppu::WeakComponentImplHelper < css::lang::XInitialization,
css::lang::XInitialization, css::lang::XServiceInfo,
css::lang::XServiceInfo, css::frame::XDispatchProvider
css::frame::XDispatchProvider > PresenterProtocolHandlerInterfaceBase;
> PresenterProtocolHandlerInterfaceBase;
}
class PresenterController; class PresenterController;
......
...@@ -39,14 +39,12 @@ namespace sdext { namespace presenter { ...@@ -39,14 +39,12 @@ namespace sdext { namespace presenter {
class PresenterController; class PresenterController;
namespace { typedef ::cppu::WeakComponentImplHelper <
typedef ::cppu::WeakComponentImplHelper < css::task::XJob
css::task::XJob > PresenterScreenJobInterfaceBase;
> PresenterScreenJobInterfaceBase; typedef ::cppu::WeakComponentImplHelper <
typedef ::cppu::WeakComponentImplHelper < css::lang::XEventListener
css::lang::XEventListener > PresenterScreenInterfaceBase;
> PresenterScreenInterfaceBase;
}
/** The PresenterScreenJob service is instantiated every time a document is /** The PresenterScreenJob service is instantiated every time a document is
created or loaded. In its execute() method it then filters out all created or loaded. In its execute() method it then filters out all
......
...@@ -37,14 +37,12 @@ namespace sdext { namespace presenter { ...@@ -37,14 +37,12 @@ namespace sdext { namespace presenter {
class PresenterCanvasHelper; class PresenterCanvasHelper;
class PresenterPaintManager; class PresenterPaintManager;
namespace { typedef ::cppu::WeakComponentImplHelper <
typedef ::cppu::WeakComponentImplHelper < css::awt::XWindowListener,
css::awt::XWindowListener, css::awt::XPaintListener,
css::awt::XPaintListener, css::awt::XMouseListener,
css::awt::XMouseListener, css::awt::XMouseMotionListener
css::awt::XMouseMotionListener > PresenterScrollBarInterfaceBase;
> PresenterScrollBarInterfaceBase;
}
/** Base class of horizontal and vertical scroll bars. /** Base class of horizontal and vertical scroll bars.
*/ */
......
...@@ -39,14 +39,12 @@ ...@@ -39,14 +39,12 @@
namespace sdext { namespace presenter { namespace sdext { namespace presenter {
namespace { typedef ::cppu::WeakComponentImplHelper <
typedef ::cppu::WeakComponentImplHelper < css::drawing::framework::XView,
css::drawing::framework::XView, css::drawing::XDrawView,
css::drawing::XDrawView, css::awt::XPaintListener,
css::awt::XPaintListener, css::awt::XWindowListener
css::awt::XWindowListener > PresenterSlidePreviewInterfaceBase;
> PresenterSlidePreviewInterfaceBase;
}
/** Static preview of a slide. Typically used for the preview of the next /** Static preview of a slide. Typically used for the preview of the next
slide. slide.
......
...@@ -42,17 +42,15 @@ ...@@ -42,17 +42,15 @@
namespace sdext { namespace presenter { namespace sdext { namespace presenter {
namespace { typedef cppu::WeakComponentImplHelper<
typedef cppu::WeakComponentImplHelper< css::presentation::XSlideShowView,
css::presentation::XSlideShowView, css::awt::XPaintListener,
css::awt::XPaintListener, css::awt::XMouseListener,
css::awt::XMouseListener, css::awt::XMouseMotionListener,
css::awt::XMouseMotionListener, css::awt::XWindowListener,
css::awt::XWindowListener, css::drawing::framework::XView,
css::drawing::framework::XView, css::drawing::XDrawView
css::drawing::XDrawView > PresenterSlideShowViewInterfaceBase;
> PresenterSlideShowViewInterfaceBase;
}
/** Life view in a secondary window of a full screen slide show. /** Life view in a secondary window of a full screen slide show.
*/ */
......
...@@ -38,24 +38,22 @@ ...@@ -38,24 +38,22 @@
#include <com/sun/star/rendering/XSprite.hpp> #include <com/sun/star/rendering/XSprite.hpp>
#include <com/sun/star/rendering/XSpriteCanvas.hpp> #include <com/sun/star/rendering/XSpriteCanvas.hpp>
namespace {
typedef cppu::WeakComponentImplHelper<
css::drawing::framework::XView,
css::awt::XWindowListener,
css::awt::XPaintListener,
css::beans::XPropertyChangeListener,
css::drawing::XSlidePreviewCacheListener,
css::awt::XMouseListener,
css::awt::XMouseMotionListener,
css::drawing::XDrawView
> PresenterSlideSorterInterfaceBase;
}
namespace sdext { namespace presenter { namespace sdext { namespace presenter {
class PresenterButton; class PresenterButton;
class PresenterScrollBar; class PresenterScrollBar;
typedef cppu::WeakComponentImplHelper<
css::drawing::framework::XView,
css::awt::XWindowListener,
css::awt::XPaintListener,
css::beans::XPropertyChangeListener,
css::drawing::XSlidePreviewCacheListener,
css::awt::XMouseListener,
css::awt::XMouseMotionListener,
css::drawing::XDrawView
> PresenterSlideSorterInterfaceBase;
/** A simple slide sorter for the presenter screen. It uses a preview cache /** A simple slide sorter for the presenter screen. It uses a preview cache
to create the slide previews. Painting is done via a canvas. to create the slide previews. Painting is done via a canvas.
*/ */
......
...@@ -45,24 +45,22 @@ ...@@ -45,24 +45,22 @@
#include <functional> #include <functional>
namespace {
typedef cppu::WeakComponentImplHelper<
css::awt::XWindowListener,
css::awt::XPaintListener,
css::awt::XMouseListener,
css::awt::XMouseMotionListener,
css::drawing::XDrawView
> PresenterToolBarInterfaceBase;
typedef cppu::WeakComponentImplHelper<
css::awt::XPaintListener,
css::drawing::framework::XView,
css::drawing::XDrawView
> PresenterToolBarViewInterfaceBase;
}
namespace sdext { namespace presenter { namespace sdext { namespace presenter {
typedef cppu::WeakComponentImplHelper<
css::awt::XWindowListener,
css::awt::XPaintListener,
css::awt::XMouseListener,
css::awt::XMouseMotionListener,
css::drawing::XDrawView
> PresenterToolBarInterfaceBase;
typedef cppu::WeakComponentImplHelper<
css::awt::XPaintListener,
css::drawing::framework::XView,
css::drawing::XDrawView
> PresenterToolBarViewInterfaceBase;
/** A simple tool bar that can display bitmapped buttons and labels. At the /** A simple tool bar that can display bitmapped buttons and labels. At the
moment there are buttons for moving to the next and previous slide and moment there are buttons for moving to the next and previous slide and
to the next effect. A label displays the index of the current slide to the next effect. A label displays the index of the current slide
......
...@@ -34,11 +34,9 @@ ...@@ -34,11 +34,9 @@
namespace sdext { namespace presenter { namespace sdext { namespace presenter {
namespace { typedef ::cppu::WeakComponentImplHelper <
typedef ::cppu::WeakComponentImplHelper < css::drawing::framework::XResourceFactory
css::drawing::framework::XResourceFactory > PresenterViewFactoryInterfaceBase;
> PresenterViewFactoryInterfaceBase;
}
/** Base class for presenter views that allows the view factory to store /** Base class for presenter views that allows the view factory to store
them in a cache and reuse deactivated views. them in a cache and reuse deactivated views.
......
...@@ -47,14 +47,12 @@ class PresenterController; ...@@ -47,14 +47,12 @@ class PresenterController;
class PresenterPaneBorderPainter; class PresenterPaneBorderPainter;
class PresenterTheme; class PresenterTheme;
namespace { typedef ::cppu::WeakComponentImplHelper<
typedef ::cppu::WeakComponentImplHelper< css::awt::XWindowListener,
css::awt::XWindowListener, css::awt::XPaintListener,
css::awt::XPaintListener, css::awt::XMouseListener,
css::awt::XMouseListener, css::awt::XFocusListener
css::awt::XFocusListener > PresenterWindowManagerInterfaceBase;
> PresenterWindowManagerInterfaceBase;
}
/** A simple manager of the positions of the panes of the presenter screen. /** A simple manager of the positions of the panes of the presenter screen.
Uses relative coordinates of the four sides of each pane. Allows panes Uses relative coordinates of the four sides of each pane. Allows panes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment