summaryrefslogtreecommitdiff
path: root/sdext/source/presenter
diff options
context:
space:
mode:
Diffstat (limited to 'sdext/source/presenter')
-rwxr-xr-xsdext/source/presenter/PresenterAccessibility.cxx156
-rwxr-xr-xsdext/source/presenter/PresenterAccessibility.hxx10
-rw-r--r--sdext/source/presenter/PresenterAnimation.cxx2
-rw-r--r--sdext/source/presenter/PresenterAnimation.hxx2
-rw-r--r--sdext/source/presenter/PresenterAnimator.cxx12
-rw-r--r--sdext/source/presenter/PresenterAnimator.hxx2
-rw-r--r--sdext/source/presenter/PresenterBitmapContainer.cxx14
-rw-r--r--sdext/source/presenter/PresenterBitmapContainer.hxx4
-rw-r--r--sdext/source/presenter/PresenterButton.cxx16
-rw-r--r--sdext/source/presenter/PresenterButton.hxx14
-rw-r--r--sdext/source/presenter/PresenterCanvasHelper.cxx12
-rw-r--r--sdext/source/presenter/PresenterCanvasHelper.hxx4
-rw-r--r--sdext/source/presenter/PresenterClock.cxx40
-rw-r--r--sdext/source/presenter/PresenterClock.hxx14
-rw-r--r--sdext/source/presenter/PresenterComponent.cxx8
-rw-r--r--sdext/source/presenter/PresenterComponent.hxx2
-rw-r--r--sdext/source/presenter/PresenterConfigurationAccess.cxx18
-rw-r--r--sdext/source/presenter/PresenterConfigurationAccess.hxx6
-rw-r--r--sdext/source/presenter/PresenterController.cxx26
-rw-r--r--sdext/source/presenter/PresenterController.hxx14
-rw-r--r--sdext/source/presenter/PresenterCurrentSlideObserver.cxx2
-rw-r--r--sdext/source/presenter/PresenterCurrentSlideObserver.hxx4
-rw-r--r--sdext/source/presenter/PresenterFrameworkObserver.cxx8
-rw-r--r--sdext/source/presenter/PresenterFrameworkObserver.hxx6
-rw-r--r--sdext/source/presenter/PresenterGeometryHelper.cxx10
-rw-r--r--sdext/source/presenter/PresenterGeometryHelper.hxx6
-rw-r--r--sdext/source/presenter/PresenterHelpView.cxx20
-rw-r--r--sdext/source/presenter/PresenterHelpView.hxx10
-rw-r--r--sdext/source/presenter/PresenterHelper.cxx4
-rw-r--r--sdext/source/presenter/PresenterHelper.hxx2
-rw-r--r--sdext/source/presenter/PresenterNotesView.cxx26
-rw-r--r--sdext/source/presenter/PresenterNotesView.hxx18
-rw-r--r--sdext/source/presenter/PresenterPaintManager.cxx6
-rw-r--r--sdext/source/presenter/PresenterPaintManager.hxx2
-rw-r--r--sdext/source/presenter/PresenterPane.cxx6
-rw-r--r--sdext/source/presenter/PresenterPane.hxx10
-rw-r--r--sdext/source/presenter/PresenterPaneAnimator.cxx64
-rw-r--r--sdext/source/presenter/PresenterPaneAnimator.hxx2
-rw-r--r--sdext/source/presenter/PresenterPaneBase.cxx16
-rw-r--r--sdext/source/presenter/PresenterPaneBase.hxx10
-rw-r--r--sdext/source/presenter/PresenterPaneBorderManager.cxx26
-rw-r--r--sdext/source/presenter/PresenterPaneBorderManager.hxx20
-rw-r--r--sdext/source/presenter/PresenterPaneBorderPainter.cxx46
-rw-r--r--sdext/source/presenter/PresenterPaneBorderPainter.hxx6
-rw-r--r--sdext/source/presenter/PresenterPaneContainer.cxx14
-rw-r--r--sdext/source/presenter/PresenterPaneContainer.hxx10
-rw-r--r--sdext/source/presenter/PresenterPaneFactory.cxx12
-rw-r--r--sdext/source/presenter/PresenterPaneFactory.hxx8
-rw-r--r--sdext/source/presenter/PresenterProtocolHandler.cxx26
-rw-r--r--sdext/source/presenter/PresenterProtocolHandler.hxx8
-rw-r--r--sdext/source/presenter/PresenterScreen.cxx32
-rw-r--r--sdext/source/presenter/PresenterScreen.hxx12
-rw-r--r--sdext/source/presenter/PresenterScrollBar.cxx44
-rw-r--r--sdext/source/presenter/PresenterScrollBar.hxx20
-rw-r--r--sdext/source/presenter/PresenterSlidePreview.cxx8
-rw-r--r--sdext/source/presenter/PresenterSlidePreview.hxx6
-rw-r--r--sdext/source/presenter/PresenterSlideShowView.cxx18
-rw-r--r--sdext/source/presenter/PresenterSlideShowView.hxx60
-rw-r--r--sdext/source/presenter/PresenterSlideSorter.cxx60
-rw-r--r--sdext/source/presenter/PresenterSlideSorter.hxx16
-rw-r--r--sdext/source/presenter/PresenterSprite.cxx2
-rw-r--r--sdext/source/presenter/PresenterSprite.hxx12
-rw-r--r--sdext/source/presenter/PresenterSpritePane.cxx4
-rw-r--r--sdext/source/presenter/PresenterSpritePane.hxx12
-rwxr-xr-xsdext/source/presenter/PresenterTextView.cxx20
-rwxr-xr-xsdext/source/presenter/PresenterTextView.hxx16
-rw-r--r--sdext/source/presenter/PresenterTheme.cxx24
-rw-r--r--sdext/source/presenter/PresenterTheme.hxx8
-rw-r--r--sdext/source/presenter/PresenterTimer.cxx24
-rw-r--r--sdext/source/presenter/PresenterTimer.hxx12
-rw-r--r--sdext/source/presenter/PresenterToolBar.cxx72
-rw-r--r--sdext/source/presenter/PresenterToolBar.hxx28
-rw-r--r--sdext/source/presenter/PresenterUIPainter.cxx6
-rw-r--r--sdext/source/presenter/PresenterUIPainter.hxx4
-rw-r--r--sdext/source/presenter/PresenterViewFactory.cxx30
-rw-r--r--sdext/source/presenter/PresenterViewFactory.hxx8
-rw-r--r--sdext/source/presenter/PresenterWindowManager.cxx58
-rw-r--r--sdext/source/presenter/PresenterWindowManager.hxx14
-rw-r--r--sdext/source/presenter/registry/data/org/openoffice/Office/extension/PresenterScreen.xcu8
79 files changed, 711 insertions, 711 deletions
diff --git a/sdext/source/presenter/PresenterAccessibility.cxx b/sdext/source/presenter/PresenterAccessibility.cxx
index 827754e1524b..e5b39c1cbc48 100755
--- a/sdext/source/presenter/PresenterAccessibility.cxx
+++ b/sdext/source/presenter/PresenterAccessibility.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -108,14 +108,14 @@ public:
const sal_Int16 nEventId,
const cssu::Any& rOldValue,
const cssu::Any& rNewValue);
-
+
void UpdateStateSet (void);
-
+
//----- XAccessible -------------------------------------------------------
virtual cssu::Reference<cssa::XAccessibleContext> SAL_CALL
- getAccessibleContext (void)
+ getAccessibleContext (void)
throw (cssu::RuntimeException);
@@ -131,7 +131,7 @@ public:
virtual cssu::Reference< cssa::XAccessible> SAL_CALL getAccessibleParent (void)
throw (cssu::RuntimeException);
- virtual sal_Int32 SAL_CALL getAccessibleIndexInParent (void)
+ virtual sal_Int32 SAL_CALL getAccessibleIndexInParent (void)
throw (cssu::RuntimeException);
virtual sal_Int16 SAL_CALL getAccessibleRole (void)
@@ -155,48 +155,48 @@ public:
throw (cssu::RuntimeException,
cssa::IllegalAccessibleComponentStateException);
-
+
//----- XAccessibleComponent --------------------------------------------
virtual sal_Bool SAL_CALL containsPoint (
- const css::awt::Point& aPoint)
+ const css::awt::Point& aPoint)
throw (cssu::RuntimeException);
- virtual cssu::Reference<cssa::XAccessible> SAL_CALL
+ virtual cssu::Reference<cssa::XAccessible> SAL_CALL
getAccessibleAtPoint (
- const css::awt::Point& aPoint)
+ const css::awt::Point& aPoint)
throw (cssu::RuntimeException);
virtual css::awt::Rectangle SAL_CALL getBounds (void)
throw (cssu::RuntimeException);
- virtual css::awt::Point SAL_CALL getLocation (void)
+ virtual css::awt::Point SAL_CALL getLocation (void)
throw (cssu::RuntimeException);
- virtual css::awt::Point SAL_CALL getLocationOnScreen (void)
+ virtual css::awt::Point SAL_CALL getLocationOnScreen (void)
throw (cssu::RuntimeException);
- virtual css::awt::Size SAL_CALL getSize (void)
+ virtual css::awt::Size SAL_CALL getSize (void)
throw (cssu::RuntimeException);
- virtual void SAL_CALL grabFocus (void)
+ virtual void SAL_CALL grabFocus (void)
throw (cssu::RuntimeException);
- virtual sal_Int32 SAL_CALL getForeground (void)
+ virtual sal_Int32 SAL_CALL getForeground (void)
throw (cssu::RuntimeException);
- virtual sal_Int32 SAL_CALL getBackground (void)
+ virtual sal_Int32 SAL_CALL getBackground (void)
throw (cssu::RuntimeException);
//----- XAccessibleEventBroadcaster --------------------------------------
virtual void SAL_CALL addEventListener (
- const cssu::Reference<cssa::XAccessibleEventListener>& rxListener)
+ const cssu::Reference<cssa::XAccessibleEventListener>& rxListener)
throw (cssu::RuntimeException);
- virtual void SAL_CALL removeEventListener (
- const cssu::Reference<cssa::XAccessibleEventListener>& rxListener)
+ virtual void SAL_CALL removeEventListener (
+ const cssu::Reference<cssa::XAccessibleEventListener>& rxListener)
throw (cssu::RuntimeException);
using PresenterAccessibleObjectInterfaceBase::addEventListener;
@@ -233,14 +233,14 @@ protected:
bool mbIsFocused;
cssu::Reference<cssa::XAccessible> mxParentAccessible;
::std::vector<rtl::Reference<AccessibleObject> > maChildren;
- ::std::vector<Reference<XAccessibleEventListener> > maListeners;
+ ::std::vector<Reference<XAccessibleEventListener> > maListeners;
virtual awt::Point GetRelativeLocation (void);
virtual awt::Size GetSize (void);
virtual awt::Point GetAbsoluteParentLocation (void);
virtual bool GetWindowState (const sal_Int16 nType) const;
-
+
void UpdateState (const sal_Int16 aState, const bool bValue);
sal_Bool IsDisposed (void) const;
@@ -368,74 +368,74 @@ public:
getAccessibleRelationSet (void)
throw (cssu::RuntimeException);
-
+
//----- XAccessibleText ---------------------------------------------------
-
+
virtual sal_Int32 SAL_CALL getCaretPosition (void)
throw (cssu::RuntimeException);
-
+
virtual sal_Bool SAL_CALL setCaretPosition (sal_Int32 nIndex)
throw (::com::sun::star::lang::IndexOutOfBoundsException, cssu::RuntimeException);
-
+
virtual sal_Unicode SAL_CALL getCharacter (sal_Int32 nIndex)
throw (::com::sun::star::lang::IndexOutOfBoundsException, cssu::RuntimeException);
-
+
virtual cssu::Sequence<css::beans::PropertyValue> SAL_CALL
getCharacterAttributes (
::sal_Int32 nIndex,
const cssu::Sequence<rtl::OUString>& rRequestedAttributes)
throw (css::lang::IndexOutOfBoundsException, cssu::RuntimeException);
-
+
virtual css::awt::Rectangle SAL_CALL getCharacterBounds (sal_Int32 nIndex)
throw (css::lang::IndexOutOfBoundsException, cssu::RuntimeException);
-
+
virtual sal_Int32 SAL_CALL getCharacterCount (void)
throw (cssu::RuntimeException);
-
+
virtual sal_Int32 SAL_CALL getIndexAtPoint (const css::awt::Point& rPoint)
throw (cssu::RuntimeException);
-
+
virtual ::rtl::OUString SAL_CALL getSelectedText (void)
throw (cssu::RuntimeException);
-
+
virtual sal_Int32 SAL_CALL getSelectionStart (void)
throw (cssu::RuntimeException);
virtual sal_Int32 SAL_CALL getSelectionEnd (void)
throw (cssu::RuntimeException);
-
+
virtual sal_Bool SAL_CALL setSelection (sal_Int32 nStartIndex, sal_Int32 nEndIndex)
throw (css::lang::IndexOutOfBoundsException, cssu::RuntimeException);
virtual ::rtl::OUString SAL_CALL getText (void)
throw (cssu::RuntimeException);
-
+
virtual ::rtl::OUString SAL_CALL getTextRange (
sal_Int32 nStartIndex,
sal_Int32 nEndIndex)
throw (css::lang::IndexOutOfBoundsException, cssu::RuntimeException);
-
+
virtual cssa::TextSegment SAL_CALL getTextAtIndex (
sal_Int32 nIndex,
sal_Int16 nTextType)
throw (css::lang::IndexOutOfBoundsException,
css::lang::IllegalArgumentException,
cssu::RuntimeException);
-
+
virtual cssa::TextSegment SAL_CALL getTextBeforeIndex (
sal_Int32 nIndex,
sal_Int16 nTextType)
throw (css::lang::IndexOutOfBoundsException,
css::lang::IllegalArgumentException,
cssu::RuntimeException);
-
+
virtual cssa::TextSegment SAL_CALL getTextBehindIndex (
sal_Int32 nIndex,
sal_Int16 nTextType)
throw (css::lang::IndexOutOfBoundsException,
css::lang::IllegalArgumentException,
cssu::RuntimeException);
-
+
virtual ::sal_Bool SAL_CALL copyText (sal_Int32 nStartIndex, sal_Int32 nEndIndex)
throw (css::lang::IndexOutOfBoundsException, cssu::RuntimeException);
@@ -504,7 +504,7 @@ public:
aConfiguration.GetConfigurationNode(A2S("Presenter/Accessibility/Preview/String"))
>>= sName;
}
-
+
rtl::Reference<PresenterAccessible::AccessibleObject> pObject (
new PresenterAccessible::AccessibleObject(
aLocale,
@@ -530,7 +530,7 @@ public:
const css::lang::Locale aLocale,
const sal_Int16 nRole,
const ::rtl::OUString& rsName);
-
+
static rtl::Reference<PresenterAccessible::AccessibleObject> Create (
const css::uno::Reference<css::uno::XComponentContext>& rxContext,
@@ -538,7 +538,7 @@ public:
const Reference<awt::XWindow>& rxContentWindow,
const Reference<awt::XWindow>& rxBorderWindow,
const ::boost::shared_ptr<PresenterTextView>& rpTextView);
-
+
void SetTextView (const ::boost::shared_ptr<PresenterTextView>& rpTextView);
virtual void SetWindow (
@@ -625,11 +625,11 @@ PresenterPaneContainer::SharedPaneDescriptor PresenterAccessible::GetPreviewPane
if ( ! mpPresenterController.is())
return pPreviewPane;
-
+
rtl::Reference<PresenterPaneContainer> pContainer (mpPresenterController->GetPaneContainer());
if ( ! pContainer.is())
return pPreviewPane;
-
+
pPreviewPane = pContainer->FindPaneURL(PresenterPaneFactory::msCurrentSlidePreviewPaneURL);
Reference<drawing::framework::XPane> xPreviewPane;
if (pPreviewPane)
@@ -668,7 +668,7 @@ void PresenterAccessible::UpdateAccessibilityHierarchy (void)
Reference<drawing::framework::XPane> xPreviewPane;
if (pPreviewPane)
xPreviewPane = pPreviewPane->mxPane.get();
-
+
// Get the notes pane.
PresenterPaneContainer::SharedPaneDescriptor pNotesPane(
pPaneContainer->FindPaneURL(PresenterPaneFactory::msNotesPaneURL));
@@ -808,7 +808,7 @@ void SAL_CALL PresenterAccessible::disposing (void)
if (mxMainPane.is())
mxMainPane->setAccessible(NULL);
}
-
+
mpAccessiblePreview = NULL;
mpAccessibleNotes = NULL;
mpAccessibleConsole = NULL;
@@ -819,7 +819,7 @@ void SAL_CALL PresenterAccessible::disposing (void)
//----- XAccessible -----------------------------------------------------------
-Reference<XAccessibleContext> SAL_CALL PresenterAccessible::getAccessibleContext (void)
+Reference<XAccessibleContext> SAL_CALL PresenterAccessible::getAccessibleContext (void)
throw (cssu::RuntimeException)
{
if ( ! mpAccessibleConsole.is())
@@ -856,7 +856,7 @@ void SAL_CALL PresenterAccessible::focusGained (const css::awt::FocusEvent& rEve
OSL_TRACE("PresenterAccessible::focusGained at %x and window %x\r", this,
mxMainWindow.get());
#endif
-
+
AccessibleFocusManager::Instance()->FocusObject(mpAccessibleConsole);
}
@@ -871,7 +871,7 @@ void SAL_CALL PresenterAccessible::focusLost (const css::awt::FocusEvent& rEvent
#ifdef VERBOSE
OSL_TRACE("PresenterAccessible::focusLost at %x\r", this);
#endif
-
+
AccessibleFocusManager::Instance()->FocusObject(NULL);
}
@@ -956,7 +956,7 @@ void PresenterAccessible::AccessibleObject::SetWindow (
{
mxContentWindow->removeWindowListener(this);
}
-
+
mxContentWindow = xContentWindow;
mxBorderWindow = Reference<awt::XWindow2>(rxBorderWindow, UNO_QUERY);
@@ -993,7 +993,7 @@ void SAL_CALL PresenterAccessible::AccessibleObject::disposing (void)
//----- XAccessible -------------------------------------------------------
Reference<XAccessibleContext> SAL_CALL
- PresenterAccessible::AccessibleObject::getAccessibleContext (void)
+ PresenterAccessible::AccessibleObject::getAccessibleContext (void)
throw (RuntimeException)
{
ThrowIfDisposed();
@@ -1012,7 +1012,7 @@ sal_Int32 SAL_CALL PresenterAccessible::AccessibleObject::getAccessibleChildCoun
ThrowIfDisposed();
const sal_Int32 nChildCount (maChildren.size());
-
+
return nChildCount;
}
@@ -1064,7 +1064,7 @@ sal_Int32 SAL_CALL
return nIndex;
}
}
-
+
return 0;
}
@@ -1153,7 +1153,7 @@ lang::Locale SAL_CALL
//----- XAccessibleComponent ------------------------------------------------
sal_Bool SAL_CALL PresenterAccessible::AccessibleObject::containsPoint (
- const awt::Point& rPoint)
+ const awt::Point& rPoint)
throw (RuntimeException)
{
ThrowIfDisposed();
@@ -1173,7 +1173,7 @@ sal_Bool SAL_CALL PresenterAccessible::AccessibleObject::containsPoint (
-Reference<XAccessible> SAL_CALL
+Reference<XAccessible> SAL_CALL
PresenterAccessible::AccessibleObject::getAccessibleAtPoint (const awt::Point& rPoint)
throw (RuntimeException)
{
@@ -1195,14 +1195,14 @@ awt::Rectangle SAL_CALL PresenterAccessible::AccessibleObject::getBounds (void)
const awt::Point aLocation (GetRelativeLocation());
const awt::Size aSize (GetSize());
-
+
return awt::Rectangle (aLocation.X, aLocation.Y, aSize.Width, aSize.Height);
}
-awt::Point SAL_CALL PresenterAccessible::AccessibleObject::getLocation (void)
+awt::Point SAL_CALL PresenterAccessible::AccessibleObject::getLocation (void)
throw (RuntimeException)
{
ThrowIfDisposed();
@@ -1215,7 +1215,7 @@ awt::Point SAL_CALL PresenterAccessible::AccessibleObject::getLocation (void)
-awt::Point SAL_CALL PresenterAccessible::AccessibleObject::getLocationOnScreen (void)
+awt::Point SAL_CALL PresenterAccessible::AccessibleObject::getLocationOnScreen (void)
throw (RuntimeException)
{
ThrowIfDisposed();
@@ -1225,13 +1225,13 @@ awt::Point SAL_CALL PresenterAccessible::AccessibleObject::getLocationOnScreen (
return awt::Point(
aRelativeLocation.X + aParentLocationOnScreen.X,
- aRelativeLocation.Y + aParentLocationOnScreen.Y);
+ aRelativeLocation.Y + aParentLocationOnScreen.Y);
}
-awt::Size SAL_CALL PresenterAccessible::AccessibleObject::getSize (void)
+awt::Size SAL_CALL PresenterAccessible::AccessibleObject::getSize (void)
throw (RuntimeException)
{
ThrowIfDisposed();
@@ -1244,7 +1244,7 @@ awt::Size SAL_CALL PresenterAccessible::AccessibleObject::getSize (void)
-void SAL_CALL PresenterAccessible::AccessibleObject::grabFocus (void)
+void SAL_CALL PresenterAccessible::AccessibleObject::grabFocus (void)
throw (RuntimeException)
{
ThrowIfDisposed();
@@ -1257,7 +1257,7 @@ void SAL_CALL PresenterAccessible::AccessibleObject::grabFocus (void)
-sal_Int32 SAL_CALL PresenterAccessible::AccessibleObject::getForeground (void)
+sal_Int32 SAL_CALL PresenterAccessible::AccessibleObject::getForeground (void)
throw (RuntimeException)
{
ThrowIfDisposed();
@@ -1268,11 +1268,11 @@ sal_Int32 SAL_CALL PresenterAccessible::AccessibleObject::getForeground (void)
-sal_Int32 SAL_CALL PresenterAccessible::AccessibleObject::getBackground (void)
+sal_Int32 SAL_CALL PresenterAccessible::AccessibleObject::getBackground (void)
throw (RuntimeException)
{
ThrowIfDisposed();
-
+
return 0x00000000;
}
@@ -1282,7 +1282,7 @@ sal_Int32 SAL_CALL PresenterAccessible::AccessibleObject::getBackground (void)
//----- XAccessibleEventBroadcaster -------------------------------------------
void SAL_CALL PresenterAccessible::AccessibleObject::addEventListener (
- const Reference<XAccessibleEventListener>& rxListener)
+ const Reference<XAccessibleEventListener>& rxListener)
throw (RuntimeException)
{
if (rxListener.is())
@@ -1304,8 +1304,8 @@ void SAL_CALL PresenterAccessible::AccessibleObject::addEventListener (
-void SAL_CALL PresenterAccessible::AccessibleObject::removeEventListener (
- const Reference<XAccessibleEventListener>& rxListener)
+void SAL_CALL PresenterAccessible::AccessibleObject::removeEventListener (
+ const Reference<XAccessibleEventListener>& rxListener)
throw (RuntimeException)
{
ThrowIfDisposed();
@@ -1398,7 +1398,7 @@ bool PresenterAccessible::AccessibleObject::GetWindowState (const sal_Int16 nTyp
case AccessibleStateType::FOCUSABLE:
return true;
-
+
case AccessibleStateType::FOCUSED:
return mbIsFocused;
@@ -1796,7 +1796,7 @@ AccessibleRelation SAL_CALL AccessibleRelationSet::getRelationByType (sal_Int16
//===== PresenterAccessible::AccessibleParagraph ==============================
-
+
PresenterAccessible::AccessibleParagraph::AccessibleParagraph (
const lang::Locale aLocale,
const sal_Int16 nRole,
@@ -1838,7 +1838,7 @@ Reference<XAccessibleRelationSet> SAL_CALL
pSet->AddRelation(
AccessibleRelationType::CONTENT_FLOWS_FROM,
xParentContext->getAccessibleChild(mnParagraphIndex-1));
-
+
if (mnParagraphIndex<xParentContext->getAccessibleChildCount()-1)
pSet->AddRelation(
AccessibleRelationType::CONTENT_FLOWS_TO,
@@ -1965,7 +1965,7 @@ awt::Rectangle SAL_CALL PresenterAccessible::AccessibleParagraph::getCharacterBo
return aCharacterBox;
}
-
+
@@ -1980,7 +1980,7 @@ sal_Int32 SAL_CALL PresenterAccessible::AccessibleParagraph::getCharacterCount (
return nCount;
}
-
+
@@ -1996,7 +1996,7 @@ sal_Int32 SAL_CALL PresenterAccessible::AccessibleParagraph::getIndexAtPoint (
return nIndex;
}
-
+
@@ -2007,7 +2007,7 @@ sal_Int32 SAL_CALL PresenterAccessible::AccessibleParagraph::getIndexAtPoint (
return getTextRange(getSelectionStart(), getSelectionEnd());
}
-
+
@@ -2029,7 +2029,7 @@ sal_Int32 SAL_CALL PresenterAccessible::AccessibleParagraph::getSelectionEnd (vo
return getCaretPosition();
}
-
+
@@ -2055,7 +2055,7 @@ sal_Bool SAL_CALL PresenterAccessible::AccessibleParagraph::setSelection (
::rtl::OUString sText;
if (mpParagraph)
sText = mpParagraph->GetText();
-
+
return sText;
}
@@ -2217,7 +2217,7 @@ bool PresenterAccessible::AccessibleParagraph::GetWindowState (const sal_Int16 n
case AccessibleStateType::ACTIVE:
return true;
-
+
default:
return AccessibleObject::GetWindowState(nType);
}
@@ -2238,7 +2238,7 @@ AccessibleNotes::AccessibleNotes (
mpTextView()
{
}
-
+
@@ -2274,7 +2274,7 @@ rtl::Reference<PresenterAccessible::AccessibleObject> AccessibleNotes::Create (
-
+
void AccessibleNotes::SetTextView (
const ::boost::shared_ptr<PresenterTextView>& rpTextView)
{
@@ -2288,7 +2288,7 @@ void AccessibleNotes::SetTextView (
mpTextView->SetTextChangeBroadcaster(
::boost::function<void(void)>());
}
-
+
mpTextView = rpTextView;
if (mpTextView)
@@ -2370,7 +2370,7 @@ void AccessibleNotes::NotifyCaretChange (
AccessibleFocusManager::Instance()->FocusObject(
nNewParagraphIndex >= 0
? maChildren[nNewParagraphIndex]
- : this);
+ : this);
if (nOldParagraphIndex != nNewParagraphIndex)
{
diff --git a/sdext/source/presenter/PresenterAccessibility.hxx b/sdext/source/presenter/PresenterAccessibility.hxx
index 04b4bc214650..dcfa5b6ead91 100755
--- a/sdext/source/presenter/PresenterAccessibility.hxx
+++ b/sdext/source/presenter/PresenterAccessibility.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -79,7 +79,7 @@ public:
void SetAccessibleParent (const cssu::Reference<cssa::XAccessible>& rxAccessibleParent);
void UpdateAccessibilityHierarchy (void);
-
+
void NotifyCurrentSlideChange (
const sal_Int32 nCurrentSlideIndex,
const sal_Int32 nSlideCount);
@@ -95,7 +95,7 @@ public:
//----- XAccessible -------------------------------------------------------
virtual cssu::Reference<cssa::XAccessibleContext> SAL_CALL
- getAccessibleContext (void)
+ getAccessibleContext (void)
throw (cssu::RuntimeException);
@@ -107,7 +107,7 @@ public:
virtual void SAL_CALL focusLost (const css::awt::FocusEvent& rEvent)
throw (cssu::RuntimeException);
-
+
//----- XEventListener ----------------------------------------------------
virtual void SAL_CALL disposing (const css::lang::EventObject& rEvent)
@@ -119,7 +119,7 @@ public:
virtual void SAL_CALL initialize (const cssu::Sequence<cssu::Any>& rArguments)
throw (cssu::RuntimeException);
-
+
class AccessibleObject;
class AccessibleParagraph;
diff --git a/sdext/source/presenter/PresenterAnimation.cxx b/sdext/source/presenter/PresenterAnimation.cxx
index 40b626ecec0a..da42885db03d 100644
--- a/sdext/source/presenter/PresenterAnimation.cxx
+++ b/sdext/source/presenter/PresenterAnimation.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sdext/source/presenter/PresenterAnimation.hxx b/sdext/source/presenter/PresenterAnimation.hxx
index a1148cd03737..47166dde06b0 100644
--- a/sdext/source/presenter/PresenterAnimation.hxx
+++ b/sdext/source/presenter/PresenterAnimation.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sdext/source/presenter/PresenterAnimator.cxx b/sdext/source/presenter/PresenterAnimator.cxx
index 572b2b4ff2ec..5efa3e129210 100644
--- a/sdext/source/presenter/PresenterAnimator.cxx
+++ b/sdext/source/presenter/PresenterAnimator.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -79,11 +79,11 @@ void PresenterAnimator::Process (void)
::osl::MutexGuard aGuard (m_aMutex);
mnNextTime = 0;
-
+
const sal_uInt64 nCurrentTime (GetCurrentTime());
ActivateAnimations(nCurrentTime);
-
+
while ( ! maActiveAnimations.empty())
{
sal_uInt64 nRequestedTime (maActiveAnimations.begin()->first);
@@ -91,9 +91,9 @@ void PresenterAnimator::Process (void)
if (nRequestedTime > nCurrentTime)
break;
-
+
maActiveAnimations.erase(maActiveAnimations.begin());
-
+
const double nTotalDuration (double(pAnimation->GetEndTime() - pAnimation->GetStartTime()));
double nProgress (nTotalDuration > 0 ? (nCurrentTime - pAnimation->GetStartTime()) / nTotalDuration : 1);
if (nProgress <= 0)
@@ -104,7 +104,7 @@ void PresenterAnimator::Process (void)
OSL_TRACE("running animation step at %f (requested was %f) %f\n",
nCurrentTime/1e6, nRequestedTime/1e6, nProgress);
pAnimation->Run(nProgress, nCurrentTime);
-
+
if (nCurrentTime < pAnimation->GetEndTime())
maActiveAnimations.insert(
AnimationList::value_type(
diff --git a/sdext/source/presenter/PresenterAnimator.hxx b/sdext/source/presenter/PresenterAnimator.hxx
index 0c0efadb22f7..fcd3fc9b2c8e 100644
--- a/sdext/source/presenter/PresenterAnimator.hxx
+++ b/sdext/source/presenter/PresenterAnimator.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sdext/source/presenter/PresenterBitmapContainer.cxx b/sdext/source/presenter/PresenterBitmapContainer.cxx
index 024bb6ffb5d0..6bfa228172c0 100644
--- a/sdext/source/presenter/PresenterBitmapContainer.cxx
+++ b/sdext/source/presenter/PresenterBitmapContainer.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -82,7 +82,7 @@ PresenterBitmapContainer::PresenterBitmapContainer (
mxPresenterHelper(rxPresenterHelper)
{
Initialize(rxComponentContext);
-
+
// Get access to the configuration.
PresenterConfigurationAccess aConfiguration (
rxComponentContext,
@@ -173,7 +173,7 @@ void PresenterBitmapContainer::LoadBitmaps (
if ( ! rxBitmapList.is())
return;
-
+
try
{
// Load all button bitmaps.
@@ -369,7 +369,7 @@ PresenterBitmapContainer::BitmapDescriptor::BitmapDescriptor (void)
mxMaskBitmap()
{
}
-
+
@@ -429,19 +429,19 @@ css::uno::Reference<css::rendering::XBitmap>
case Normal:
default:
return mxNormalBitmap;
-
+
case MouseOver:
if (mxMouseOverBitmap.is())
return mxMouseOverBitmap;
else if (bMissingDefaultsToNormal)
return mxNormalBitmap;
-
+
case ButtonDown:
if (mxButtonDownBitmap.is())
return mxButtonDownBitmap;
else if (bMissingDefaultsToNormal)
return mxNormalBitmap;
-
+
case Disabled:
if (mxDisabledBitmap.is())
return mxDisabledBitmap;
diff --git a/sdext/source/presenter/PresenterBitmapContainer.hxx b/sdext/source/presenter/PresenterBitmapContainer.hxx
index 12811032e578..97d13df596ee 100644
--- a/sdext/source/presenter/PresenterBitmapContainer.hxx
+++ b/sdext/source/presenter/PresenterBitmapContainer.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -64,7 +64,7 @@ public:
public:
BitmapDescriptor (void);
BitmapDescriptor (const ::boost::shared_ptr<BitmapDescriptor>& rpDefault);
-
+
enum Mode {Normal, MouseOver, ButtonDown, Disabled, Mask};
css::uno::Reference<css::rendering::XBitmap> GetNormalBitmap (void) const;
css::uno::Reference<css::rendering::XBitmap> GetBitmap (
diff --git a/sdext/source/presenter/PresenterButton.cxx b/sdext/source/presenter/PresenterButton.cxx
index 2d75885b8a35..3798b262ddf1 100644
--- a/sdext/source/presenter/PresenterButton.cxx
+++ b/sdext/source/presenter/PresenterButton.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -211,7 +211,7 @@ void PresenterButton::SetCenter (const css::geometry::RealPoint2D& rLocation)
maButtonSize.Width,
maButtonSize.Height,
awt::PosSize::POSSIZE);
-
+
Invalidate();
}
else
@@ -266,7 +266,7 @@ css::geometry::IntegerSize2D PresenterButton::GetSize (void)
//----- XWindowListener -------------------------------------------------------
-
+
void SAL_CALL PresenterButton::windowResized (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException)
{
@@ -277,7 +277,7 @@ void SAL_CALL PresenterButton::windowResized (const css::awt::WindowEvent& rEven
-
+
void SAL_CALL PresenterButton::windowMoved (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException)
{
@@ -323,7 +323,7 @@ void SAL_CALL PresenterButton::windowPaint (const css::awt::PaintEvent& rEvent)
xBitmap = mxNormalBitmap;
if ( ! xBitmap.is())
return;
-
+
rendering::ViewState aViewState(
geometry::AffineMatrix2D(1,0,0, 0,1,0),
NULL);
@@ -343,7 +343,7 @@ void SAL_CALL PresenterButton::windowPaint (const css::awt::PaintEvent& rEvent)
-
+
//----- XMouseListener --------------------------------------------------------
void SAL_CALL PresenterButton::mousePressed (const css::awt::MouseEvent& rEvent)
@@ -403,7 +403,7 @@ void SAL_CALL PresenterButton::mouseExited (const css::awt::MouseEvent& rEvent)
//----- XMouseMotionListener --------------------------------------------------
-
+
void SAL_CALL PresenterButton::mouseMoved (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException)
{
@@ -490,7 +490,7 @@ void PresenterButton::RenderButton (
PresenterCanvasHelper::SetDeviceColor(aRenderState, rpFont->mnColor);
aRenderState.AffineTransform.m02 = (rSize.Width - aTextBBox.X2 + aTextBBox.X1)/2;
aRenderState.AffineTransform.m12 = (rSize.Height - aTextBBox.Y2 + aTextBBox.Y1)/2 - aTextBBox.Y1;
-
+
rxCanvas->drawText(
aContext,
rpFont->mxFont,
diff --git a/sdext/source/presenter/PresenterButton.hxx b/sdext/source/presenter/PresenterButton.hxx
index bbd93864f100..eaa0ffdd7a25 100644
--- a/sdext/source/presenter/PresenterButton.hxx
+++ b/sdext/source/presenter/PresenterButton.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -85,10 +85,10 @@ public:
css::geometry::IntegerSize2D GetSize (void);
// XWindowListener
-
+
virtual void SAL_CALL windowResized (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL windowMoved (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException);
@@ -104,7 +104,7 @@ public:
virtual void SAL_CALL windowPaint (const css::awt::PaintEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
// XMouseListener
virtual void SAL_CALL mousePressed (const css::awt::MouseEvent& rEvent)
@@ -121,10 +121,10 @@ public:
// XMouseMotionListener
-
+
virtual void SAL_CALL mouseMoved (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL mouseDragged (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
@@ -175,7 +175,7 @@ private:
static css::uno::Reference<css::beans::XPropertySet> GetConfigurationProperties (
const css::uno::Reference<css::uno::XComponentContext>& rxComponentContext,
const ::rtl::OUString& rsConfgurationName);
-
+
void ThrowIfDisposed (void) const
throw (::com::sun::star::lang::DisposedException);
};
diff --git a/sdext/source/presenter/PresenterCanvasHelper.cxx b/sdext/source/presenter/PresenterCanvasHelper.cxx
index e9c72764fcc5..7acdf867c8c0 100644
--- a/sdext/source/presenter/PresenterCanvasHelper.cxx
+++ b/sdext/source/presenter/PresenterCanvasHelper.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -91,7 +91,7 @@ void PresenterCanvasHelper::PaintRectangle (
if ( ! rxCanvas.is() || ! rxCanvas->getDevice().is())
return;
-
+
// Create a clip polypolygon that has the content box as hole.
::std::vector<awt::Rectangle> aRectangles;
aRectangles.reserve(2);
@@ -183,7 +183,7 @@ void PresenterCanvasHelper::PaintTiledBitmap (
/ aBitmapSize.Width) * aBitmapSize.Width;
const sal_Int32 nBottom = ((rRepaintBox.Y + rRepaintBox.Height - 1 + aBitmapSize.Height - 1)
/ aBitmapSize.Height) * aBitmapSize.Height;
-
+
for (sal_Int32 nY=nTop; nY<=nBottom; nY+=aBitmapSize.Height)
for (sal_Int32 nX=nLeft; nX<=nRight; nX+=aBitmapSize.Width)
{
@@ -233,7 +233,7 @@ void PresenterCanvasHelper::PaintBitmap (
rendering::RenderState aRenderState (rDefaultRenderState);
aRenderState.AffineTransform = geometry::AffineMatrix2D(1,0, rLocation.X, 0,1,rLocation.Y);
aRenderState.Clip = rxPolygon;
-
+
rxCanvas->drawBitmap(
rxBitmap,
aViewState,
@@ -265,7 +265,7 @@ void PresenterCanvasHelper::PaintColor (
// Setup the rendering state to use the given color.
rendering::RenderState aRenderState (rDefaultRenderState);
SetDeviceColor(aRenderState, nColor);
-
+
rxCanvas->fillPolyPolygon(
rxPolygon,
aViewState,
@@ -280,7 +280,7 @@ void PresenterCanvasHelper::SetDeviceColor(
const util::Color aColor)
{
// Other component counts then 4 (RGBA) are not accepted (anymore).
-
+
OSL_ASSERT(rRenderState.DeviceColor.getLength() == 4);
if (rRenderState.DeviceColor.getLength() == 4)
{
diff --git a/sdext/source/presenter/PresenterCanvasHelper.hxx b/sdext/source/presenter/PresenterCanvasHelper.hxx
index 71d5bc40a023..f7543c155d9d 100644
--- a/sdext/source/presenter/PresenterCanvasHelper.hxx
+++ b/sdext/source/presenter/PresenterCanvasHelper.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,7 +52,7 @@ class PresenterCanvasHelper
public:
PresenterCanvasHelper (void);
~PresenterCanvasHelper (void);
-
+
void Paint (
const SharedBitmapDescriptor& rpBitmap,
const css::uno::Reference<css::rendering::XCanvas>& rxCanvas,
diff --git a/sdext/source/presenter/PresenterClock.cxx b/sdext/source/presenter/PresenterClock.cxx
index bccce731efb0..47a03c44b4d9 100644
--- a/sdext/source/presenter/PresenterClock.cxx
+++ b/sdext/source/presenter/PresenterClock.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -152,7 +152,7 @@ namespace {
static const double mnRelativeSecondHandLength;
static const double mnRelativeSecondHandLength2;
static const double mnRelativeSecondHandWidth;
-
+
void PaintAngledLine (
const double nAngle,
const double nInnerRadius,
@@ -295,7 +295,7 @@ PresenterClock::PresenterClock (
mbIsShowSeconds(true)
{
SetMode(mnMode);
-
+
maViewState.AffineTransform = geometry::AffineMatrix2D(1,0,0, 0,1,0);
maRenderState.AffineTransform = geometry::AffineMatrix2D(1,0,0, 0,1,0);
maRenderState.DeviceColor = Sequence<double>(4);
@@ -486,7 +486,7 @@ void SAL_CALL PresenterClock::mouseReleased (const css::awt::MouseEvent& rEvent)
{
(void)rEvent;
}
-
+
@@ -495,7 +495,7 @@ void SAL_CALL PresenterClock::mouseEntered (const css::awt::MouseEvent& rEvent)
{
(void)rEvent;
}
-
+
@@ -564,10 +564,10 @@ void PresenterClock::Paint (const awt::Rectangle& rUpdateBox)
{
if (mbIsResizePending)
Resize();
-
+
Reference<rendering::XPolyPolygon2D> xUpdatePolygon (
PresenterGeometryHelper::CreatePolygon(rUpdateBox, mxCanvas->getDevice()));
-
+
Clear(xUpdatePolygon);
if (mpClockPainter.get() != NULL)
@@ -579,7 +579,7 @@ void PresenterClock::Paint (const awt::Rectangle& rUpdateBox)
mnMinute,
mnSecond,
mbIsShowSeconds);
-
+
if (mpClockPainter2.get() != NULL)
mpClockPainter2->Paint(
mxCanvas,
@@ -595,7 +595,7 @@ void PresenterClock::Paint (const awt::Rectangle& rUpdateBox)
{
(void)e;
}
-
+
// Make the back buffer visible.
Reference<rendering::XSpriteCanvas> xSpriteCanvas (mxCanvas, UNO_QUERY);
if (xSpriteCanvas.is())
@@ -946,7 +946,7 @@ void AnalogBitmapPainter::Paint (
(void)rBackgroundColor;
(void)nSecond;
(void)bShowSeconds;
-
+
if ( ! rxCanvas.is())
return;
@@ -1122,7 +1122,7 @@ void AnalogBitmapPainter::LoadBitmaps (
const Reference<rendering::XCanvas>& rxCanvas)
{
(void)rConfiguration;
-
+
// Get base path to bitmaps.
Reference<deployment::XPackageInformationProvider> xInformationProvider (
mxComponentContext->getValueByName(OUString::createFromAscii(
@@ -1149,7 +1149,7 @@ void AnalogBitmapPainter::LoadBitmaps (
if ( ! xBitmapLoader.is())
return;
-
+
// Iterate over all entries in the bitmap list and load the bitmaps.
Reference<container::XNameAccess> xBitmaps (
rxClockTheme->getByName(OUString::createFromAscii("Bitmaps")),
@@ -1187,14 +1187,14 @@ void AnalogBitmapPainter::LoadBitmap (
pDescriptor = &maHourHand;
else if (rsKey == OUString::createFromAscii("MinuteHand"))
pDescriptor = &maMinuteHand;
-
+
if (pDescriptor == NULL)
return;
-
+
OUString sFileName;
if ( ! (rValues[0] >>= sFileName))
return;
-
+
rValues[1] >>= pDescriptor->maOffset.X;
rValues[2] >>= pDescriptor->maOffset.Y;
@@ -1276,12 +1276,12 @@ void DigitalDefaultPainter::Paint (
{
(void)rBackgroundColor;
(void)rRenderState;
-
+
if ( ! mxFont.is())
CreateFont(rxCanvas,bIsShowSeconds);
if ( ! mxFont.is())
return;
-
+
OUString sText;
if (mbIs24HourFormat)
@@ -1321,7 +1321,7 @@ void DigitalDefaultPainter::Paint (
return;
}
}
-
+
rendering::StringContext aContext (
sText,
0,
@@ -1399,7 +1399,7 @@ void DigitalDefaultPainter::CreateFont (
sTimeTemplate,
0,
sTimeTemplate.getLength());
-
+
// When the font size is adapted to the window size (as large as
// possible without overlapping) then that is done in a four step
// process:
@@ -1427,7 +1427,7 @@ void DigitalDefaultPainter::CreateFont (
aContext,
rendering::TextDirection::WEAK_LEFT_TO_RIGHT,
0));
-
+
if ( ! xLayout.is())
break;
diff --git a/sdext/source/presenter/PresenterClock.hxx b/sdext/source/presenter/PresenterClock.hxx
index 810ae5941803..a4f73971a9f1 100644
--- a/sdext/source/presenter/PresenterClock.hxx
+++ b/sdext/source/presenter/PresenterClock.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -92,7 +92,7 @@ public:
// lang::XEventListener
- virtual void SAL_CALL
+ virtual void SAL_CALL
disposing (const css::lang::EventObject& rEventObject)
throw (css::uno::RuntimeException);
@@ -104,7 +104,7 @@ public:
// XWindowListener
-
+
virtual void SAL_CALL windowResized (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException);
@@ -125,13 +125,13 @@ public:
virtual void SAL_CALL mouseReleased (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL mouseEntered (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL mouseExited (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
// XResourceId
@@ -157,7 +157,7 @@ private:
class Timer;
Timer* mpTimer;
::boost::scoped_ptr<Painter> mpClockPainter;
- /**
+ /**
This is used for debugging to show one clock atop another to compare
the output of the painters.
*/
diff --git a/sdext/source/presenter/PresenterComponent.cxx b/sdext/source/presenter/PresenterComponent.cxx
index ea921c692a73..82490dac67e7 100644
--- a/sdext/source/presenter/PresenterComponent.cxx
+++ b/sdext/source/presenter/PresenterComponent.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -83,7 +83,7 @@ static OUString gsBasePath;
}
}
}
-
+
return gsBasePath;
}
@@ -97,13 +97,13 @@ static struct ImplementationEntry gServiceEntries[] =
PresenterProtocolHandler::Create,
PresenterProtocolHandler::getImplementationName_static,
PresenterProtocolHandler::getSupportedServiceNames_static,
- createSingleComponentFactory, &g_moduleCount.modCnt, 0
+ createSingleComponentFactory, &g_moduleCount.modCnt, 0
},
{
PresenterScreenJob::Create,
PresenterScreenJob::getImplementationName_static,
PresenterScreenJob::getSupportedServiceNames_static,
- createSingleComponentFactory, 0, 0
+ createSingleComponentFactory, 0, 0
},
{ 0, 0, 0, 0, 0, 0 }
};
diff --git a/sdext/source/presenter/PresenterComponent.hxx b/sdext/source/presenter/PresenterComponent.hxx
index 4ff1a173ad6b..acfca17952f8 100644
--- a/sdext/source/presenter/PresenterComponent.hxx
+++ b/sdext/source/presenter/PresenterComponent.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sdext/source/presenter/PresenterConfigurationAccess.cxx b/sdext/source/presenter/PresenterConfigurationAccess.cxx
index fb1aca149d26..d54463b05024 100644
--- a/sdext/source/presenter/PresenterConfigurationAccess.cxx
+++ b/sdext/source/presenter/PresenterConfigurationAccess.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -61,20 +61,20 @@ PresenterConfigurationAccess::PresenterConfigurationAccess (
Sequence<Any> aCreationArguments(3);
aCreationArguments[0] = makeAny(beans::PropertyValue(
A2S("nodepath"),
- 0,
- makeAny(rsRootName),
+ 0,
+ makeAny(rsRootName),
beans::PropertyState_DIRECT_VALUE));
aCreationArguments[1] = makeAny(beans::PropertyValue(
A2S("depth"),
- 0,
+ 0,
makeAny((sal_Int32)-1),
beans::PropertyState_DIRECT_VALUE));
aCreationArguments[2] = makeAny(beans::PropertyValue(
A2S("lazywrite"),
- 0,
+ 0,
makeAny(true),
beans::PropertyState_DIRECT_VALUE));
-
+
OUString sAccessService;
if (eMode == READ_ONLY)
sAccessService = A2S("com.sun.star.configuration.ConfigurationAccess");
@@ -164,11 +164,11 @@ bool PresenterConfigurationAccess::GoToChild (const Predicate& rPredicate)
{
if ( ! IsValid())
return false;
-
+
maNode = Find(Reference<container::XNameAccess>(maNode,UNO_QUERY), rPredicate);
if (Reference<XInterface>(maNode, UNO_QUERY).is())
return true;
-
+
mxRoot = NULL;
return false;
}
@@ -213,7 +213,7 @@ Any PresenterConfigurationAccess::GetConfigurationNode (
::rtl::OUStringToOString(sPathToNode, RTL_TEXTENCODING_UTF8).getStr(),
::rtl::OUStringToOString(rException.Message, RTL_TEXTENCODING_UTF8).getStr());
}
-
+
return Any();
}
diff --git a/sdext/source/presenter/PresenterConfigurationAccess.hxx b/sdext/source/presenter/PresenterConfigurationAccess.hxx
index 8657de24a015..9322a05d846e 100644
--- a/sdext/source/presenter/PresenterConfigurationAccess.hxx
+++ b/sdext/source/presenter/PresenterConfigurationAccess.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -142,7 +142,7 @@ public:
const ::rtl::OUString&,
const ::css::uno::Reference<css::beans::XPropertySet>&) > PropertySetProcessor;
- /** Execute a functor for all elements of the given container.
+ /** Execute a functor for all elements of the given container.
@param rxContainer
The container is a XNameAccess to a list of the configuration.
This can be a node returned by GetConfigurationNode().
@@ -186,7 +186,7 @@ public:
const ::rtl::OUString& rsValue,
const ::rtl::OUString& rsPropertyName,
const css::uno::Reference<css::beans::XPropertySet>& rxNode);
-
+
/** This method wraps a call to getPropertyValue() and returns an empty
Any instead of throwing an exception when the property does not
exist.
diff --git a/sdext/source/presenter/PresenterController.cxx b/sdext/source/presenter/PresenterController.cxx
index 42208f670f56..cf3ec87bb987 100644
--- a/sdext/source/presenter/PresenterController.cxx
+++ b/sdext/source/presenter/PresenterController.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -224,7 +224,7 @@ PresenterController::~PresenterController (void)
void PresenterController::disposing (void)
{
maInstances.erase(mxController->getFrame());
-
+
if (mxMainWindow.is())
{
mxMainWindow->removeKeyListener(this);
@@ -241,7 +241,7 @@ void PresenterController::disposing (void)
mpWindowManager = NULL;
if (xWindowManagerComponent.is())
xWindowManagerComponent->dispose();
-
+
if (mxController.is())
{
Reference<frame::XFrame> xFrame (mxController->getFrame());
@@ -293,7 +293,7 @@ void PresenterController::UpdateCurrentSlide (const sal_Int32 nOffset)
GetSlides(nOffset);
UpdatePaneTitles();
UpdateViews();
-
+
// Update the accessibility object.
if (IsAccessibilityActive())
{
@@ -408,7 +408,7 @@ void PresenterController::UpdatePaneTitles (void)
for (iPane=mpPaneContainer->maPanes.begin(); iPane!=mpPaneContainer->maPanes.end(); ++iPane)
{
OSL_ASSERT((*iPane).get() != NULL);
-
+
OUString sTemplate (IsAccessibilityActive()
? (*iPane)->msAccessibleTitleTemplate
: (*iPane)->msTitleTemplate);
@@ -651,7 +651,7 @@ void PresenterController::DispatchUnoCommand (const OUString& rsCommand) const
util::URL aURL;
aURL.Complete = rsCommand;
- mxUrlTransformer->parseStrict(aURL);
+ mxUrlTransformer->parseStrict(aURL);
Reference<frame::XDispatch> xDispatch (GetDispatch(aURL));
if ( ! xDispatch.is())
@@ -667,7 +667,7 @@ Reference<css::frame::XDispatch> PresenterController::GetDispatch (const util::U
{
if ( ! mxController.is())
return NULL;
-
+
Reference<frame::XDispatchProvider> xDispatchProvider (mxController->getFrame(), UNO_QUERY);
if ( ! xDispatchProvider.is())
return NULL;
@@ -823,7 +823,7 @@ void SAL_CALL PresenterController::notifyConfigurationChange (
sal_Int32 nType (0);
if ( ! (rEvent.UserData >>= nType))
return;
-
+
switch (nType)
{
case ResourceActivationEventType:
@@ -840,7 +840,7 @@ void SAL_CALL PresenterController::notifyConfigurationChange (
{
PresenterPaneContainer::SharedPaneDescriptor pDescriptor (
mpPaneContainer->FindPaneId(xPane->getResourceId()));
-
+
// When there is a call out anchor location set then tell the
// window about it.
if (pDescriptor->mbHasCalloutAnchor)
@@ -1192,7 +1192,7 @@ void SAL_CALL PresenterController::mouseReleased (const css::awt::MouseEvent& rE
{
(void)rEvent;
}
-
+
@@ -1201,7 +1201,7 @@ void SAL_CALL PresenterController::mouseEntered (const css::awt::MouseEvent& rEv
{
(void)rEvent;
}
-
+
@@ -1215,7 +1215,7 @@ void SAL_CALL PresenterController::mouseExited (const css::awt::MouseEvent& rEve
//----- XMouseMotionListener --------------------------------------------------
-
+
void SAL_CALL PresenterController::mouseMoved (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException)
{
@@ -1295,7 +1295,7 @@ void PresenterController::LoadTheme (const Reference<XPane>& rxPane)
double PresenterController::GetSlideAspectRatio (void) const
{
double nSlideAspectRatio (28.0/21.0);
-
+
try
{
if (mxController.is())
diff --git a/sdext/source/presenter/PresenterController.hxx b/sdext/source/presenter/PresenterController.hxx
index c2f3a91a6018..ac3ae7ab7f61 100644
--- a/sdext/source/presenter/PresenterController.hxx
+++ b/sdext/source/presenter/PresenterController.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -168,7 +168,7 @@ public:
const css::frame::FrameActionEvent& rEvent)
throw (com::sun::star::uno::RuntimeException);
-
+
// XKeyListener
virtual void SAL_CALL keyPressed (const css::awt::KeyEvent& rEvent)
@@ -192,16 +192,16 @@ public:
virtual void SAL_CALL mouseReleased (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL mouseEntered (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL mouseExited (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
// XMouseMotionListener
-
+
virtual void SAL_CALL mouseMoved (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
@@ -237,7 +237,7 @@ private:
css::uno::Reference<css::util::XURLTransformer> mxUrlTransformer;
::rtl::Reference<PresenterAccessible> mpAccessibleObject;
bool mbIsAccessibilityActive;
-
+
void InitializePresenterScreen (void);
void InitializeSlideShowView (const css::uno::Reference<css::uno::XInterface>& rxView);
void GetSlides (const sal_Int32 nOffset);
@@ -257,7 +257,7 @@ private:
The modifier bit field as provided by the key up event.
*/
void HandleNumericKeyPress (const sal_Int32 nKey, const sal_Int32 nModifiers);
-
+
void ThrowIfDisposed (void) const throw (::com::sun::star::lang::DisposedException);
};
diff --git a/sdext/source/presenter/PresenterCurrentSlideObserver.cxx b/sdext/source/presenter/PresenterCurrentSlideObserver.cxx
index f516630a87a9..894f7329a18a 100644
--- a/sdext/source/presenter/PresenterCurrentSlideObserver.cxx
+++ b/sdext/source/presenter/PresenterCurrentSlideObserver.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sdext/source/presenter/PresenterCurrentSlideObserver.hxx b/sdext/source/presenter/PresenterCurrentSlideObserver.hxx
index f224ba71f07c..6a976d5f3f0c 100644
--- a/sdext/source/presenter/PresenterCurrentSlideObserver.hxx
+++ b/sdext/source/presenter/PresenterCurrentSlideObserver.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,7 +50,7 @@ namespace {
/** Check periodically the slide show controller and the
frame::XController whether the current slide has changed. If so,
then inform the presenter controller about it.
-
+
Objects of this class have their own lifetime control and destroy
themselves when the presenter controller is diposed.
*/
diff --git a/sdext/source/presenter/PresenterFrameworkObserver.cxx b/sdext/source/presenter/PresenterFrameworkObserver.cxx
index 13c0cf2a72a0..11536c2f7102 100644
--- a/sdext/source/presenter/PresenterFrameworkObserver.cxx
+++ b/sdext/source/presenter/PresenterFrameworkObserver.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,7 +54,7 @@ PresenterFrameworkObserver::PresenterFrameworkObserver (
{
if ( ! mxConfigurationController.is())
throw lang::IllegalArgumentException();
-
+
if (mxConfigurationController->hasPendingRequests())
{
if (rsEventName.getLength() > 0)
@@ -170,7 +170,7 @@ void SAL_CALL PresenterFrameworkObserver::disposing (const lang::EventObject& rE
{
if ( ! rEvent.Source.is())
return;
-
+
if (rEvent.Source == mxConfigurationController)
{
mxConfigurationController = NULL;
@@ -187,7 +187,7 @@ void SAL_CALL PresenterFrameworkObserver::notifyConfigurationChange (
throw (RuntimeException)
{
bool bDispose(false);
-
+
Action aAction (maAction);
Predicate aPredicate (maPredicate);
if (rEvent.Type.equals(A2S("ConfigurationUpdateEnd")))
diff --git a/sdext/source/presenter/PresenterFrameworkObserver.hxx b/sdext/source/presenter/PresenterFrameworkObserver.hxx
index 15b6463a6a86..09e6256ddd65 100644
--- a/sdext/source/presenter/PresenterFrameworkObserver.hxx
+++ b/sdext/source/presenter/PresenterFrameworkObserver.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -74,7 +74,7 @@ public:
static void RunOnUpdateEnd (
const css::uno::Reference<css::drawing::framework::XConfigurationController>&rxController,
const Action& rAction);
-
+
virtual void SAL_CALL disposing (void);
virtual void SAL_CALL disposing (const css::lang::EventObject& rEvent)
throw (css::uno::RuntimeException);
@@ -107,7 +107,7 @@ private:
virtual ~PresenterFrameworkObserver (void);
void Shutdown (void);
-
+
/** Predicate that returns true when the specified resource is active
with respect to the given configuration controller.
*/
diff --git a/sdext/source/presenter/PresenterGeometryHelper.cxx b/sdext/source/presenter/PresenterGeometryHelper.cxx
index b613f8d0c1f5..3112961461e3 100644
--- a/sdext/source/presenter/PresenterGeometryHelper.cxx
+++ b/sdext/source/presenter/PresenterGeometryHelper.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -127,7 +127,7 @@ geometry::RealRectangle2D PresenterGeometryHelper::ConvertRectangle (
-
+
awt::Rectangle PresenterGeometryHelper::TranslateRectangle (
const css::awt::Rectangle& rBox,
const sal_Int32 nXOffset,
@@ -135,7 +135,7 @@ awt::Rectangle PresenterGeometryHelper::TranslateRectangle (
{
return awt::Rectangle(rBox.X + nXOffset, rBox.Y + nYOffset, rBox.Width, rBox.Height);
}
-
+
@@ -207,7 +207,7 @@ awt::Rectangle PresenterGeometryHelper::Union (
return rBox2;
else if (rBox2.Width<=0 || rBox2.Height<=0)
return rBox1;
-
+
const sal_Int32 nLeft (::std::min(rBox1.X, rBox2.X));
const sal_Int32 nTop (::std::min(rBox1.Y, rBox2.Y));
const sal_Int32 nRight (::std::max(Right(rBox1), Right(rBox2)));
@@ -319,7 +319,7 @@ Reference<rendering::XPolyPolygon2D> PresenterGeometryHelper::CreatePolygon(
aPoints[nIndex][2] = geometry::RealPoint2D(rBox.X+rBox.Width, rBox.Y+rBox.Height);
aPoints[nIndex][3] = geometry::RealPoint2D(rBox.X+rBox.Width, rBox.Y);
}
-
+
Reference<rendering::XLinePolyPolygon2D> xPolygon (
rxDevice->createCompatibleLinePolyPolygon(aPoints));
Reference<rendering::XPolyPolygon2D> xRectangle (xPolygon, UNO_QUERY);
diff --git a/sdext/source/presenter/PresenterGeometryHelper.hxx b/sdext/source/presenter/PresenterGeometryHelper.hxx
index 15f70f7647ec..e1b5a2d1f2ef 100644
--- a/sdext/source/presenter/PresenterGeometryHelper.hxx
+++ b/sdext/source/presenter/PresenterGeometryHelper.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -68,12 +68,12 @@ public:
// static css::awt::Size ConvertSize (
// const css::geometry::RealSize2D& rSize);
-
+
static css::awt::Rectangle TranslateRectangle (
const css::awt::Rectangle& rBox,
const sal_Int32 nXOffset,
const sal_Int32 nYOffset);
-
+
static css::awt::Rectangle Intersection (
const css::awt::Rectangle& rBox1,
const css::awt::Rectangle& rBox2);
diff --git a/sdext/source/presenter/PresenterHelpView.cxx b/sdext/source/presenter/PresenterHelpView.cxx
index 0e08ad6e92ce..f74294420b4c 100644
--- a/sdext/source/presenter/PresenterHelpView.cxx
+++ b/sdext/source/presenter/PresenterHelpView.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -160,7 +160,7 @@ PresenterHelpView::PresenterHelpView (
mxWindow = mxPane->getWindow();
ProvideCanvas();
-
+
mxWindow->addWindowListener(this);
mxWindow->addPaintListener(this);
Reference<awt::XWindowPeer> xPeer (mxWindow, UNO_QUERY);
@@ -250,7 +250,7 @@ void SAL_CALL PresenterHelpView::disposing (const lang::EventObject& rEventObjec
//----- XWindowListener -------------------------------------------------------
-
+
void SAL_CALL PresenterHelpView::windowResized (const awt::WindowEvent& rEvent)
throw (uno::RuntimeException)
{
@@ -331,7 +331,7 @@ void PresenterHelpView::Paint (const awt::Rectangle& rUpdateBox)
Sequence<double>(4),
rendering::CompositeOperation::SOURCE);
PresenterCanvasHelper::SetDeviceColor(aRenderState, mpFont->mnColor);
-
+
mxCanvas->drawLine(
geometry::RealPoint2D(aWindowBox.Width/2, gnVerticalBorder),
geometry::RealPoint2D(aWindowBox.Width/2, mnSeparatorY - gnVerticalBorder),
@@ -426,7 +426,7 @@ void PresenterHelpView::CheckFontSize (void)
{
if (mpFont.get() == NULL)
return;
-
+
const awt::Rectangle aWindowBox (mxWindow->getPosSize());
if (aWindowBox.Width<=0 || aWindowBox.Height<=0)
return;
@@ -453,7 +453,7 @@ void PresenterHelpView::CheckFontSize (void)
// too much space below the help text.
return;
}
-
+
// Font is too large. Make it smaller.
// Use a simple linear transformation to calculate initial guess of
@@ -468,7 +468,7 @@ void PresenterHelpView::CheckFontSize (void)
mpFont->mnSize = nFontSizeGuess;
mpFont->mxFont = NULL;
mpFont->PrepareFont(mxCanvas);
-
+
// Reformat blocks.
for (iBlock=mpTextContainer->begin(); iBlock!=iBlockEnd; ++iBlock)
(*iBlock)->Update(mpFont->mxFont, mnMaximalWidth);
@@ -479,7 +479,7 @@ void PresenterHelpView::CheckFontSize (void)
mpFont->mnSize = nBestSize;
mpFont->mxFont = NULL;
mpFont->PrepareFont(mxCanvas);
-
+
// Reformat blocks.
for (TextContainer::iterator
iBlock (mpTextContainer->begin()),
@@ -555,7 +555,7 @@ void PresenterHelpView::Resize (void)
CheckFontSize();
}
}
-
+
@@ -652,7 +652,7 @@ double LineDescriptorList::Paint(
{
if ( ! rxCanvas.is())
return 0;
-
+
double nY (rBBox.Y1);
vector<LineDescriptor>::const_iterator iLine (mpLineDescriptors->begin());
vector<LineDescriptor>::const_iterator iEnd (mpLineDescriptors->end());
diff --git a/sdext/source/presenter/PresenterHelpView.hxx b/sdext/source/presenter/PresenterHelpView.hxx
index 8b25bf81b485..10589d5e2522 100644
--- a/sdext/source/presenter/PresenterHelpView.hxx
+++ b/sdext/source/presenter/PresenterHelpView.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,7 +41,7 @@
namespace css = ::com::sun::star;
namespace {
- typedef cppu::WeakComponentImplHelper3<
+ typedef cppu::WeakComponentImplHelper3<
css::drawing::framework::XView,
css::awt::XWindowListener,
css::awt::XPaintListener
@@ -70,13 +70,13 @@ public:
// lang::XEventListener
- virtual void SAL_CALL
+ virtual void SAL_CALL
disposing (const css::lang::EventObject& rEventObject)
throw (css::uno::RuntimeException);
// XWindowListener
-
+
virtual void SAL_CALL windowResized (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException);
@@ -130,7 +130,7 @@ private:
time.
*/
void CheckFontSize (void);
-
+
/** This method throws a DisposedException when the object has already been
disposed.
*/
diff --git a/sdext/source/presenter/PresenterHelper.cxx b/sdext/source/presenter/PresenterHelper.cxx
index 8f3b882abd4b..ec7198505243 100644
--- a/sdext/source/presenter/PresenterHelper.cxx
+++ b/sdext/source/presenter/PresenterHelper.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -71,7 +71,7 @@ Reference<presentation::XSlideShowController> PresenterHelper::GetSlideShowContr
const Reference<frame::XController>& rxController)
{
Reference<presentation::XSlideShowController> xSlideShowController;
-
+
if( rxController.is() ) try
{
Reference<XPresentationSupplier> xPS ( rxController->getModel(), UNO_QUERY_THROW);
diff --git a/sdext/source/presenter/PresenterHelper.hxx b/sdext/source/presenter/PresenterHelper.hxx
index dcfbef0eecca..5590c2afe21b 100644
--- a/sdext/source/presenter/PresenterHelper.hxx
+++ b/sdext/source/presenter/PresenterHelper.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sdext/source/presenter/PresenterNotesView.cxx b/sdext/source/presenter/PresenterNotesView.cxx
index 10837aaaef64..7348999fac09 100644
--- a/sdext/source/presenter/PresenterNotesView.cxx
+++ b/sdext/source/presenter/PresenterNotesView.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -107,7 +107,7 @@ PresenterNotesView::PresenterNotesView (
rxComponentContext,
mxCanvas,
mpPresenterController->GetPaintManager()->GetInvalidator(mxParentWindow)));
-
+
const OUString sResourceURL (mxViewId->getResourceURL());
mpFont.reset(new PresenterTheme::FontDescriptor(
rpPresenterController->GetViewFont(sResourceURL)));
@@ -198,7 +198,7 @@ void SAL_CALL PresenterNotesView::disposing (void)
if (xComponent.is())
xComponent->dispose();
}
-
+
// Create the tool bar.
mpScrollBar = NULL;
@@ -220,7 +220,7 @@ void PresenterNotesView::CreateToolBar (
rpPresenterController->GetPresenterHelper());
if ( ! xPresenterHelper.is())
return;
-
+
// Create a new window as container of the tool bar.
mxToolBarWindow = xPresenterHelper->createWindow(
mxParentWindow,
@@ -265,7 +265,7 @@ void PresenterNotesView::SetSlide (const Reference<drawing::XDrawPage>& rxNotesP
sal_Int32 nCount (xIndexAccess->getCount());
for (sal_Int32 nIndex=0; nIndex<nCount; ++nIndex)
{
-
+
Reference<lang::XServiceName> xServiceName (
xIndexAccess->getByIndex(nIndex), UNO_QUERY);
if (xServiceName.is()
@@ -305,7 +305,7 @@ void PresenterNotesView::SetSlide (const Reference<drawing::XDrawPage>& rxNotesP
mpScrollBar->SetThumbPosition(0, false);
UpdateScrollBar();
}
-
+
Invalidate();
}
}
@@ -326,7 +326,7 @@ void SAL_CALL PresenterNotesView::disposing (const lang::EventObject& rEventObje
//----- XWindowListener -------------------------------------------------------
-
+
void SAL_CALL PresenterNotesView::windowResized (const awt::WindowEvent& rEvent)
throw (RuntimeException)
{
@@ -373,7 +373,7 @@ void SAL_CALL PresenterNotesView::windowPaint (const awt::PaintEvent& rEvent)
if ( ! mbIsPresenterViewActive)
return;
-
+
::osl::MutexGuard aSolarGuard (::osl::Mutex::getGlobalMutex());
Paint(rEvent.UpdateRect);
}
@@ -495,7 +495,7 @@ void PresenterNotesView::Layout (void)
{
if ( ! mxParentWindow.is())
return;
-
+
awt::Rectangle aWindowBox (mxParentWindow->getPosSize());
geometry::RealRectangle2D aNewTextBoundingBox (0,0,aWindowBox.Width, aWindowBox.Height);
@@ -548,7 +548,7 @@ void PresenterNotesView::Layout (void)
aNewTextBoundingBox.Y2));
if ( ! bShowVerticalScrollbar)
mpScrollBar->SetThumbPosition(0, false);
-
+
UpdateScrollBar();
}
@@ -604,7 +604,7 @@ void PresenterNotesView::Paint (const awt::Rectangle& rUpdateBox)
void PresenterNotesView::PaintToolBar (const awt::Rectangle& rUpdateBox)
{
awt::Rectangle aWindowBox (mxParentWindow->getPosSize());
-
+
rendering::ViewState aViewState (
geometry::AffineMatrix2D(1,0,0, 0,1,0),
NULL);
@@ -624,7 +624,7 @@ void PresenterNotesView::PaintToolBar (const awt::Rectangle& rUpdateBox)
awt::Rectangle(0,sal_Int32(maTextBoundingBox.Y2),aWindowBox.Width,aWindowBox.Height),
awt::Rectangle());
}
-
+
// Paint the horizontal separator.
OSL_ASSERT(mxViewId.is());
PresenterCanvasHelper::SetDeviceColor(aRenderState, maSeparatorColor);
@@ -646,7 +646,7 @@ void PresenterNotesView::PaintText (const awt::Rectangle& rUpdateBox)
if (aBox.Width <= 0 || aBox.Height <= 0)
return;
-
+
rendering::ViewState aViewState (
geometry::AffineMatrix2D(1,0,0, 0,1,0),
PresenterGeometryHelper::CreatePolygon(aBox, mxCanvas->getDevice()));
diff --git a/sdext/source/presenter/PresenterNotesView.hxx b/sdext/source/presenter/PresenterNotesView.hxx
index 9f37718f2956..a9e956b2a466 100644
--- a/sdext/source/presenter/PresenterNotesView.hxx
+++ b/sdext/source/presenter/PresenterNotesView.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,7 +50,7 @@
namespace css = ::com::sun::star;
namespace {
- typedef cppu::WeakComponentImplHelper5<
+ typedef cppu::WeakComponentImplHelper5<
css::awt::XWindowListener,
css::awt::XPaintListener,
css::drawing::framework::XView,
@@ -98,16 +98,16 @@ public:
::boost::shared_ptr<PresenterTextView> GetTextView (void) const;
-
+
// lang::XEventListener
- virtual void SAL_CALL
+ virtual void SAL_CALL
disposing (const css::lang::EventObject& rEventObject)
throw (css::uno::RuntimeException);
// XWindowListener
-
+
virtual void SAL_CALL windowResized (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException);
@@ -126,7 +126,7 @@ public:
virtual void SAL_CALL windowPaint (const css::awt::PaintEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
// XResourceId
virtual css::uno::Reference<css::drawing::framework::XResourceId> SAL_CALL getResourceId (void)
@@ -135,7 +135,7 @@ public:
virtual sal_Bool SAL_CALL isAnchorOnly (void)
throw (com::sun::star::uno::RuntimeException);
-
+
// XDrawView
virtual void SAL_CALL setCurrentPage (
@@ -145,7 +145,7 @@ public:
virtual css::uno::Reference<css::drawing::XDrawPage> SAL_CALL getCurrentPage (void)
throw (css::uno::RuntimeException);
-
+
// XKeyListener
virtual void SAL_CALL keyPressed (const css::awt::KeyEvent& rEvent)
@@ -171,7 +171,7 @@ private:
double mnTop;
PresenterTheme::SharedFontDescriptor mpFont;
::boost::shared_ptr<PresenterTextView> mpTextView;
-
+
void CreateToolBar (
const css::uno::Reference<css::uno::XComponentContext>& rxContext,
const ::rtl::Reference<PresenterController>& rpPresenterController);
diff --git a/sdext/source/presenter/PresenterPaintManager.cxx b/sdext/source/presenter/PresenterPaintManager.cxx
index 433d52076526..51c4ac138a11 100644
--- a/sdext/source/presenter/PresenterPaintManager.cxx
+++ b/sdext/source/presenter/PresenterPaintManager.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -80,7 +80,7 @@ void PresenterPaintManager::Invalidate (
sal_Int16 nInvalidateMode (awt::InvalidateStyle::CHILDREN);
if (bSynchronous)
nInvalidateMode |= awt::InvalidateStyle::UPDATE;
-
+
PresenterPaneContainer::SharedPaneDescriptor pDescriptor(
mpPaneContainer->FindContentWindow(rxWindow));
if (pDescriptor.get()==NULL || ! pDescriptor->mbIsOpaque)
@@ -128,7 +128,7 @@ void PresenterPaintManager::Invalidate (
sal_Int16 nInvalidateMode (awt::InvalidateStyle::CHILDREN);
if (bSynchronous)
nInvalidateMode |= awt::InvalidateStyle::UPDATE;
-
+
PresenterPaneContainer::SharedPaneDescriptor pDescriptor(
mpPaneContainer->FindContentWindow(rxWindow));
if (pDescriptor.get()==NULL || ! pDescriptor->mbIsOpaque)
diff --git a/sdext/source/presenter/PresenterPaintManager.hxx b/sdext/source/presenter/PresenterPaintManager.hxx
index faabb53cc378..ea1ecd8c2d08 100644
--- a/sdext/source/presenter/PresenterPaintManager.hxx
+++ b/sdext/source/presenter/PresenterPaintManager.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sdext/source/presenter/PresenterPane.cxx b/sdext/source/presenter/PresenterPane.cxx
index 509fc4acacaa..f0b3ff94fd10 100644
--- a/sdext/source/presenter/PresenterPane.cxx
+++ b/sdext/source/presenter/PresenterPane.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -102,7 +102,7 @@ void SAL_CALL PresenterPane::windowResized (const awt::WindowEvent& rEvent)
PresenterPaneBase::windowResized(rEvent);
Invalidate(maBoundingBox);
-
+
LayoutContextWindow();
ToTop();
@@ -192,7 +192,7 @@ void PresenterPane::CreateCanvases (
return;
if ( ! rxParentCanvas.is())
return;
-
+
mxBorderCanvas = mxPresenterHelper->createSharedCanvas(
rxParentCanvas,
rxParentWindow,
diff --git a/sdext/source/presenter/PresenterPane.hxx b/sdext/source/presenter/PresenterPane.hxx
index 96471f68e5d6..a0c0c3409c4d 100644
--- a/sdext/source/presenter/PresenterPane.hxx
+++ b/sdext/source/presenter/PresenterPane.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -67,7 +67,7 @@ public:
const css::uno::Reference<css::uno::XComponentContext>& rxContext)
SAL_THROW((css::uno::Exception));
-
+
// XPane
css::uno::Reference<css::awt::XWindow> SAL_CALL getWindow (void)
@@ -76,9 +76,9 @@ public:
css::uno::Reference<css::rendering::XCanvas> SAL_CALL getCanvas (void)
throw (css::uno::RuntimeException);
-
+
// XWindowListener
-
+
virtual void SAL_CALL windowResized (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException);
@@ -97,7 +97,7 @@ public:
virtual void SAL_CALL windowPaint (const css::awt::PaintEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
private:
/** Store the bounding box so that when the window is resized or moved
we still know the old position and size.
diff --git a/sdext/source/presenter/PresenterPaneAnimator.cxx b/sdext/source/presenter/PresenterPaneAnimator.cxx
index a37b58e55c60..4ad652f7d824 100644
--- a/sdext/source/presenter/PresenterPaneAnimator.cxx
+++ b/sdext/source/presenter/PresenterPaneAnimator.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -81,7 +81,7 @@ namespace {
const css::uno::Reference<css::drawing::framework::XResourceId>& rxPaneId);
void RestoreFrozenWindows (void);
void FreezePanes (const Reference<rendering::XSpriteCanvas>& rxCanvas);
-
+
protected:
::rtl::Reference<PresenterController> mpPresenterController;
::rtl::Reference<PresenterPaneContainer> mpPaneContainer;
@@ -91,7 +91,7 @@ namespace {
bool mbDoAnimation;
EndActions maShowEndActions;
EndActions maHideEndActions;
-
+
void DeactivatePanes (void);
void ResizePane (
const css::uno::Reference<css::drawing::framework::XResourceId>& rxPaneId,
@@ -110,9 +110,9 @@ namespace {
const bool bAnimate,
const EndActions& rShowEndActions,
const EndActions& rEndEndActions);
-
+
virtual ~UnfoldInCenterAnimator (void);
-
+
virtual void ShowPane (void);
virtual void HidePane (void);
@@ -136,10 +136,10 @@ namespace {
const EndActions& rShowEndActions,
const EndActions& rEndEndActions);
virtual ~MoveInFromBottomAnimator (void);
-
+
virtual void ShowPane (void);
virtual void HidePane (void);
-
+
private:
::boost::shared_ptr<PresenterSprite> maNewPaneSprite;
geometry::RealRectangle2D maCenterPaneBox;
@@ -164,10 +164,10 @@ namespace {
const EndActions& rShowEndActions,
const EndActions& rEndEndActions);
virtual ~TransparentOverlayAnimator (void);
-
+
virtual void ShowPane (void);
virtual void HidePane (void);
-
+
private:
PresenterSprite maBackgroundSprite;
void CreateBackgroundSprite (void);
@@ -226,7 +226,7 @@ namespace {
awt::Rectangle maOriginalBoundingBox;
css::geometry::RealRectangle2D maCurrentBoundingBox;
::boost::shared_ptr<PresenterSprite> mpSubstitution;
-
+
};
typedef ::boost::shared_ptr<PaneGroup> SharedPaneGroup;
@@ -387,7 +387,7 @@ void PresenterPaneAnimatorBase::DeactivatePanes (void)
(*iGroup)->DeactivatePanes();
(*iGroup)->HidePanes();
}
-
+
mpWindowManager->Update();
}
@@ -511,9 +511,9 @@ void UnfoldInCenterAnimator::ShowPane (void)
// Create two pane groups that will be moved together. One contains the
// notes view, the other group contains all other panes.
SetupPaneGroups();
-
+
// Setup the places where the two pane groups are moved to.
- maCenterPaneBox
+ maCenterPaneBox
= MovePanesAway(geometry::RealRectangle2D(0,200,aWindowBox.Width, aWindowBox.Height-200));
// Setup the final size of the new pane so that it fits into the space
@@ -582,7 +582,7 @@ void UnfoldInCenterAnimator::ShowPane (void)
nY0,
maCenterPaneBox.Y1,
_1));
-
+
// Call updateScreen after each animation step.
if (xCanvas.is())
pMultiAnimation->AddAnimation(
@@ -609,14 +609,14 @@ void UnfoldInCenterAnimator::ShowPane (void)
void UnfoldInCenterAnimator::HidePane (void)
{
OSL_ASSERT(mpWindowManager.get()!=NULL);
-
+
Reference<awt::XWindow> xParentWindow (mpWindowManager->GetParentWindow(), UNO_QUERY);
if ( ! xParentWindow.is())
return;
DeactivatePanes();
DeactivatePane(mxCenterPaneId);
-
+
::boost::shared_ptr<PresenterAnimator> pAnimator (mpPresenterController->GetAnimator());
const awt::Rectangle aWindowBox (xParentWindow->getPosSize());
const rendering::ViewState aViewState (
@@ -627,7 +627,7 @@ void UnfoldInCenterAnimator::HidePane (void)
NULL,
Sequence<double>(4),
rendering::CompositeOperation::SOURCE);
-
+
// Animate the uppder and lower window bitmaps.
Reference<rendering::XSpriteCanvas> xSpriteCanvas (mpWindowManager->GetParentCanvas(), UNO_QUERY);
::boost::shared_ptr<MultiAnimation> pMultiAnimation (new MultiAnimation(mbDoAnimation ? 500 : 1));
@@ -644,7 +644,7 @@ void UnfoldInCenterAnimator::HidePane (void)
GetLocation((*iGroup)->GetCurrentBoundingBox()),
GetLocation((*iGroup)->GetOriginalBoundingBox())));
}
-
+
// Animate the new center pane to collapse.
const double nY0 ((maPaneGroups[0]->GetOriginalBoundingBox().Y2
+ maPaneGroups[1]->GetOriginalBoundingBox().Y1) / 2);
@@ -671,7 +671,7 @@ void UnfoldInCenterAnimator::HidePane (void)
EndActions::const_iterator iAction;
for (iAction=maHideEndActions.begin(); iAction!=maHideEndActions.end(); ++iAction)
pMultiAnimation->AddEndCallback(*iAction);
-
+
pAnimator->AddAnimation(SharedPresenterAnimation(pMultiAnimation));
}
@@ -709,7 +709,7 @@ geometry::RealRectangle2D UnfoldInCenterAnimator::MovePanesAway (
{
SharedPaneGroup aUpperPanes = maPaneGroups[0];
SharedPaneGroup aLowerPanes = maPaneGroups[1];
-
+
// Move upper pane group out of the way.
const double nTop (rFreeCenterArea.Y1);
const double nUpperVerticalOffset (nTop - aUpperPanes->GetOriginalBoundingBox().Y2);
@@ -796,7 +796,7 @@ void MoveInFromBottomAnimator::ShowPane (void)
geometry::RealPoint2D aStartLocation (maCenterPaneBox.X1, aWindowBox.Height);
geometry::RealPoint2D aEndLocation (maCenterPaneBox.X1, maCenterPaneBox.Y1);
-
+
// Get the sprite of the new pane, make it visible and move it to the
// start location.
PresenterPaneContainer::SharedPaneDescriptor pDescriptor (
@@ -805,7 +805,7 @@ void MoveInFromBottomAnimator::ShowPane (void)
{
if (pDescriptor->mxBorderWindow.is())
pDescriptor->mxBorderWindow->setVisible(sal_True);
-
+
maNewPaneSprite = pDescriptor->maSpriteProvider();
if (maNewPaneSprite.get() != NULL)
{
@@ -832,7 +832,7 @@ void MoveInFromBottomAnimator::ShowPane (void)
void MoveInFromBottomAnimator::HidePane (void)
{
OSL_ASSERT(mpWindowManager.get()!=NULL);
-
+
Reference<awt::XWindow> xParentWindow (mpWindowManager->GetParentWindow(), UNO_QUERY);
if ( ! xParentWindow.is())
return;
@@ -845,13 +845,13 @@ void MoveInFromBottomAnimator::HidePane (void)
DeactivatePane(mxCenterPaneId);
SharedPaneGroup aPanes (maPaneGroups[0]);
-
+
aPanes->ShowPanes();
::boost::shared_ptr<MultiAnimation> pMultiAnimation (
new MultiAnimation(mbDoAnimation ? 500 : 0));
awt::Rectangle aWindowBox (xParentWindow->getPosSize());
-
+
// Animate the new center pane to collapse.
pMultiAnimation->AddAnimation(
::boost::bind(
@@ -871,7 +871,7 @@ void MoveInFromBottomAnimator::HidePane (void)
EndActions::const_iterator iAction;
for (iAction=maHideEndActions.begin(); iAction!=maHideEndActions.end(); ++iAction)
pMultiAnimation->AddEndCallback(*iAction);
-
+
::boost::shared_ptr<PresenterAnimator> pAnimator (mpPresenterController->GetAnimator());
pAnimator->AddAnimation(SharedPresenterAnimation(pMultiAnimation));
}
@@ -978,7 +978,7 @@ void TransparentOverlayAnimator::ShowPane (void)
pAllPanes->DeactivatePanes();
mpWindowManager->Update();
}
-
+
PresenterPaneContainer::SharedPaneDescriptor pDescriptor (
mpPaneContainer->FindPaneId(mxCenterPaneId));
if (pDescriptor.get() != NULL)
@@ -1038,7 +1038,7 @@ void TransparentOverlayAnimator::CreateBackgroundSprite (void)
Sequence<double>(4),
rendering::CompositeOperation::SOURCE);
PresenterCanvasHelper::SetDeviceColor(aRenderState, util::Color(0x80808080));
-
+
Reference<rendering::XPolyPolygon2D> xPolygon (
PresenterGeometryHelper::CreatePolygon(aWindowBox, xCanvas->getDevice()));
if (xPolygon.is())
@@ -1112,7 +1112,7 @@ void PaneGroup::CreateSubstitution (const Reference<rendering::XSpriteCanvas>& r
NULL,
Sequence<double>(4),
rendering::CompositeOperation::SOURCE);
-
+
Reference<rendering::XCanvas> xSpriteCanvas (mpSubstitution->GetCanvas());
if (xSpriteCanvas.is())
xSpriteCanvas->drawBitmap(xBackgroundBitmap, aViewState, aRenderState);
@@ -1323,7 +1323,7 @@ template<typename T>
const T aFinalValue)
{
const double nQ (1 - nP);
-
+
rSetter(T(nQ * aInitialValue + nP * aFinalValue));
}
@@ -1342,7 +1342,7 @@ void SpriteTransform(
const double nP)
{
OSL_ASSERT(rpPaintManager.get()!=NULL);
-
+
PresenterPaneContainer::SharedPaneDescriptor pDescriptor (
rpPaneContainer->FindPaneId(rxPaneId));
if (pDescriptor.get() != NULL
@@ -1363,7 +1363,7 @@ void SpriteTransform(
sal::static_int_cast<sal_Int32>(pSprite->GetLocation().Y),
sal::static_int_cast<sal_Int32>(pSprite->GetSize().Width),
sal::static_int_cast<sal_Int32>(pSprite->GetSize().Height)));
-
+
const double nYScale (bAppear ? nP : 1-nP);
pSprite->Transform(geometry::AffineMatrix2D(
1, 0, 0,
diff --git a/sdext/source/presenter/PresenterPaneAnimator.hxx b/sdext/source/presenter/PresenterPaneAnimator.hxx
index 9b04f94084b0..8733a5b769df 100644
--- a/sdext/source/presenter/PresenterPaneAnimator.hxx
+++ b/sdext/source/presenter/PresenterPaneAnimator.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sdext/source/presenter/PresenterPaneBase.cxx b/sdext/source/presenter/PresenterPaneBase.cxx
index 840342ad700d..8f7a516aec76 100644
--- a/sdext/source/presenter/PresenterPaneBase.cxx
+++ b/sdext/source/presenter/PresenterPaneBase.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -130,10 +130,10 @@ void PresenterPaneBase::disposing (void)
void PresenterPaneBase::SetTitle (const OUString& rsTitle)
{
msTitle = rsTitle;
-
+
OSL_ASSERT(mpPresenterController.get()!=NULL);
OSL_ASSERT(mpPresenterController->GetPaintManager().get()!=NULL);
-
+
mpPresenterController->GetPaintManager()->Invalidate(mxBorderWindow);
}
@@ -253,7 +253,7 @@ void SAL_CALL PresenterPaneBase::initialize (const Sequence<Any>& rArguments)
static_cast<XWeak*>(this),
2);
}
-
+
if ( ! (rArguments[3] >>= msTitle))
{
throw lang::IllegalArgumentException(
@@ -280,13 +280,13 @@ void SAL_CALL PresenterPaneBase::initialize (const Sequence<Any>& rArguments)
}
CreateWindows(mxParentWindow, bIsWindowVisibleOnCreation);
-
+
if (mxBorderWindow.is())
{
mxBorderWindow->addWindowListener(this);
mxBorderWindow->addPaintListener(this);
}
-
+
CreateCanvases(mxParentWindow, xParentCanvas);
// Raise new windows.
@@ -397,7 +397,7 @@ void PresenterPaneBase::CreateWindows (
{
if (mxPresenterHelper.is() && rxParentWindow.is())
{
-
+
mxBorderWindow = mxPresenterHelper->createWindow(
rxParentWindow,
sal_False,
@@ -482,7 +482,7 @@ void PresenterPaneBase::PaintBorder (const awt::Rectangle& rUpdateBox)
awt::Rectangle aLocalBorderBox (0,0, aBorderBox.Width, aBorderBox.Height);
PaintBorderBackground(aLocalBorderBox, rUpdateBox);
-
+
if (mbHasCallout)
mxBorderPainter->paintBorderWithCallout(
mxPaneId->getResourceURL(),
diff --git a/sdext/source/presenter/PresenterPaneBase.hxx b/sdext/source/presenter/PresenterPaneBase.hxx
index cbe9b2a41ea6..310ee5c68b5a 100644
--- a/sdext/source/presenter/PresenterPaneBase.hxx
+++ b/sdext/source/presenter/PresenterPaneBase.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -95,11 +95,11 @@ public:
::boost::shared_ptr<PresenterTextView> GetTextViewForTitle (void);
// XInitialization
-
+
virtual void SAL_CALL initialize (const css::uno::Sequence<css::uno::Any>& rArguments)
throw (css::uno::Exception, css::uno::RuntimeException);
-
+
// XResourceId
virtual css::uno::Reference<css::drawing::framework::XResourceId> SAL_CALL getResourceId (void)
@@ -108,9 +108,9 @@ public:
virtual sal_Bool SAL_CALL isAnchorOnly (void)
throw (com::sun::star::uno::RuntimeException);
-
+
// XWindowListener
-
+
virtual void SAL_CALL windowResized (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException);
diff --git a/sdext/source/presenter/PresenterPaneBorderManager.cxx b/sdext/source/presenter/PresenterPaneBorderManager.cxx
index 03860d18273d..4160d11b9540 100644
--- a/sdext/source/presenter/PresenterPaneBorderManager.cxx
+++ b/sdext/source/presenter/PresenterPaneBorderManager.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -219,25 +219,25 @@ PresenterPaneBorderManager::BorderElement
case mnTop | mnLeft:
return TopLeft;
-
+
case mnTop | mnRight:
return TopRight;
-
+
case mnTop | mnHorizontalCenter:
return Top;
-
+
case mnBottom | mnLeft:
return BottomLeft;
-
+
case mnBottom | mnRight:
return BottomRight;
-
+
case mnBottom | mnHorizontalCenter:
return Bottom;
-
+
case mnVerticalCenter | mnLeft:
return Left;
-
+
case mnVerticalCenter | mnRight:
return Right;
}
@@ -359,12 +359,12 @@ void SAL_CALL PresenterPaneBorderManager::mouseExited (const css::awt::MouseEven
mxOuterDragWindow = NULL;
mxInnerDragWindow = NULL;
}
-
+
//----- XMouseMotionListener --------------------------------------------------
-
+
void SAL_CALL PresenterPaneBorderManager::mouseMoved (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException)
{
@@ -407,7 +407,7 @@ void SAL_CALL PresenterPaneBorderManager::mouseMoved (const css::awt::MouseEvent
case PresenterPaneBorderManager::Bottom:
mnPointerType = awt::SystemPointer::WINDOW_SSIZE;
break;
-
+
case PresenterPaneBorderManager::Content:
case PresenterPaneBorderManager::Outside:
default:
@@ -450,7 +450,7 @@ void SAL_CALL PresenterPaneBorderManager::mouseDragged (const css::awt::MouseEve
const sal_Int32 nOldRight = aOldBox.X + aOldBox.Width;
const sal_Int32 nOldBottom = aOldBox.Y + aOldBox.Height;
-
+
awt::Rectangle aBox (aOldBox);
sal_Int32 nRight = aBox.X + aBox.Width;
sal_Int32 nBottom = aBox.Y + aBox.Height;
@@ -486,7 +486,7 @@ void SAL_CALL PresenterPaneBorderManager::mouseDragged (const css::awt::MouseEve
break;
default: break;
}
-
+
aBox.Width = nRight - aBox.X;
aBox.Height = nBottom - aBox.Y;
if (aBox.Width > 20
diff --git a/sdext/source/presenter/PresenterPaneBorderManager.hxx b/sdext/source/presenter/PresenterPaneBorderManager.hxx
index 73dc6e86bd7c..f6e0962e7d44 100644
--- a/sdext/source/presenter/PresenterPaneBorderManager.hxx
+++ b/sdext/source/presenter/PresenterPaneBorderManager.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -93,11 +93,11 @@ public:
// XInitialization
-
+
virtual void SAL_CALL initialize (const css::uno::Sequence<css::uno::Any>& rArguments)
throw (css::uno::Exception, css::uno::RuntimeException);
-
+
// XMouseListener
virtual void SAL_CALL mousePressed (const css::awt::MouseEvent& rEvent)
@@ -105,28 +105,28 @@ public:
virtual void SAL_CALL mouseReleased (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL mouseEntered (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL mouseExited (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
// XMouseMotionListener
-
+
virtual void SAL_CALL mouseMoved (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL mouseDragged (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
// lang::XEventListener
virtual void SAL_CALL disposing (const css::lang::EventObject& rEvent)
throw (css::uno::RuntimeException);
-
+
private:
enum BorderElement { Top, TopLeft, TopRight, Left, Right, BottomLeft, BottomRight, Bottom,
Content, Outside };
diff --git a/sdext/source/presenter/PresenterPaneBorderPainter.cxx b/sdext/source/presenter/PresenterPaneBorderPainter.cxx
index 9e691954c806..65e645ef9e75 100644
--- a/sdext/source/presenter/PresenterPaneBorderPainter.cxx
+++ b/sdext/source/presenter/PresenterPaneBorderPainter.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -86,7 +86,7 @@ namespace {
drawing::framework::BorderType eBorderType) const;
const Reference<rendering::XCanvasFont> GetFont (
const Reference<rendering::XCanvas>& rxCanvas) const;
-
+
SharedBitmapDescriptor mpTopLeft;
SharedBitmapDescriptor mpTop;
SharedBitmapDescriptor mpTopRight;
@@ -124,7 +124,7 @@ public:
const Reference<XComponentContext>& rxContext,
const ::boost::shared_ptr<PresenterTheme>& rpTheme);
~Renderer (void);
-
+
void SetCanvas (const Reference<rendering::XCanvas>& rxCanvas);
void PaintBorder (
const OUString& rsTitle,
@@ -145,7 +145,7 @@ public:
::boost::shared_ptr<RendererPaneStyle> GetRendererPaneStyle (const OUString& rsResourceURL);
void SetCalloutAnchor (
const awt::Point& rCalloutAnchor);
-
+
private:
::boost::shared_ptr<PresenterTheme> mpTheme;
typedef ::std::map<OUString, ::boost::shared_ptr<RendererPaneStyle> > RendererPaneStyleContainer;
@@ -156,7 +156,7 @@ private:
Reference<rendering::XPolyPolygon2D> mxViewStateClip;
bool mbHasCallout;
awt::Point maCalloutAnchor;
-
+
void PaintBitmap(
const awt::Rectangle& rBox,
const awt::Rectangle& rUpdateBox,
@@ -173,7 +173,7 @@ private:
// ===== PresenterPaneBorderPainter ===========================================
-
+
PresenterPaneBorderPainter::PresenterPaneBorderPainter (
const Reference<XComponentContext>& rxContext)
: PresenterPaneBorderPainterInterfaceBase(m_aMutex),
@@ -202,7 +202,7 @@ awt::Rectangle SAL_CALL PresenterPaneBorderPainter::addBorder (
throw(css::uno::RuntimeException)
{
ThrowIfDisposed();
-
+
ProvideTheme();
return AddBorder(rsPaneBorderStyleName, rRectangle, eBorderType);
@@ -218,7 +218,7 @@ awt::Rectangle SAL_CALL PresenterPaneBorderPainter::removeBorder (
throw(css::uno::RuntimeException)
{
ThrowIfDisposed();
-
+
ProvideTheme();
return RemoveBorder(rsPaneBorderStyleName, rRectangle, eBorderType);
@@ -246,7 +246,7 @@ void SAL_CALL PresenterPaneBorderPainter::paintBorder (
return;
}
ProvideTheme(rxCanvas);
-
+
if (mpRenderer.get() != NULL)
{
mpRenderer->SetCanvas(rxCanvas);
@@ -285,7 +285,7 @@ void SAL_CALL PresenterPaneBorderPainter::paintBorderWithCallout (
return;
}
ProvideTheme(rxCanvas);
-
+
if (mpRenderer.get() != NULL)
{
mpRenderer->SetCanvas(rxCanvas);
@@ -336,7 +336,7 @@ awt::Point SAL_CALL PresenterPaneBorderPainter::getCalloutOffset (
bool PresenterPaneBorderPainter::ProvideTheme (const Reference<rendering::XCanvas>& rxCanvas)
{
bool bModified (false);
-
+
if ( ! mxContext.is())
return false;
@@ -511,12 +511,12 @@ void PresenterPaneBorderPainter::Renderer::PaintBorder (
{
if ( ! mxCanvas.is())
return;
-
+
// Create the outer and inner border of the, ahm, border.
::boost::shared_ptr<RendererPaneStyle> pStyle (GetRendererPaneStyle(rsPaneURL));
if (pStyle.get() == NULL)
return;
-
+
awt::Rectangle aOuterBox (rBBox);
awt::Rectangle aCenterBox (
pStyle->RemoveBorder(aOuterBox, drawing::framework::BorderType_OUTER_BORDER));
@@ -593,14 +593,14 @@ void PresenterPaneBorderPainter::Renderer::PaintTitle (
{
if ( ! mxCanvas.is())
return;
-
+
if (rsTitle.getLength() == 0)
return;
Reference<rendering::XCanvasFont> xFont (rpStyle->GetFont(mxCanvas));
if ( ! xFont.is())
return;
-
+
rendering::StringContext aContext (
rsTitle,
0,
@@ -635,7 +635,7 @@ void PresenterPaneBorderPainter::Renderer::PaintTitle (
}
nX += rpStyle->mnFontXOffset;
nY += rpStyle->mnFontYOffset;
-
+
if (rUpdateBox.X >= nX+nTextWidth
|| rUpdateBox.Y >= nY+nTextHeight
|| rUpdateBox.X+rUpdateBox.Width <= nX
@@ -643,13 +643,13 @@ void PresenterPaneBorderPainter::Renderer::PaintTitle (
{
return;
}
-
+
rendering::RenderState aRenderState(
geometry::AffineMatrix2D(1,0,nX, 0,1,nY),
NULL,
Sequence<double>(4),
rendering::CompositeOperation::SOURCE);
-
+
if (bPaintBackground)
{
PresenterCanvasHelper::SetDeviceColor(aRenderState, util::Color(0x00ffffff));
@@ -699,7 +699,7 @@ void PresenterPaneBorderPainter::Renderer::PaintTitle (
const OUString sStyleName (mpTheme->GetStyleName(rsResourceURL));
if (sStyleName.getLength() > 0)
sPaneStyleName = sStyleName;
-
+
// Create a new pane style object and initialize it with bitmaps.
::boost::shared_ptr<RendererPaneStyle> pStyle (
new RendererPaneStyle(mpTheme,sPaneStyleName));
@@ -737,7 +737,7 @@ void PresenterPaneBorderPainter::Renderer::PaintBitmap(
const SharedBitmapDescriptor& rpBackgroundBitmap)
{
(void)rpBackgroundBitmap;
-
+
bool bUseCanvas (mxCanvas.is());
if ( ! bUseCanvas)
return;
@@ -869,7 +869,7 @@ void PresenterPaneBorderPainter::Renderer::SetupClipping (
mxViewStateClip->setFillRule(rendering::FillRule_EVEN_ODD);
}
maViewState.Clip = mxViewStateClip;
-}
+}
@@ -950,7 +950,7 @@ RendererPaneStyle::RendererPaneStyle (
mpBottomRight = GetBitmap(rpTheme, rsStyleName, A2S("BottomRight"));
mpBottomCallout = GetBitmap(rpTheme, rsStyleName, A2S("BottomCallout"));
mpBackground = GetBitmap(rpTheme, OUString(), A2S("Background"));
-
+
// Get font description.
mpFont = rpTheme->GetFont(rsStyleName);
@@ -992,7 +992,7 @@ RendererPaneStyle::RendererPaneStyle (
{
OSL_ASSERT(false);
}
-
+
UpdateBorderSizes();
}
}
diff --git a/sdext/source/presenter/PresenterPaneBorderPainter.hxx b/sdext/source/presenter/PresenterPaneBorderPainter.hxx
index 7affd4d3e46c..7e60fb22bb10 100644
--- a/sdext/source/presenter/PresenterPaneBorderPainter.hxx
+++ b/sdext/source/presenter/PresenterPaneBorderPainter.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -105,7 +105,7 @@ public:
class Renderer;
// XPaneBorderPainter
-
+
virtual css::awt::Rectangle SAL_CALL addBorder (
const rtl::OUString& rsPaneBorderStyleName,
const css::awt::Rectangle& rRectangle,
@@ -125,7 +125,7 @@ public:
const css::awt::Rectangle& rRepaintArea,
const rtl::OUString& rsTitle)
throw(css::uno::RuntimeException);
-
+
virtual void SAL_CALL paintBorderWithCallout (
const rtl::OUString& rsPaneBorderStyleName,
const css::uno::Reference<css::rendering::XCanvas>& rxCanvas,
diff --git a/sdext/source/presenter/PresenterPaneContainer.cxx b/sdext/source/presenter/PresenterPaneContainer.cxx
index 0b1a5d0eaeac..4180d34aa45f 100644
--- a/sdext/source/presenter/PresenterPaneContainer.cxx
+++ b/sdext/source/presenter/PresenterPaneContainer.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -159,7 +159,7 @@ PresenterPaneContainer::SharedPaneDescriptor
pDescriptor->mxPaneId = xPaneId;
pDescriptor->mxPane = rxPane;
pDescriptor->mxPane->SetTitle(pDescriptor->msTitle);
-
+
// When there is a call out anchor location set then tell the
// window about it.
if (pDescriptor->mbHasCalloutAnchor)
@@ -186,7 +186,7 @@ PresenterPaneContainer::SharedPaneDescriptor
OUString sPaneURL;
if (rxPaneId.is())
sPaneURL = rxPaneId->getResourceURL();
-
+
SharedPaneDescriptor pDescriptor (FindPaneURL(sPaneURL));
if (pDescriptor.get() != NULL)
{
@@ -206,7 +206,7 @@ PresenterPaneContainer::SharedPaneDescriptor
const SharedBitmapDescriptor& rpViewBackground)
{
SharedPaneDescriptor pDescriptor;
-
+
if (rxView.is())
{
OUString sPaneURL;
@@ -228,7 +228,7 @@ PresenterPaneContainer::SharedPaneDescriptor
{
if ( ! pDescriptor->maViewInitialization.empty())
pDescriptor->maViewInitialization(rxView);
-
+
// Activate or deactivate the pane/view.
if ( ! pDescriptor->maActivator.empty())
pDescriptor->maActivator(pDescriptor->mbIsActive);
@@ -271,7 +271,7 @@ PresenterPaneContainer::SharedPaneDescriptor
PresenterPaneContainer::RemoveView (const Reference<XView>& rxView)
{
SharedPaneDescriptor pDescriptor;
-
+
if (rxView.is())
{
OUString sPaneURL;
@@ -406,7 +406,7 @@ void PresenterPaneContainer::ToTop (const SharedPaneDescriptor& rpDescriptor)
OSL_ASSERT(iPane!=iEnd);
if (iPane == iEnd)
return;
-
+
if (mxPresenterHelper.is())
mxPresenterHelper->toTop(rpDescriptor->mxBorderWindow);
diff --git a/sdext/source/presenter/PresenterPaneContainer.hxx b/sdext/source/presenter/PresenterPaneContainer.hxx
index bce80465fe3e..9bdd49493ced 100644
--- a/sdext/source/presenter/PresenterPaneContainer.hxx
+++ b/sdext/source/presenter/PresenterPaneContainer.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -74,7 +74,7 @@ public:
virtual ~PresenterPaneContainer (void);
virtual void SAL_CALL disposing (void);
-
+
typedef ::boost::function1<void, const css::uno::Reference<css::drawing::framework::XView>&>
ViewInitializationFunction;
@@ -139,7 +139,7 @@ public:
SharedPaneDescriptor StoreBorderWindow(
const css::uno::Reference<css::drawing::framework::XResourceId>& rxPaneId,
const css::uno::Reference<css::awt::XWindow>& rxBorderWindow);
-
+
SharedPaneDescriptor StoreView (
const css::uno::Reference<css::drawing::framework::XView>& rxView,
const SharedBitmapDescriptor& rpViewBackground);
@@ -149,7 +149,7 @@ public:
SharedPaneDescriptor RemoveView (
const css::uno::Reference<css::drawing::framework::XView>& rxView);
-
+
void CreateBorderWindow (PaneDescriptor& rDescriptor);
/** Find the pane whose border window is identical to the given border
@@ -178,7 +178,7 @@ public:
::rtl::OUString GetPaneURLForViewURL (const ::rtl::OUString& rsViewURL);
void ToTop (const SharedPaneDescriptor& rpDescriptor);
-
+
// XEventListener
diff --git a/sdext/source/presenter/PresenterPaneFactory.cxx b/sdext/source/presenter/PresenterPaneFactory.cxx
index f53878f8cc47..1410b4480a57 100644
--- a/sdext/source/presenter/PresenterPaneFactory.cxx
+++ b/sdext/source/presenter/PresenterPaneFactory.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -148,7 +148,7 @@ void SAL_CALL PresenterPaneFactory::disposing (void)
if (xCC.is())
xCC->removeResourceFactoryForReference(this);
mxConfigurationControllerWeak = WeakReference<XConfigurationController>();
-
+
// Dispose the panes in the cache.
if (mpResourceCache.get() != NULL)
{
@@ -168,7 +168,7 @@ void SAL_CALL PresenterPaneFactory::disposing (void)
//----- XPaneFactory ----------------------------------------------------------
-
+
Reference<XResource> SAL_CALL PresenterPaneFactory::createResource (
const Reference<XResourceId>& rxPaneId)
throw (RuntimeException, IllegalArgumentException, WrappedTargetException)
@@ -259,11 +259,11 @@ Reference<XResource> PresenterPaneFactory::CreatePane (
{
if ( ! rxPaneId.is())
return NULL;
-
+
Reference<XConfigurationController> xCC (mxConfigurationControllerWeak);
if ( ! xCC.is())
return NULL;
-
+
Reference<XComponentContext> xContext (mxComponentContextWeak);
if ( ! xContext.is())
return NULL;
@@ -328,7 +328,7 @@ Reference<XResource> PresenterPaneFactory::CreatePane (
UNO_QUERY);
aArguments[5] <<= bIsSpritePane ? false : true;
xPane->initialize(aArguments);
-
+
// Store pane and canvases and windows in container.
::rtl::Reference<PresenterPaneContainer> pContainer (
mpPresenterController->GetPaneContainer());
diff --git a/sdext/source/presenter/PresenterPaneFactory.hxx b/sdext/source/presenter/PresenterPaneFactory.hxx
index 78ea3e4fc609..ec507ddcef0a 100644
--- a/sdext/source/presenter/PresenterPaneFactory.hxx
+++ b/sdext/source/presenter/PresenterPaneFactory.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -55,7 +55,7 @@ namespace {
/** The PresenerPaneFactory provides a fixed set of panes.
-
+
In order to make the presener screen more easily extendable in the
future the set of supported panes could be made extendable on demand.
*/
@@ -94,7 +94,7 @@ public:
throw (css::uno::RuntimeException);
// XResourceFactory
-
+
virtual css::uno::Reference<css::drawing::framework::XResource>
SAL_CALL createResource (
const ::com::sun::star::uno::Reference<
@@ -121,7 +121,7 @@ private:
const ::rtl::Reference<PresenterController>& rpPresenterController);
void Register (const css::uno::Reference<css::frame::XController>& rxController);
-
+
css::uno::Reference<css::drawing::framework::XResource> CreatePane (
const css::uno::Reference<css::drawing::framework::XResourceId>& rxPaneId,
const ::rtl::OUString& rsTitle);
diff --git a/sdext/source/presenter/PresenterProtocolHandler.cxx b/sdext/source/presenter/PresenterProtocolHandler.cxx
index 3f9c44c8f433..c03be4882b61 100644
--- a/sdext/source/presenter/PresenterProtocolHandler.cxx
+++ b/sdext/source/presenter/PresenterProtocolHandler.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -173,7 +173,7 @@ namespace {
};
} // end of anonymous namespace
-
+
namespace {
typedef ::cppu::WeakComponentImplHelper2 <
@@ -212,24 +212,24 @@ public:
const css::uno::Reference<css::frame::XStatusListener>& rxListener,
const css::util::URL& rURL)
throw(css::uno::RuntimeException);
-
+
virtual void SAL_CALL removeStatusListener (
const css::uno::Reference<css::frame::XStatusListener>& rxListener,
const css::util::URL& rURL)
throw(css::uno::RuntimeException);
-
+
// document::XEventListener
virtual void SAL_CALL notifyEvent (const css::document::EventObject& rEvent)
throw(css::uno::RuntimeException);
-
+
// lang::XEventListener
virtual void SAL_CALL disposing (const css::lang::EventObject& rEvent)
throw(css::uno::RuntimeException);
-
+
private:
OUString msURLPath;
::boost::scoped_ptr<Command> mpCommand;
@@ -242,7 +242,7 @@ private:
const OUString& rsURLPath,
const ::rtl::Reference<PresenterController>& rpPresenterController);
virtual ~Dispatch (void);
-
+
void ThrowIfDisposed (void) const throw (css::lang::DisposedException);
};
@@ -383,7 +383,7 @@ void PresenterProtocolHandler::ThrowIfDisposed (void) const
-
+
//===== PresenterProtocolHandler::Dispatch ====================================
Reference<frame::XDispatch> PresenterProtocolHandler::Dispatch::Create (
@@ -475,12 +475,12 @@ Command* PresenterProtocolHandler::Dispatch::CreateCommand (
if (rsURLPath == A2S("ShowNotes"))
return new SetNotesViewCommand(true, rpPresenterController);
break;
-
+
case sal_Char('S'):
if (rsURLPath == A2S("ShowSlideSorter"))
return new SetSlideSorterCommand(true, rpPresenterController);
break;
-
+
case sal_Char('H'):
if (rsURLPath == A2S("ShowHelp"))
return new SetHelpViewCommand(true, rpPresenterController);
@@ -571,7 +571,7 @@ void SAL_CALL PresenterProtocolHandler::Dispatch::addStatusListener(
else
throw RuntimeException();
}
-
+
@@ -613,7 +613,7 @@ void PresenterProtocolHandler::Dispatch::ThrowIfDisposed (void) const
-
+
//----- document::XEventListener ----------------------------------------------
void SAL_CALL PresenterProtocolHandler::Dispatch::notifyEvent (
@@ -961,7 +961,7 @@ NotesFontSizeCommand::NotesFontSizeCommand(
{
if (mpPresenterController.get() == NULL)
return NULL;
-
+
PresenterPaneContainer::SharedPaneDescriptor pDescriptor (
mpPresenterController->GetPaneContainer()->FindViewURL(
PresenterViewFactory::msNotesViewURL));
diff --git a/sdext/source/presenter/PresenterProtocolHandler.hxx b/sdext/source/presenter/PresenterProtocolHandler.hxx
index cb005acb84e5..e88f1a81f2a4 100644
--- a/sdext/source/presenter/PresenterProtocolHandler.hxx
+++ b/sdext/source/presenter/PresenterProtocolHandler.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -70,12 +70,12 @@ public:
// XInitialization
-
+
virtual void SAL_CALL initialize(
const css::uno::Sequence<css::uno::Any>& aArguments)
throw (css::uno::Exception, css::uno::RuntimeException);
-
+
// XDispatchProvider
virtual css::uno::Reference<css::frame::XDispatch > SAL_CALL
@@ -90,7 +90,7 @@ public:
const css::uno::Sequence< css::frame::DispatchDescriptor>& rDescriptors)
throw(css::uno::RuntimeException);
-
+
private:
class Dispatch;
::rtl::Reference<PresenterController> mpPresenterController;
diff --git a/sdext/source/presenter/PresenterScreen.cxx b/sdext/source/presenter/PresenterScreen.cxx
index 22a1b2fe623f..3642ee595f9e 100644
--- a/sdext/source/presenter/PresenterScreen.cxx
+++ b/sdext/source/presenter/PresenterScreen.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -87,11 +87,11 @@ namespace {
virtual void SAL_CALL disposing (void);
// document::XEventListener
-
+
virtual void SAL_CALL notifyEvent( const css::document::EventObject& Event ) throw (css::uno::RuntimeException);
// XEventListener
-
+
virtual void SAL_CALL disposing ( const css::lang::EventObject& rEvent) throw (css::uno::RuntimeException);
private:
@@ -250,7 +250,7 @@ void SAL_CALL PresenterScreenListener::disposing (void)
xDocBroadcaster->removeEventListener(
Reference<document::XEventListener>(
static_cast<document::XEventListener*>(this), UNO_QUERY));
-
+
if (mpPresenterScreen.is())
{
mpPresenterScreen->RequestShutdownPresenterScreen();
@@ -262,7 +262,7 @@ void SAL_CALL PresenterScreenListener::disposing (void)
// document::XEventListener
-
+
void SAL_CALL PresenterScreenListener::notifyEvent( const css::document::EventObject& Event ) throw (css::uno::RuntimeException)
{
ThrowIfDisposed();
@@ -286,12 +286,12 @@ void SAL_CALL PresenterScreenListener::notifyEvent( const css::document::EventOb
// XEventListener
-
+
void SAL_CALL PresenterScreenListener::disposing (const css::lang::EventObject& rEvent)
throw (css::uno::RuntimeException)
{
(void)rEvent;
-
+
if (mpPresenterScreen.is())
{
mpPresenterScreen->RequestShutdownPresenterScreen();
@@ -509,7 +509,7 @@ sal_Int32 PresenterScreen::GetScreenNumber (
UNO_QUERY);
if ( ! xDisplayProperties.is())
return -1;
-
+
if (nDisplayNumber > 0)
{
nScreenNumber = nDisplayNumber - 1;
@@ -522,7 +522,7 @@ sal_Int32 PresenterScreen::GetScreenNumber (
if (nDisplayNumber <= 0 && xDisplayProperties.is())
xDisplayProperties->getPropertyValue(A2S("DefaultDisplay")) >>= nScreenNumber;
}
-
+
// We still have to determine the number of screens to decide
// whether the presenter screen may be shown at all.
Reference<container::XIndexAccess> xIndexAccess (xDisplayProperties, UNO_QUERY);
@@ -571,7 +571,7 @@ Reference<drawing::framework::XResourceId> PresenterScreen::GetMainPaneId (
const sal_Int32 nScreenNumber(GetScreenNumber(rxPresentation));
if (nScreenNumber < 0)
return NULL;
-
+
// Setup the resource id of the full screen background pane so that
// it is displayed on another screen than the presentation.
sal_Int32 nPresenterScreenNumber (1);
@@ -584,7 +584,7 @@ Reference<drawing::framework::XResourceId> PresenterScreen::GetMainPaneId (
case 1:
nPresenterScreenNumber = 0;
break;
-
+
default:
// When the full screen presentation is displayed on a screen
// other than 0 or 1 then place the presenter on the first
@@ -592,7 +592,7 @@ Reference<drawing::framework::XResourceId> PresenterScreen::GetMainPaneId (
nPresenterScreenNumber = 0;
break;
}
-
+
return ResourceId::create(
Reference<XComponentContext>(mxContextWeak),
PresenterHelper::msFullScreenPaneURL
@@ -638,7 +638,7 @@ void PresenterScreen::ShutdownPresenterScreen (void)
if (xViewFactoryComponent.is())
xViewFactoryComponent->dispose();
mxViewFactory = NULL;
-
+
Reference<lang::XComponent> xPaneFactoryComponent (mxPaneFactory, UNO_QUERY);
if (xPaneFactoryComponent.is())
xPaneFactoryComponent->dispose();
@@ -712,7 +712,7 @@ void PresenterScreen::SetupConfiguration (
}
catch (RuntimeException&)
{
- }
+ }
}
@@ -769,7 +769,7 @@ void PresenterScreen::ProcessLayout (
}
catch (RuntimeException&)
{
- }
+ }
}
@@ -798,7 +798,7 @@ void PresenterScreen::ProcessViewDescriptions (
catch (RuntimeException&)
{
OSL_ASSERT(false);
- }
+ }
}
diff --git a/sdext/source/presenter/PresenterScreen.hxx b/sdext/source/presenter/PresenterScreen.hxx
index 191542f7503c..0aa22b6a7fb0 100644
--- a/sdext/source/presenter/PresenterScreen.hxx
+++ b/sdext/source/presenter/PresenterScreen.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -85,13 +85,13 @@ public:
virtual void SAL_CALL disposing (void);
// XJob
-
+
virtual css::uno::Any SAL_CALL execute(
const css::uno::Sequence<css::beans::NamedValue >& Arguments)
throw (css::lang::IllegalArgumentException,
css::uno::Exception,
css::uno::RuntimeException);
-
+
private:
PresenterScreenJob (const css::uno::Reference<css::uno::XComponentContext>& rxContext);
virtual ~PresenterScreenJob (void);
@@ -138,9 +138,9 @@ public:
// XEventListener
-
+
virtual void SAL_CALL disposing ( const css::lang::EventObject& rEvent) throw (css::uno::RuntimeException);
-
+
private:
css::uno::Reference<css::frame::XModel2 > mxModel;
css::uno::Reference<css::frame::XController> mxController;
@@ -209,7 +209,7 @@ private:
*/
void ProcessViewDescriptions (
PresenterConfigurationAccess& rConfiguration);
-
+
/** Called by ProcessViewDescriptions for a single entry.
*/
void ProcessViewDescription (
diff --git a/sdext/source/presenter/PresenterScrollBar.cxx b/sdext/source/presenter/PresenterScrollBar.cxx
index 21b06c392715..0d0bb87bca72 100644
--- a/sdext/source/presenter/PresenterScrollBar.cxx
+++ b/sdext/source/presenter/PresenterScrollBar.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -170,14 +170,14 @@ PresenterScrollBar::~PresenterScrollBar (void)
void SAL_CALL PresenterScrollBar::disposing (void)
{
mpMousePressRepeater->Dispose();
-
+
if (mxWindow.is())
{
mxWindow->removeWindowListener(this);
mxWindow->removePaintListener(this);
mxWindow->removeMouseListener(this);
mxWindow->removeMouseMotionListener(this);
-
+
Reference<lang::XComponent> xComponent (mxWindow, UNO_QUERY);
mxWindow = NULL;
if (xComponent.is())
@@ -322,7 +322,7 @@ void PresenterScrollBar::SetCanvas (const Reference<css::rendering::XCanvas>& rx
{
mxCanvas = rxCanvas;
if (mxCanvas.is())
- {
+ {
if (mpBitmaps.get()==NULL)
{
if (mpSharedBitmaps.expired())
@@ -421,7 +421,7 @@ void PresenterScrollBar::Paint (
//----- XWindowListener -------------------------------------------------------
-
+
void SAL_CALL PresenterScrollBar::windowResized (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException)
{
@@ -431,7 +431,7 @@ void SAL_CALL PresenterScrollBar::windowResized (const css::awt::WindowEvent& rE
-
+
void SAL_CALL PresenterScrollBar::windowMoved (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException)
{
@@ -480,7 +480,7 @@ void SAL_CALL PresenterScrollBar::windowPaint (const css::awt::PaintEvent& rEven
-
+
//----- XMouseListener --------------------------------------------------------
void SAL_CALL PresenterScrollBar::mousePressed (const css::awt::MouseEvent& rEvent)
@@ -540,7 +540,7 @@ void SAL_CALL PresenterScrollBar::mouseExited (const css::awt::MouseEvent& rEven
//----- XMouseMotionListener --------------------------------------------------
-
+
void SAL_CALL PresenterScrollBar::mouseMoved (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException)
{
@@ -567,7 +567,7 @@ void SAL_CALL PresenterScrollBar::mouseDragged (const css::awt::MouseEvent& rEve
return;
mpMousePressRepeater->Stop();
-
+
if (mxPresenterHelper.is())
mxPresenterHelper->captureMouse(mxWindow);
@@ -652,7 +652,7 @@ void PresenterScrollBar::PaintBitmap(
aBox.Y2 += aWindowBox.Y;
Reference<rendering::XBitmap> xBitmap (GetBitmap(eArea,rpBitmaps));
-
+
if (xBitmap.is())
{
Reference<rendering::XPolyPolygon2D> xClipPolygon (
@@ -660,11 +660,11 @@ void PresenterScrollBar::PaintBitmap(
PresenterGeometryHelper::Intersection(rUpdateBox,
PresenterGeometryHelper::ConvertRectangle(aBox)),
mxCanvas->getDevice()));
-
+
const rendering::ViewState aViewState (
geometry::AffineMatrix2D(1,0,0, 0,1,0),
xClipPolygon);
-
+
const geometry::IntegerSize2D aBitmapSize (xBitmap->getSize());
rendering::RenderState aRenderState (
geometry::AffineMatrix2D(
@@ -697,7 +697,7 @@ void PresenterScrollBar::NotifyThumbPositionChange (void)
catch (Exception&)
{
}
-
+
mbIsNotificationActive = false;
}
}
@@ -708,7 +708,7 @@ void PresenterScrollBar::NotifyThumbPositionChange (void)
PresenterScrollBar::Area PresenterScrollBar::GetArea (const double nX, const double nY) const
{
const geometry::RealPoint2D aPoint(nX, nY);
-
+
if (PresenterGeometryHelper::IsInside(GetRectangle(Pager), aPoint))
{
if (PresenterGeometryHelper::IsInside(GetRectangle(Thumb), aPoint))
@@ -882,7 +882,7 @@ void PresenterVerticalScrollBar::UpdateBorders (void)
{
const awt::Rectangle aWindowBox (mxWindow->getPosSize());
double nBottom = aWindowBox.Height;
-
+
if (mpNextButtonDescriptor.get() != NULL)
{
Reference<rendering::XBitmap> xBitmap (mpNextButtonDescriptor->GetNormalBitmap());
@@ -911,7 +911,7 @@ void PresenterVerticalScrollBar::UpdateBorders (void)
if (mnTotalSize < 1)
{
maBox[Thumb] = maBox[Pager];
-
+
// Set up the enabled/disabled states.
maEnabledState[PrevButton] = false;
maEnabledState[PagerUp] = false;
@@ -925,7 +925,7 @@ void PresenterVerticalScrollBar::UpdateBorders (void)
const double nThumbPosition = ::std::min(::std::max(0.0,mnThumbPosition), mnTotalSize - nThumbSize);
maBox[Thumb] = geometry::RealRectangle2D(
0, nThumbPosition / mnTotalSize * nPagerHeight,
- aWindowBox.Width,
+ aWindowBox.Width,
(nThumbPosition+nThumbSize) / mnTotalSize * nPagerHeight);
// Set up the enabled/disabled states.
@@ -1105,7 +1105,7 @@ void PresenterHorizontalScrollBar::UpdateBorders (void)
const awt::Rectangle aWindowBox (mxWindow->getPosSize());
double nRight = aWindowBox.Width;
const double nGap (2);
-
+
if (mpNextButtonDescriptor.get() != NULL)
{
Reference<rendering::XBitmap> xBitmap (mpNextButtonDescriptor->GetNormalBitmap());
@@ -1128,14 +1128,14 @@ void PresenterHorizontalScrollBar::UpdateBorders (void)
nRight -= aSize.Width + nGap;
}
}
-
+
const double nPagerWidth (nRight);
maBox[Pager] = geometry::RealRectangle2D(
0,0, nRight, aWindowBox.Height);
if (mnTotalSize == 0)
{
maBox[Thumb] = maBox[Pager];
-
+
// Set up the enabled/disabled states.
maEnabledState[PrevButton] = false;
maEnabledState[PagerUp] = false;
@@ -1301,7 +1301,7 @@ void PresenterScrollBar::MousePressRepeater::SetMouseArea(const PresenterScrollB
void PresenterScrollBar::MousePressRepeater::Callback (const TimeValue& rCurrentTime)
{
(void)rCurrentTime;
-
+
if (mpScrollBar.get() == NULL)
{
Stop();
@@ -1322,7 +1322,7 @@ void PresenterScrollBar::MousePressRepeater::Execute (void)
case PrevButton:
mpScrollBar->SetThumbPosition(nThumbPosition - mpScrollBar->GetLineHeight(), true);
break;
-
+
case NextButton:
mpScrollBar->SetThumbPosition(nThumbPosition + mpScrollBar->GetLineHeight(), true);
break;
diff --git a/sdext/source/presenter/PresenterScrollBar.hxx b/sdext/source/presenter/PresenterScrollBar.hxx
index 4f197b347017..e95bfbacb412 100644
--- a/sdext/source/presenter/PresenterScrollBar.hxx
+++ b/sdext/source/presenter/PresenterScrollBar.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -112,21 +112,21 @@ public:
move the thumb to a valid position.
*/
void CheckValues (void);
-
+
/** On some occasions it is necessary to trigger the painting of a
scrollbar from the outside.
*/
virtual void Paint (
const css::awt::Rectangle& rUpdateBox,
bool bNoClip = false);
-
+
virtual sal_Int32 GetSize (void) const = 0;
// XWindowListener
-
+
virtual void SAL_CALL windowResized (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL windowMoved (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException);
@@ -142,7 +142,7 @@ public:
virtual void SAL_CALL windowPaint (const css::awt::PaintEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
// XMouseListener
virtual void SAL_CALL mousePressed (const css::awt::MouseEvent& rEvent)
@@ -159,10 +159,10 @@ public:
// XMouseMotionListener
-
+
virtual void SAL_CALL mouseMoved (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL mouseDragged (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
@@ -171,7 +171,7 @@ public:
virtual void SAL_CALL disposing (const css::lang::EventObject& rEvent)
throw (css::uno::RuntimeException);
-
+
enum Area { Total, Pager, Thumb, PagerUp, PagerDown, PrevButton, NextButton, None,
__AreaCount__ = None };
@@ -203,7 +203,7 @@ protected:
SharedBitmapDescriptor mpThumbCenterDescriptor;
SharedBitmapDescriptor mpThumbEndDescriptor;
bool maEnabledState[__AreaCount__];
-
+
virtual css::geometry::RealRectangle2D GetRectangle (const Area eArea) const;
virtual double GetDragDistance (const sal_Int32 nX, const sal_Int32 nY) const = 0;
virtual void UpdateDragAnchor (const double nDragDistance) = 0;
diff --git a/sdext/source/presenter/PresenterSlidePreview.cxx b/sdext/source/presenter/PresenterSlidePreview.cxx
index 1187f14cf5ee..6bfff2fc8d75 100644
--- a/sdext/source/presenter/PresenterSlidePreview.cxx
+++ b/sdext/source/presenter/PresenterSlidePreview.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -94,10 +94,10 @@ PresenterSlidePreview::PresenterSlidePreview (
Reference<awt::XWindowPeer> xPeer (mxWindow, UNO_QUERY);
if (xPeer.is())
xPeer->setBackground(util::Color(0xff000000));
-
+
mxWindow->setVisible(sal_True);
}
-
+
if (mpPresenterController.get() != NULL)
mnSlideAspectRatio = mpPresenterController->GetSlideAspectRatio();
@@ -392,7 +392,7 @@ void PresenterSlidePreview::Resize (void)
{
const awt::Rectangle aWindowBox (mxWindow->getPosSize());
const awt::Size aNewPreviewSize (mxPreviewRenderer->calculatePreviewSize(
- mnSlideAspectRatio,
+ mnSlideAspectRatio,
awt::Size(aWindowBox.Width, aWindowBox.Height)));
const geometry::IntegerSize2D aPreviewSize (mxPreview->getSize());
if (aNewPreviewSize.Width==aPreviewSize.Width
diff --git a/sdext/source/presenter/PresenterSlidePreview.hxx b/sdext/source/presenter/PresenterSlidePreview.hxx
index a88f4f3de2c8..bc0ede332efe 100644
--- a/sdext/source/presenter/PresenterSlidePreview.hxx
+++ b/sdext/source/presenter/PresenterSlidePreview.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -90,7 +90,7 @@ public:
throw (com::sun::star::uno::RuntimeException);
// XWindowListener
-
+
virtual void SAL_CALL windowResized (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException);
@@ -109,7 +109,7 @@ public:
virtual void SAL_CALL windowPaint (const css::awt::PaintEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
// lang::XEventListener
virtual void SAL_CALL disposing (const css::lang::EventObject& rEvent)
throw (css::uno::RuntimeException);
diff --git a/sdext/source/presenter/PresenterSlideShowView.cxx b/sdext/source/presenter/PresenterSlideShowView.cxx
index cc4ef895888d..52eca92222cc 100644
--- a/sdext/source/presenter/PresenterSlideShowView.cxx
+++ b/sdext/source/presenter/PresenterSlideShowView.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,7 +49,7 @@
#include <com/sun/star/rendering/TextDirection.hpp>
#include <com/sun/star/rendering/TexturingMode.hpp>
#include <osl/mutex.hxx>
-
+
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::drawing::framework;
@@ -138,7 +138,7 @@ void PresenterSlideShowView::LateInit (void)
mxWindow->addPaintListener(this);
mxWindow->addWindowListener(this);
}
-
+
// The window does not have to paint a background. We do
// that ourself.
Reference<awt::XWindowPeer> xPeer (mxWindow, UNO_QUERY);
@@ -151,7 +151,7 @@ void PresenterSlideShowView::LateInit (void)
mxViewWindow = CreateViewWindow(mxWindow);
mxViewCanvas = CreateViewCanvas(mxViewWindow);
-
+
if (mxViewWindow.is())
{
// Register listeners at window.
@@ -213,12 +213,12 @@ void PresenterSlideShowView::disposing (void)
// Tell all listeners that we are disposed.
lang::EventObject aEvent;
aEvent.Source = static_cast<XWeak*>(this);
-
+
::cppu::OInterfaceContainerHelper* pIterator
= maBroadcaster.getContainer(getCppuType((Reference<lang::XEventListener>*)NULL));
if (pIterator != NULL)
pIterator->disposeAndClear(aEvent);
-
+
// Do this for
// XPaintListener, XModifyListener,XMouseListener,XMouseMotionListener,XWindowListener?
@@ -686,7 +686,7 @@ void SAL_CALL PresenterSlideShowView::mouseExited (const awt::MouseEvent& rEvent
//----- XMouseMotionListener --------------------------------------------------
-
+
void SAL_CALL PresenterSlideShowView::mouseDragged (const awt::MouseEvent& rEvent)
throw (RuntimeException)
{
@@ -767,7 +767,7 @@ void SAL_CALL PresenterSlideShowView::windowHidden (const lang::EventObject& rEv
//----- XView -----------------------------------------------------------------
-
+
Reference<XResourceId> SAL_CALL PresenterSlideShowView::getResourceId (void)
throw(RuntimeException)
{
@@ -1068,7 +1068,7 @@ void PresenterSlideShowView::Resize (void)
{
pIterator->notifyEach(&util::XModifyListener::modified, aEvent);
}
-
+
// Due to constant aspect ratio resizing may lead a preview that changes
// its position but not its size. This invalidates the back buffer and
// we have to enforce a complete repaint.
diff --git a/sdext/source/presenter/PresenterSlideShowView.hxx b/sdext/source/presenter/PresenterSlideShowView.hxx
index 4ce6212c0ff0..1a38bfb1bbb8 100644
--- a/sdext/source/presenter/PresenterSlideShowView.hxx
+++ b/sdext/source/presenter/PresenterSlideShowView.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,7 +54,7 @@ namespace css = ::com::sun::star;
namespace sdext { namespace presenter {
namespace {
- typedef cppu::WeakComponentImplHelper7<
+ typedef cppu::WeakComponentImplHelper7<
css::presentation::XSlideShowView,
css::awt::XPaintListener,
css::awt::XMouseListener,
@@ -88,101 +88,101 @@ public:
// CachablePresenterView
virtual void ReleaseView (void);
-
-
+
+
// XSlideShowView
-
+
virtual css::uno::Reference<
css::rendering::XSpriteCanvas > SAL_CALL getCanvas (void)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL clear (void)
throw (css::uno::RuntimeException);
-
+
virtual css::geometry::AffineMatrix2D SAL_CALL getTransformation (void)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL addTransformationChangedListener(
const css::uno::Reference<
css::util::XModifyListener >& xListener)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL removeTransformationChangedListener(
const css::uno::Reference<
css::util::XModifyListener >& xListener)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL addPaintListener(
const css::uno::Reference<
css::awt::XPaintListener >& xListener)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL removePaintListener(
const css::uno::Reference<
css::awt::XPaintListener >& xListener)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL addMouseListener(
const css::uno::Reference<
css::awt::XMouseListener >& xListener)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL removeMouseListener(
const css::uno::Reference<
css::awt::XMouseListener >& xListener)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL addMouseMotionListener(
const css::uno::Reference<
css::awt::XMouseMotionListener >& xListener)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL removeMouseMotionListener(
const css::uno::Reference<
css::awt::XMouseMotionListener >& xListener)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL setMouseCursor(::sal_Int16 nPointerShape)
throw (css::uno::RuntimeException);
virtual ::com::sun::star::awt::Rectangle SAL_CALL getCanvasArea( )
throw (::com::sun::star::uno::RuntimeException);
-
+
// lang::XEventListener
virtual void SAL_CALL disposing (const css::lang::EventObject& rEvent)
throw (css::uno::RuntimeException);
-
+
// XPaintListener
virtual void SAL_CALL windowPaint (const css::awt::PaintEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
// XMouseListener
virtual void SAL_CALL mousePressed (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
virtual void SAL_CALL mouseReleased (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL mouseEntered (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL mouseExited (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
// XMouseMotionListener
-
+
virtual void SAL_CALL mouseDragged (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
virtual void SAL_CALL mouseMoved (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
// XWindowListener
-
+
virtual void SAL_CALL windowResized (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException);
@@ -197,7 +197,7 @@ public:
// XView
-
+
virtual css::uno::Reference<css::drawing::framework::XResourceId> SAL_CALL
getResourceId (void)
throw(css::uno::RuntimeException);
@@ -215,11 +215,11 @@ public:
virtual css::uno::Reference<css::drawing::XDrawPage> SAL_CALL getCurrentPage (void)
throw (css::uno::RuntimeException);
-
+
// CachablePresenterView
-
+
virtual void ActivatePresenterView (void);
-
+
virtual void DeactivatePresenterView (void);
private:
@@ -274,7 +274,7 @@ private:
void PaintOuterWindow (const css::awt::Rectangle& rRepaintBox);
void PaintInnerWindow (const css::awt::PaintEvent& rEvent);
void PaintEndSlide (const css::awt::Rectangle& rRepaintBox);
-
+
/** The slide show relies on the back buffer of the canvas not being
modified. With a shared canvas there are times when that can not be
guaranteed.
diff --git a/sdext/source/presenter/PresenterSlideSorter.cxx b/sdext/source/presenter/PresenterSlideSorter.cxx
index 2b096d849cf6..bd8ce2827f39 100644
--- a/sdext/source/presenter/PresenterSlideSorter.cxx
+++ b/sdext/source/presenter/PresenterSlideSorter.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -143,7 +143,7 @@ public:
sal_Int32 mnLastVisibleColumn;
sal_Int32 mnFirstVisibleRow;
sal_Int32 mnLastVisibleRow;
-
+
private:
Orientation meOrientation;
::rtl::Reference<PresenterScrollBar> mpHorizontalScrollBar;
@@ -333,7 +333,7 @@ PresenterSlideSorter::PresenterSlideSorter (
// Set the orientation.
const bool bIsVertical (true);
-
+
// Create the scroll bar.
if (bIsVertical)
mpVerticalScrollBar = ::rtl::Reference<PresenterScrollBar>(
@@ -370,7 +370,7 @@ PresenterSlideSorter::PresenterSlideSorter (
Layout::Vertical,
mpHorizontalScrollBar,
mpVerticalScrollBar));
-
+
// Create the preview cache.
mxPreviewCache = Reference<drawing::XSlidePreviewCache>(
xFactory->createInstanceWithContext(
@@ -391,7 +391,7 @@ PresenterSlideSorter::PresenterSlideSorter (
mpPresenterController->GetTheme(),
mxWindow,
mpPresenterController->GetPaintManager()));
-
+
// Listen for changes of the current slide.
Reference<beans::XPropertySet> xControllerProperties (rxController, UNO_QUERY_THROW);
xControllerProperties->addPropertyChangeListener(
@@ -466,7 +466,7 @@ void SAL_CALL PresenterSlideSorter::disposing (void)
if (mxPreviewCache.is())
{
mxPreviewCache->removePreviewCreationNotifyListener(this);
-
+
Reference<XComponent> xComponent (mxPreviewCache, UNO_QUERY);
mxPreviewCache = NULL;
if (xComponent.is())
@@ -524,7 +524,7 @@ void SAL_CALL PresenterSlideSorter::disposing (const lang::EventObject& rEventOb
//----- XWindowListener -------------------------------------------------------
-
+
void SAL_CALL PresenterSlideSorter::windowResized (const awt::WindowEvent& rEvent)
throw (uno::RuntimeException)
{
@@ -652,7 +652,7 @@ void SAL_CALL PresenterSlideSorter::mouseExited (const css::awt::MouseEvent& rEv
//----- XMouseMotionListener --------------------------------------------------
-
+
void SAL_CALL PresenterSlideSorter::mouseMoved (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException)
{
@@ -723,13 +723,13 @@ void SAL_CALL PresenterSlideSorter::propertyChange (
//----- XSlidePreviewCacheListener --------------------------------------------
-
+
void SAL_CALL PresenterSlideSorter::notifyPreviewCreation (
sal_Int32 nSlideIndex)
throw(css::uno::RuntimeException)
{
OSL_ASSERT(mpLayout.get()!=NULL);
-
+
awt::Rectangle aBBox (mpLayout->GetBoundingBox(nSlideIndex));
mpPresenterController->GetPaintManager()->Invalidate(mxWindow, aBBox, true);
}
@@ -743,7 +743,7 @@ void SAL_CALL PresenterSlideSorter::setCurrentPage (const Reference<drawing::XDr
throw (RuntimeException)
{
(void)rxSlide;
-
+
ThrowIfDisposed();
::osl::MutexGuard aGuard (::osl::Mutex::getGlobalMutex());
@@ -859,7 +859,7 @@ geometry::RealRectangle2D PresenterSlideSorter::PlaceScrollBars (
Reference<container::XIndexAccess> xSlides (mxSlideShowController, UNO_QUERY_THROW);
if (xSlides.is())
bIsScrollBarNeeded = mpLayout->IsScrollBarNeeded(xSlides->getCount());
-
+
if (mpLayout->GetOrientation() == Layout::Vertical)
{
if (mpVerticalScrollBar.get() != NULL)
@@ -899,7 +899,7 @@ geometry::RealRectangle2D PresenterSlideSorter::PlaceScrollBars (
rUpperBox.X2,
rUpperBox.Y2));
mpHorizontalScrollBar->SetVisible(true);
-
+
// Reduce area covered by the scroll bar from the available
// space.
return geometry::RealRectangle2D(
@@ -973,7 +973,7 @@ void PresenterSlideSorter::ClearBackground (
double PresenterSlideSorter::GetSlideAspectRatio (void) const
{
double nSlideAspectRatio (28.0/21.0);
-
+
try
{
Reference<container::XIndexAccess> xSlides(mxSlideShowController, UNO_QUERY_THROW);
@@ -1151,7 +1151,7 @@ void PresenterSlideSorter::Paint (const awt::Rectangle& rUpdateBox)
geometry::RealPoint2D(mxWindow->getPosSize().Width, mnSeparatorY),
rendering::ViewState(geometry::AffineMatrix2D(1,0,0, 0,1,0), NULL),
aRenderState);
-
+
// Paint the slides.
if ( ! PresenterGeometryHelper::AreRectanglesDisjoint(
rUpdateBox,
@@ -1285,7 +1285,7 @@ void PresenterSlideSorter::Layout::Update (
const double nSlideAspectRatio)
{
maBoundingBox = rBoundingBox;
-
+
mnHorizontalBorder = gnHorizontalBorder;
mnVerticalBorder = gnVerticalBorder;
@@ -1295,7 +1295,7 @@ void PresenterSlideSorter::Layout::Update (
return;
double nPreviewWidth;
-
+
// Determine column count, preview width, and horizontal gap (borders
// are half the gap). Try to use the preferred values. Try more to
// stay in the valid intervalls. This last constraint may be not
@@ -1403,7 +1403,7 @@ void PresenterSlideSorter::Layout::SetupVisibleArea (void)
mnFirstVisibleColumn = 0;
mnFirstVisibleRow = ::std::max(sal_Int32(0), GetRow(aPoint));
}
-
+
aPoint = GetLocalPosition(geometry::RealPoint2D( maBoundingBox.X2, maBoundingBox.Y2));
if (meOrientation == Horizontal)
{
@@ -1526,7 +1526,7 @@ geometry::RealPoint2D PresenterSlideSorter::Layout::GetPoint (
{
sal_Int32 nColumn (GetColumn(nSlideIndex));
sal_Int32 nRow (GetRow(nSlideIndex));
-
+
geometry::RealPoint2D aPosition (
mnHorizontalBorder + nColumn*(maPreviewSize.Width+mnHorizontalGap),
mnVerticalBorder + nRow*(maPreviewSize.Height+mnVerticalGap));
@@ -1656,7 +1656,7 @@ void PresenterSlideSorter::Layout::UpdateScrollBars (void)
nTotalColumnCount = mnColumnCount;
nTotalRowCount = sal_Int32(ceil(double(mnSlideCount) / double(mnColumnCount)));
}
-
+
if (mpHorizontalScrollBar.get() != NULL)
{
mpHorizontalScrollBar->SetTotalSize(
@@ -1678,7 +1678,7 @@ void PresenterSlideSorter::Layout::UpdateScrollBars (void)
mpVerticalScrollBar->SetLineHeight(maPreviewSize.Height);
}
-
+
// No place yet for the vertical scroll bar.
}
@@ -1770,7 +1770,7 @@ void PresenterSlideSorter::MouseOverManager::Paint (
{
if (nSlideIndex != mnSlideIndex)
return;
-
+
if (mxCanvas != rxCanvas)
SetCanvas(rxCanvas);
if (rxCanvas != NULL)
@@ -1824,7 +1824,7 @@ void PresenterSlideSorter::MouseOverManager::SetSlide (
maSlideBoundingBox = rBox;
mnSlideIndex = nSlideIndex;
-
+
if (nSlideIndex >= 0)
{
if (mxSlides.get() != NULL)
@@ -1870,18 +1870,18 @@ Reference<rendering::XBitmap> PresenterSlideSorter::MouseOverManager::CreateBitm
// bitmaps that are used to paints its background. The width is defined
// by the text.
geometry::IntegerSize2D aLabelSize (CalculateLabelSize(sText));
-
+
// Create a new bitmap that will contain the complete label.
Reference<rendering::XBitmap> xBitmap (
mxCanvas->getDevice()->createCompatibleAlphaBitmap(aLabelSize));
if ( ! xBitmap.is())
return NULL;
-
+
Reference<rendering::XBitmapCanvas> xBitmapCanvas (xBitmap, UNO_QUERY);
if ( ! xBitmapCanvas.is())
return NULL;
-
+
// Paint the background.
PaintButtonBackground(xBitmapCanvas, aLabelSize);
@@ -1901,7 +1901,7 @@ Reference<rendering::XBitmap> PresenterSlideSorter::MouseOverManager::CreateBitm
const rendering::ViewState aViewState(
geometry::AffineMatrix2D(1,0,0, 0,1,0),
NULL);
-
+
rendering::RenderState aRenderState (
geometry::AffineMatrix2D(1,0,nXOffset, 0,1,nYOffset),
NULL,
@@ -1998,7 +1998,7 @@ geometry::IntegerSize2D PresenterSlideSorter::MouseOverManager::CalculateLabelSi
// Width is specified by text width and maximal width.
const geometry::RealSize2D aTextSize (
PresenterCanvasHelper::GetTextSize(mpFont->mxFont, rsText));
-
+
const sal_Int32 nWidth (round(aTextSize.Width + 2*gnHorizontalLabelPadding));
return geometry::IntegerSize2D(nWidth, nHeight);
@@ -2015,11 +2015,11 @@ void PresenterSlideSorter::MouseOverManager::PaintButtonBackground (
Reference<rendering::XBitmap> xLeftLabelBitmap;
if (mpLeftLabelBitmap.get() != NULL)
xLeftLabelBitmap = mpLeftLabelBitmap->GetNormalBitmap();
-
+
Reference<rendering::XBitmap> xCenterLabelBitmap;
if (mpCenterLabelBitmap.get() != NULL)
xCenterLabelBitmap = mpCenterLabelBitmap->GetNormalBitmap();
-
+
Reference<rendering::XBitmap> xRightLabelBitmap;
if (mpRightLabelBitmap.get() != NULL)
xRightLabelBitmap = mpRightLabelBitmap->GetNormalBitmap();
diff --git a/sdext/source/presenter/PresenterSlideSorter.hxx b/sdext/source/presenter/PresenterSlideSorter.hxx
index 15208b9160a5..0f3aed0aaecf 100644
--- a/sdext/source/presenter/PresenterSlideSorter.hxx
+++ b/sdext/source/presenter/PresenterSlideSorter.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -86,16 +86,16 @@ public:
void SetActiveState (const bool bIsActive);
-
+
// lang::XEventListener
- virtual void SAL_CALL
+ virtual void SAL_CALL
disposing (const css::lang::EventObject& rEventObject)
throw (css::uno::RuntimeException);
// XWindowListener
-
+
virtual void SAL_CALL windowResized (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException);
@@ -131,10 +131,10 @@ public:
// XMouseMotionListener
-
+
virtual void SAL_CALL mouseMoved (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL mouseDragged (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
@@ -154,9 +154,9 @@ public:
const css::beans::PropertyChangeEvent& rEvent)
throw(css::uno::RuntimeException);
-
+
// XSlidePreviewCacheListener
-
+
virtual void SAL_CALL notifyPreviewCreation (
sal_Int32 nSlideIndex)
throw(css::uno::RuntimeException);
diff --git a/sdext/source/presenter/PresenterSprite.cxx b/sdext/source/presenter/PresenterSprite.cxx
index 04513b9332d4..33563a1db458 100644
--- a/sdext/source/presenter/PresenterSprite.cxx
+++ b/sdext/source/presenter/PresenterSprite.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sdext/source/presenter/PresenterSprite.hxx b/sdext/source/presenter/PresenterSprite.hxx
index 19f8de4d5984..567701fe826f 100644
--- a/sdext/source/presenter/PresenterSprite.hxx
+++ b/sdext/source/presenter/PresenterSprite.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -56,7 +56,7 @@ public:
*/
void SetFactory (
const ::css::uno::Reference<css::rendering::XSpriteCanvas>& rxSpriteFactory);
-
+
::css::uno::Reference<css::rendering::XCanvas> GetCanvas (void);
void Show (void);
@@ -65,19 +65,19 @@ public:
void SetPriority (const double nPriority);
double GetPriority (void) const;
-
+
void Resize (const css::geometry::RealSize2D& rSize);
css::geometry::RealSize2D GetSize (void) const;
-
+
void MoveTo (const css::geometry::RealPoint2D& rLocation);
css::geometry::RealPoint2D GetLocation (void) const;
-
+
void Transform (const css::geometry::AffineMatrix2D& rTransform);
css::geometry::AffineMatrix2D GetTransform (void) const;
void SetAlpha (const double nAlpha);
double GetAlpha (void) const;
-
+
void Update (void);
private:
diff --git a/sdext/source/presenter/PresenterSpritePane.cxx b/sdext/source/presenter/PresenterSpritePane.cxx
index 07807eef8e2f..ded73fa04785 100644
--- a/sdext/source/presenter/PresenterSpritePane.cxx
+++ b/sdext/source/presenter/PresenterSpritePane.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -250,7 +250,7 @@ void PresenterSpritePane::CreateCanvases (
const awt::Rectangle aBorderBox (mxBorderWindow->getPosSize());
mpSprite->Resize(geometry::RealSize2D(aBorderBox.Width, aBorderBox.Height));
}
-
+
UpdateCanvases();
}
diff --git a/sdext/source/presenter/PresenterSpritePane.hxx b/sdext/source/presenter/PresenterSpritePane.hxx
index b90f5c5a26a7..74c696a27dda 100644
--- a/sdext/source/presenter/PresenterSpritePane.hxx
+++ b/sdext/source/presenter/PresenterSpritePane.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -71,7 +71,7 @@ public:
using css::lang::XEventListener::disposing;
::boost::shared_ptr<PresenterSprite> GetSprite (void);
-
+
static ::rtl::OUString getImplementationName_static (void);
static css::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_static (void);
static css::uno::Reference<css::uno::XInterface> Create(
@@ -79,7 +79,7 @@ public:
SAL_THROW((css::uno::Exception));
void ShowTransparentBorder (void);
-
+
// XPane
virtual css::uno::Reference<css::awt::XWindow> SAL_CALL getWindow (void)
@@ -88,9 +88,9 @@ public:
virtual css::uno::Reference<css::rendering::XCanvas> SAL_CALL getCanvas (void)
throw (css::uno::RuntimeException);
-
+
// XWindowListener
-
+
virtual void SAL_CALL windowResized (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException);
@@ -109,7 +109,7 @@ public:
virtual void SAL_CALL windowPaint (const css::awt::PaintEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
private:
css::uno::Reference<css::awt::XWindow> mxParentWindow;
css::uno::Reference<css::rendering::XSpriteCanvas> mxParentCanvas;
diff --git a/sdext/source/presenter/PresenterTextView.cxx b/sdext/source/presenter/PresenterTextView.cxx
index 8cd308dc230f..5e941b021752 100755
--- a/sdext/source/presenter/PresenterTextView.cxx
+++ b/sdext/source/presenter/PresenterTextView.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -172,7 +172,7 @@ void PresenterTextView::SetText (const Reference<text::XText>& rxText)
Reference<container::XEnumerationAccess> xParagraphAccess (rxText, UNO_QUERY);
if ( ! xParagraphAccess.is())
return;
-
+
Reference<container::XEnumeration> xParagraphs (
xParagraphAccess->createEnumeration() , UNO_QUERY);
if ( ! xParagraphs.is())
@@ -247,7 +247,7 @@ void PresenterTextView::SetTextChangeBroadcaster (
void PresenterTextView::SetLocation (const css::geometry::RealPoint2D& rLocation)
{
maLocation = rLocation;
-
+
for (::std::vector<SharedPresenterTextParagraph>::iterator
iParagraph(maParagraphs.begin()),
iEnd(maParagraphs.end());
@@ -343,7 +343,7 @@ void PresenterTextView::MoveCaret (
case AccessibleTextType::CHARACTER:
nCharacterIndex += nDistance;
break;
-
+
case AccessibleTextType::WORD:
{
sal_Int32 nRemainingDistance (nDistance);
@@ -375,7 +375,7 @@ void PresenterTextView::MoveCaret (
else
{
nRemainingDistance -= nDelta;
-
+
// Move caret one character to the end of
// the previous or the start of the next paragraph.
pParagraph = GetParagraph(nParagraphIndex);
@@ -775,7 +775,7 @@ void PresenterTextParagraph::Format (
mnVerticalOffset = nY;
maWordBoundaries.clear();
maWordBoundaries.push_back(0);
-
+
const rendering::FontMetrics aMetrics (rpFont->mxFont->getFontMetrics());
mnAscent = aMetrics.Ascent;
mnDescent = aMetrics.Descent;
@@ -798,7 +798,7 @@ void PresenterTextParagraph::Format (
if (aWordBoundary.endPos>aWordBoundary.startPos)
AddWord(nWidth, aCurrentLine, aWordBoundary.endPos, rpFont);
-
+
if (aWordBoundary.startPos<0 || aWordBoundary.endPos<0)
break;
if (nPosition >= aWordBoundary.endPos)
@@ -828,7 +828,7 @@ sal_Int32 PresenterTextParagraph::GetWordBoundary(
else
return GetCharacterCount();
}
-
+
sal_Int32 nIndex (0);
for (sal_Int32 nCount (maWordBoundaries.size()); nIndex<nCount; ++nIndex)
{
@@ -919,7 +919,7 @@ void PresenterTextParagraph::AddWord (
nLineStart = rCurrentLine.startPos;
nLineEnd = rCurrentLine.endPos;
}
-
+
const ::rtl::OUString sLineCandidate (
msParagraphText.copy(nLineStart, nWordBoundary-nLineStart));
@@ -1074,7 +1074,7 @@ TextSegment PresenterTextParagraph::GetTextSegment (
if (mxBreakIterator.is())
return GetWordTextSegment(nOffset, nIndex);
break;
-
+
case AccessibleTextType::LINE:
{
for (::std::vector<Line>::const_iterator
diff --git a/sdext/source/presenter/PresenterTextView.hxx b/sdext/source/presenter/PresenterTextView.hxx
index 048eec9c3c0f..533f10e66258 100755
--- a/sdext/source/presenter/PresenterTextView.hxx
+++ b/sdext/source/presenter/PresenterTextView.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,7 +57,7 @@ public:
const ::boost::function<void(const css::awt::Rectangle&)>&
rInvalidator);
~PresenterTextCaret (void);
-
+
void ShowCaret (void);
void HideCaret (void);
@@ -66,7 +66,7 @@ public:
void SetPosition (
const sal_Int32 nParagraphIndex,
const sal_Int32 nCharacterIndex);
-
+
bool IsVisible (void) const;
/** Set a (possibly empty) functor that broadcasts changes of the caret
@@ -192,7 +192,7 @@ private:
double mnBaseLine;
double mnWidth;
cssu::Sequence<css::geometry::RealRectangle2D> maCellBoxes;
-
+
sal_Int32 GetLength (void) const;
void ProvideLayoutedLine (
const ::rtl::OUString& rsParagraphText,
@@ -222,7 +222,7 @@ private:
/// the whole text.
sal_Int32 mnCharacterOffset;
::std::vector<Cell> maCells;
-
+
void AddWord (
const double nWidth,
css::i18n::Boundary& rCurrentLine,
@@ -258,11 +258,11 @@ public:
void SetText (const css::uno::Reference<css::text::XText>& rxText);
void SetText (const ::rtl::OUString& rsText);
void SetTextChangeBroadcaster (const ::boost::function<void(void)>& rBroadcaster);
-
+
void SetLocation (const css::geometry::RealPoint2D& rLocation);
void SetSize (const css::geometry::RealSize2D& rSize);
double GetTotalTextHeight (void);
-
+
void SetFont (const PresenterTheme::SharedFontDescriptor& rpFont);
void SetOffset (
@@ -280,7 +280,7 @@ public:
void MoveCaret (
const sal_Int32 nDistance,
const sal_Int16 nTextType);
-
+
void Paint (const css::awt::Rectangle& rUpdateBox);
SharedPresenterTextCaret GetCaret (void) const;
diff --git a/sdext/source/presenter/PresenterTheme.cxx b/sdext/source/presenter/PresenterTheme.cxx
index c9a14bf4a48b..7a4f3f40fa07 100644
--- a/sdext/source/presenter/PresenterTheme.cxx
+++ b/sdext/source/presenter/PresenterTheme.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,12 +60,12 @@ class BorderSize
{
public:
const static sal_Int32 mnInvalidValue = -10000;
-
+
BorderSize (void) : mnLeft(mnInvalidValue),
mnTop(mnInvalidValue),
mnRight(mnInvalidValue),
mnBottom(mnInvalidValue) {}
-
+
sal_Int32 mnLeft;
sal_Int32 mnTop;
sal_Int32 mnRight;
@@ -584,7 +584,7 @@ PresenterTheme::SharedFontDescriptor PresenterTheme::GetFont (
Theme::FontContainer::const_iterator iFont (pTheme->maFontContainer.find(rsStyleName));
if (iFont != pTheme->maFontContainer.end())
return iFont->second;
-
+
pTheme = pTheme->mpParentTheme;
}
}
@@ -648,7 +648,7 @@ bool PresenterTheme::FontDescriptor::PrepareFont (
const double nCellSize (GetCellSizeForDesignSize(rxCanvas, mnSize));
mxFont = CreateFont(rxCanvas, nCellSize);
-
+
return mxFont.is();
}
@@ -766,7 +766,7 @@ void PresenterTheme::Theme::Read (
{
rReadContext.SetBitmapSourceExtension(PresenterComponent::gsExtensionIdentifier);
}
-
+
// Background.
mpBackground = PresenterBitmapContainer::LoadBitmap(
mxThemeRoot,
@@ -781,7 +781,7 @@ void PresenterTheme::Theme::Read (
// Pane styles.
maPaneStyles.Read(rReadContext, mxThemeRoot);
-
+
// View styles.
maViewStyles.Read(rReadContext, mxThemeRoot);
@@ -894,7 +894,7 @@ PresenterTheme::SharedFontDescriptor ReadContext::ReadFont (
{
if ( ! rxNode.is())
return PresenterTheme::SharedFontDescriptor();
-
+
try
{
Reference<container::XHierarchicalNameAccess> xFont (
@@ -1079,7 +1079,7 @@ void PaneStyleContainer::ProcessPaneStyle(
return;
::boost::shared_ptr<PaneStyle> pStyle (new PaneStyle());
-
+
rValues[0] >>= pStyle->msStyleName;
OUString sParentStyleName;
@@ -1221,7 +1221,7 @@ void ViewStyleContainer::Read (
const Reference<container::XHierarchicalNameAccess>& rxThemeRoot)
{
(void)rReadContext;
-
+
Reference<container::XNameAccess> xViewStyleList (
PresenterConfigurationAccess::GetConfigurationNode(
rxThemeRoot,
@@ -1244,7 +1244,7 @@ void ViewStyleContainer::ProcessViewStyle(
const Reference<beans::XPropertySet>& rxProperties)
{
::boost::shared_ptr<ViewStyle> pStyle (new ViewStyle());
-
+
PresenterConfigurationAccess::GetProperty(rxProperties, A2S("StyleName"))
>>= pStyle->msStyleName;
@@ -1284,7 +1284,7 @@ void ViewStyleContainer::ProcessViewStyle(
SharedBitmapDescriptor()));
if (pBackground.get() != NULL && pBackground->GetNormalBitmap().is())
pStyle->mpBackground = pBackground;
-
+
push_back(pStyle);
}
diff --git a/sdext/source/presenter/PresenterTheme.hxx b/sdext/source/presenter/PresenterTheme.hxx
index 99cfa3803d96..20b541a4a7e3 100644
--- a/sdext/source/presenter/PresenterTheme.hxx
+++ b/sdext/source/presenter/PresenterTheme.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -63,7 +63,7 @@ namespace sdext { namespace presenter {
For the offset of the bitmap you can call
Point aOffset = getPropertyValue(sStyleName + "_TopLeftOffset");
-
+
This is work in progress.
*/
class PresenterTheme
@@ -93,7 +93,7 @@ public:
public:
explicit FontDescriptor (void);
explicit FontDescriptor (const ::boost::shared_ptr<FontDescriptor>& rpDescriptor);
-
+
::rtl::OUString msFamilyName;
::rtl::OUString msStyleName;
sal_Int32 mnSize;
@@ -120,7 +120,7 @@ public:
SharedBitmapDescriptor GetBitmap (
const ::rtl::OUString& rsStyleName,
const ::rtl::OUString& rsBitmapName) const;
-
+
SharedBitmapDescriptor GetBitmap (
const ::rtl::OUString& rsBitmapName) const;
diff --git a/sdext/source/presenter/PresenterTimer.cxx b/sdext/source/presenter/PresenterTimer.cxx
index 84a5323eff34..da3a501e2a08 100644
--- a/sdext/source/presenter/PresenterTimer.cxx
+++ b/sdext/source/presenter/PresenterTimer.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -90,10 +90,10 @@ public:
const PresenterTimer::Task& rTask,
const TimeValue& rDueTime,
const sal_Int64 nRepeatIntervall);
-
+
void ScheduleTask (const SharedTimerTask& rpTask);
void CancelTask (const sal_Int32 nTaskId);
-
+
static bool GetCurrentTime (TimeValue& rCurrentTime);
static sal_Int64 GetTimeDifference (
const TimeValue& rTargetTime,
@@ -122,7 +122,7 @@ private:
virtual ~TimerScheduler (void);
class Deleter {public: void operator () (TimerScheduler* pScheduler) { delete pScheduler; } };
friend class Deleter;
-
+
virtual void SAL_CALL run (void);
virtual void SAL_CALL onTerminated (void);
};
@@ -140,7 +140,7 @@ sal_Int32 PresenterTimer::ScheduleSingleTaskRelative (
const Task& rTask,
const sal_Int64 nDelay)
{
- return ScheduleRepeatedTask(rTask, nDelay, 0);
+ return ScheduleRepeatedTask(rTask, nDelay, 0);
}
@@ -266,7 +266,7 @@ void TimerScheduler::ScheduleTask (const SharedTimerTask& rpTask)
osl::MutexGuard aGuard (maTaskContainerMutex);
maScheduledTasks.insert(rpTask);
-
+
if ( ! mbIsRunning)
{
mbIsRunning = true;
@@ -336,7 +336,7 @@ void SAL_CALL TimerScheduler::run (void)
sal_Int64 nDifference = 0;
{
::osl::MutexGuard aGuard (maTaskContainerMutex);
-
+
// There are no more scheduled task. Leave this loop, function and
// live of the TimerScheduler.
if (maScheduledTasks.empty())
@@ -351,7 +351,7 @@ void SAL_CALL TimerScheduler::run (void)
maScheduledTasks.erase(maScheduledTasks.begin());
}
}
-
+
// Acquire a reference to the current task.
{
::osl::MutexGuard aGuard (maCurrentTaskMutex);
@@ -383,7 +383,7 @@ void SAL_CALL TimerScheduler::run (void)
ScheduleTask(mpCurrentTask);
}
}
-
+
}
// Release reference to the current task.
@@ -477,7 +477,7 @@ TimerTask::TimerTask (
const css::uno::Reference<css::uno::XComponentContext>& rxContext)
{
::osl::MutexGuard aSolarGuard (::osl::Mutex::getGlobalMutex());
-
+
::rtl::Reference<PresenterClockTimer> pTimer;
if (mpInstance.is())
{
@@ -655,13 +655,13 @@ void SAL_CALL PresenterClockTimer::notify (const css::uno::Any& rUserData)
osl::MutexGuard aGuard (maMutex);
mbIsCallbackPending = false;
-
+
::std::copy(
maListeners.begin(),
maListeners.end(),
::std::back_inserter(aListenerCopy));
}
-
+
if (aListenerCopy.size() > 0)
{
ListenerContainer::const_iterator iListener;
diff --git a/sdext/source/presenter/PresenterTimer.hxx b/sdext/source/presenter/PresenterTimer.hxx
index 690f4b49108e..2e04265ad306 100644
--- a/sdext/source/presenter/PresenterTimer.hxx
+++ b/sdext/source/presenter/PresenterTimer.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,7 +57,7 @@ public:
typedef ::boost::function<void(const TimeValue&)> Task;
static const sal_Int32 NotAValidTaskId = 0;
-
+
static sal_Int32 ScheduleSingleTaskRelative (
const Task& rTask,
const sal_Int64 nDelay);
@@ -81,7 +81,7 @@ public:
-typedef cppu::WeakComponentImplHelper1<
+typedef cppu::WeakComponentImplHelper1<
css::awt::XCallback
> PresenterClockTimerInterfaceBase;
@@ -97,7 +97,7 @@ public:
virtual void TimeHasChanged (const oslDateTime& rCurrentTime) = 0;
};
typedef ::boost::shared_ptr<Listener> SharedListener;
-
+
static ::rtl::Reference<PresenterClockTimer> Instance (
const css::uno::Reference<css::uno::XComponentContext>& rxContext);
@@ -105,7 +105,7 @@ public:
void RemoveListener (const SharedListener& rListener);
static oslDateTime GetCurrentTime (void);
-
+
/** Return the difference between the two different times in
nanoseconds.
*/
@@ -130,7 +130,7 @@ private:
PresenterClockTimer (
const css::uno::Reference<css::uno::XComponentContext>& rxContext);
~PresenterClockTimer (void);
-
+
void CheckCurrentTime (const TimeValue& rCurrentTime);
};
diff --git a/sdext/source/presenter/PresenterToolBar.cxx b/sdext/source/presenter/PresenterToolBar.cxx
index fc6ddbd86f05..d0ccd32a23eb 100644
--- a/sdext/source/presenter/PresenterToolBar.cxx
+++ b/sdext/source/presenter/PresenterToolBar.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -111,11 +111,11 @@ namespace {
{
public:
ElementMode (void);
-
+
SharedBitmapDescriptor mpIcon;
OUString msAction;
Text maText;
-
+
void ReadElementMode (
const Reference<beans::XPropertySet>& rxProperties,
const ::rtl::OUString& rsModeName,
@@ -136,13 +136,13 @@ public:
css::uno::Reference<css::rendering::XCanvas> mxCanvas;
};
-
+
//===== PresenterToolBar::Element =============================================
namespace {
- typedef cppu::WeakComponentImplHelper2<
+ typedef cppu::WeakComponentImplHelper2<
css::document::XEventListener,
css::frame::XStatusListener
> ElementInterfaceBase;
@@ -184,7 +184,7 @@ namespace {
virtual void SAL_CALL disposing (const css::lang::EventObject& rEvent)
throw(css::uno::RuntimeException);
-
+
// document::XEventListener
virtual void SAL_CALL notifyEvent (const css::document::EventObject& rEvent)
@@ -207,7 +207,7 @@ namespace {
bool mbIsOver;
bool mbIsPressed;
bool mbIsSelected;
-
+
virtual awt::Size CreateBoundingSize (
const Reference<rendering::XCanvas>& rxCanvas) = 0;
@@ -250,11 +250,11 @@ namespace {
virtual void SAL_CALL disposing (const css::lang::EventObject& rEvent)
throw(css::uno::RuntimeException);
-
+
protected:
virtual awt::Size CreateBoundingSize (
const Reference<rendering::XCanvas>& rxCanvas);
-
+
private:
bool mbIsListenerRegistered;
@@ -276,7 +276,7 @@ namespace {
{
public:
Label (const ::rtl::Reference<PresenterToolBar>& rpToolBar);
-
+
void SetText (const OUString& rsText);
virtual void Paint (
const Reference<rendering::XCanvas>& rxCanvas,
@@ -444,7 +444,7 @@ void PresenterToolBar::Initialize (
Reference<awt::XWindowPeer> xPeer (mxWindow, UNO_QUERY);
if (xPeer.is())
xPeer->setBackground(util::Color(0xff000000));
-
+
mxWindow->setVisible(sal_True);
}
@@ -613,7 +613,7 @@ void SAL_CALL PresenterToolBar::disposing (const lang::EventObject& rEventObject
//----- XWindowListener -------------------------------------------------------
-
+
void SAL_CALL PresenterToolBar::windowResized (const awt::WindowEvent& rEvent)
throw (RuntimeException)
{
@@ -669,7 +669,7 @@ void SAL_CALL PresenterToolBar::windowPaint (const css::awt::PaintEvent& rEvent)
if (mbIsLayoutPending)
Layout(mxCanvas);
-
+
Paint(rEvent.UpdateRect, aViewState);
// Make the back buffer visible.
@@ -720,7 +720,7 @@ void SAL_CALL PresenterToolBar::mouseExited (const css::awt::MouseEvent& rEvent)
//----- XMouseMotionListener --------------------------------------------------
-
+
void SAL_CALL PresenterToolBar::mouseMoved (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException)
{
@@ -773,7 +773,7 @@ void PresenterToolBar::CreateControls (
{
if ( ! mxWindow.is())
return;
-
+
// Expand the macro in the bitmap file names.
PresenterConfigurationAccess aConfiguration (
mxComponentContext,
@@ -889,7 +889,7 @@ void PresenterToolBar::Layout (
for (iPart=maElementContainer.begin(),nIndex=0; iPart!=iEnd; ++iPart,++nIndex)
{
geometry::RealSize2D aSize (CalculatePartSize(rxCanvas, *iPart, bIsHorizontal));
-
+
// Remember the size of each part for later.
aPartSizes[nIndex] = aSize;
@@ -899,7 +899,7 @@ void PresenterToolBar::Layout (
nTotalHorizontalGap += ((*iPart)->size() - 1) * gnGapSize;
nGapCount += (*iPart)->size()-1;
}
-
+
// Orientation changes for each part.
bIsHorizontal = !bIsHorizontal;
// Width is accumulated.
@@ -940,12 +940,12 @@ void PresenterToolBar::Layout (
// Place the parts.
double nY ((aWindowBox.Height - aTotalSize.Height) / 2);
bIsHorizontal = true;
-
+
maBoundingBox.X1 = nX;
maBoundingBox.Y1 = nY;
maBoundingBox.X2 = nX + aTotalSize.Width + nTotalHorizontalGap;
maBoundingBox.Y2 = nY + aTotalSize.Height;
-
+
for (iPart=maElementContainer.begin(), nIndex=0; iPart!=iEnd; ++iPart,++nIndex)
{
geometry::RealRectangle2D aBoundingBox(
@@ -1129,7 +1129,7 @@ void PresenterToolBar::CheckMouseOver (
{
if (iElement->get() == NULL)
continue;
-
+
awt::Rectangle aBox ((*iElement)->GetBoundingBox());
const bool bIsOver = bOverWindow
&& aBox.X <= rEvent.X
@@ -1201,7 +1201,7 @@ PresenterToolBarView::PresenterToolBarView (
Reference<awt::XWindowPeer> xPeer (mxWindow, UNO_QUERY);
if (xPeer.is())
xPeer->setBackground(util::Color(0xff000000));
-
+
mxWindow->setVisible(sal_True);
}
}
@@ -1228,7 +1228,7 @@ void SAL_CALL PresenterToolBarView::disposing (void)
mpToolBar = NULL;
if (xComponent.is())
xComponent->dispose();
-
+
if (mxWindow.is())
{
mxWindow->removePaintListener(this);
@@ -1448,7 +1448,7 @@ bool Element::SetState (
{
bool bModified (mbIsOver != bIsOver || mbIsPressed != bIsPressed);
bool bClicked (mbIsPressed && bIsOver && ! bIsPressed);
-
+
mbIsOver = bIsOver;
mbIsPressed = bIsPressed;
@@ -1471,7 +1471,7 @@ bool Element::SetState (
{
if (mpMode->msAction.getLength() <= 0)
break;
-
+
if (mpToolBar.get() == NULL)
break;
@@ -1572,7 +1572,7 @@ void SAL_CALL Element::disposing (const css::lang::EventObject& rEvent)
{
(void)rEvent;
}
-
+
@@ -1596,7 +1596,7 @@ void SAL_CALL Element::statusChanged (const css::frame::FeatureStateEvent& rEven
bool bIsSelected (mbIsSelected);
bool bIsEnabled (rEvent.IsEnabled);
rEvent.State >>= bIsSelected;
-
+
if (bIsSelected != mbIsSelected || bIsEnabled != mbIsEnabled)
{
mbIsEnabled = bIsEnabled;
@@ -1757,13 +1757,13 @@ void Button::Paint (
if (mpMode.get() == NULL)
return;
-
+
if (mpMode->mpIcon.get() == NULL)
return;
geometry::RealRectangle2D aTextBBox (mpMode->maText.GetBoundingBox(rxCanvas));
sal_Int32 nTextHeight (sal::static_int_cast<sal_Int32>(0.5 + aTextBBox.Y2 - aTextBBox.Y1));
-
+
PaintIcon(rxCanvas, nTextHeight, rViewState);
awt::Point aOffset(0,0);
if ( ! IsEnabled())
@@ -1813,7 +1813,7 @@ void Button::PaintIcon (
{
if (mpMode.get() == NULL)
return;
-
+
Reference<rendering::XBitmap> xBitmap (mpMode->mpIcon->GetBitmap(GetMode()));
if (xBitmap.is())
{
@@ -1857,7 +1857,7 @@ void SAL_CALL Button::disposing (const css::lang::EventObject& rEvent)
mbIsListenerRegistered = false;
Element::disposing(rEvent);
}
-
+
} // end of anonymous namespace
@@ -1880,13 +1880,13 @@ awt::Size Label::CreateBoundingSize (
{
if (mpMode.get() == NULL)
return awt::Size(0,0);
-
+
geometry::RealRectangle2D aTextBBox (mpMode->maText.GetBoundingBox(rxCanvas));
return awt::Size(
sal::static_int_cast<sal_Int32>(0.5 + aTextBBox.X2 - aTextBBox.X1),
sal::static_int_cast<sal_Int32>(0.5 + aTextBBox.Y2 - aTextBBox.Y1));
}
-
+
@@ -1919,7 +1919,7 @@ void Label::Paint (
OSL_ASSERT(rxCanvas.is());
if (mpMode.get() == NULL)
return;
-
+
mpMode->maText.Paint(rxCanvas, rViewState, GetBoundingBox(), awt::Point(0,0));
}
@@ -2034,7 +2034,7 @@ void Text::Paint (
Sequence<double>(4),
rendering::CompositeOperation::SOURCE);
PresenterCanvasHelper::SetDeviceColor(aRenderState, mpFont->mnColor);
-
+
rxCanvas->drawText(
aContext,
mpFont->mxFont,
@@ -2124,7 +2124,7 @@ OUString TimeFormatter::FormatTime (const oslDateTime& rTime)
const sal_Int32 nHours (sal::static_int_cast<sal_Int32>(rTime.Hours));
const sal_Int32 nMinutes (sal::static_int_cast<sal_Int32>(rTime.Minutes));
const sal_Int32 nSeconds(sal::static_int_cast<sal_Int32>(rTime.Seconds));
-
+
// Hours
if (mbIs24HourFormat)
sText.append(OUString::valueOf(nHours));
@@ -2292,7 +2292,7 @@ void PresentationTimeLabel::TimeHasChanged (const oslDateTime& rCurrentTime)
maStartTimeValue.Seconds += 1;
maStartTimeValue.Nanosec = 0;
}
-
+
TimeValue aElapsedTimeValue;
aElapsedTimeValue.Seconds = aCurrentTimeValue.Seconds - maStartTimeValue.Seconds;
aElapsedTimeValue.Nanosec = aCurrentTimeValue.Nanosec - maStartTimeValue.Nanosec;
diff --git a/sdext/source/presenter/PresenterToolBar.hxx b/sdext/source/presenter/PresenterToolBar.hxx
index bb8b83f7dec3..e0a8b879aedd 100644
--- a/sdext/source/presenter/PresenterToolBar.hxx
+++ b/sdext/source/presenter/PresenterToolBar.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,7 +59,7 @@
namespace css = ::com::sun::star;
namespace {
- typedef cppu::WeakComponentImplHelper5<
+ typedef cppu::WeakComponentImplHelper5<
css::awt::XWindowListener,
css::awt::XPaintListener,
css::awt::XMouseListener,
@@ -67,7 +67,7 @@ namespace {
css::drawing::XDrawView
> PresenterToolBarInterfaceBase;
- typedef cppu::WeakComponentImplHelper3<
+ typedef cppu::WeakComponentImplHelper3<
css::awt::XPaintListener,
css::drawing::framework::XView,
css::drawing::XDrawView
@@ -91,7 +91,7 @@ public:
typedef ::boost::function<void(void)> Action;
enum Anchor { Left, Center, Right };
-
+
PresenterToolBar (
const css::uno::Reference<css::uno::XComponentContext>& rxContext,
const css::uno::Reference<css::awt::XWindow>& rxWindow,
@@ -116,16 +116,16 @@ public:
::rtl::Reference<PresenterController> GetPresenterController (void) const;
css::uno::Reference<css::awt::XWindow> GetWindow (void) const;
css::uno::Reference<css::uno::XComponentContext> GetComponentContext (void) const;
-
+
// lang::XEventListener
- virtual void SAL_CALL
+ virtual void SAL_CALL
disposing (const css::lang::EventObject& rEventObject)
throw (css::uno::RuntimeException);
// XWindowListener
-
+
virtual void SAL_CALL windowResized (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException);
@@ -152,14 +152,14 @@ public:
virtual void SAL_CALL mouseReleased (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL mouseEntered (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL mouseExited (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
// XMouseMotionListener
virtual void SAL_CALL mouseMoved (const css::awt::MouseEvent& rEvent)
@@ -261,16 +261,16 @@ public:
::rtl::Reference<PresenterToolBar> GetPresenterToolBar (void) const;
-
+
// XPaintListener
virtual void SAL_CALL windowPaint (const css::awt::PaintEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
// lang::XEventListener
- virtual void SAL_CALL
+ virtual void SAL_CALL
disposing (const css::lang::EventObject& rEventObject)
throw (css::uno::RuntimeException);
@@ -283,7 +283,7 @@ public:
virtual sal_Bool SAL_CALL isAnchorOnly (void)
throw (com::sun::star::uno::RuntimeException);
-
+
// XDrawView
virtual void SAL_CALL setCurrentPage (
diff --git a/sdext/source/presenter/PresenterUIPainter.cxx b/sdext/source/presenter/PresenterUIPainter.cxx
index deeda371ac79..f3b384596df5 100644
--- a/sdext/source/presenter/PresenterUIPainter.cxx
+++ b/sdext/source/presenter/PresenterUIPainter.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -71,7 +71,7 @@ void PresenterUIPainter::PaintHorizontalBitmapComposite (
rendering::ViewState aViewState (
geometry::AffineMatrix2D(1,0,0, 0,1,0),
NULL);
-
+
rendering::RenderState aRenderState (
geometry::AffineMatrix2D(1,0,0, 0,1,0),
NULL,
@@ -176,7 +176,7 @@ void PresenterUIPainter::PaintVerticalBitmapComposite (
rendering::ViewState aViewState (
geometry::AffineMatrix2D(1,0,0, 0,1,0),
NULL);
-
+
rendering::RenderState aRenderState (
geometry::AffineMatrix2D(1,0,0, 0,1,0),
NULL,
diff --git a/sdext/source/presenter/PresenterUIPainter.hxx b/sdext/source/presenter/PresenterUIPainter.hxx
index ea4de820649a..d50e0de30c4a 100644
--- a/sdext/source/presenter/PresenterUIPainter.hxx
+++ b/sdext/source/presenter/PresenterUIPainter.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,7 +47,7 @@ class PresenterUIPainter
public:
PresenterUIPainter (void);
~PresenterUIPainter (void);
-
+
static void PaintHorizontalBitmapComposite (
const css::uno::Reference<css::rendering::XCanvas>& rxCanvas,
const css::awt::Rectangle& rRepaintBox,
diff --git a/sdext/source/presenter/PresenterViewFactory.cxx b/sdext/source/presenter/PresenterViewFactory.cxx
index 31c9b5453211..900f7ae78ecc 100644
--- a/sdext/source/presenter/PresenterViewFactory.cxx
+++ b/sdext/source/presenter/PresenterViewFactory.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -92,7 +92,7 @@ public:
virtual Reference<XResourceId> SAL_CALL getResourceId (void) throw (RuntimeException)
{ return mxResourceId; };
-
+
private:
Reference<XResourceId> mxResourceId;
};
@@ -267,7 +267,7 @@ void SAL_CALL PresenterViewFactory::disposing (void)
//----- XViewFactory ----------------------------------------------------------
-
+
Reference<XResource> SAL_CALL PresenterViewFactory::createResource (
const Reference<XResourceId>& rxViewId)
throw (RuntimeException)
@@ -275,7 +275,7 @@ Reference<XResource> SAL_CALL PresenterViewFactory::createResource (
ThrowIfDisposed();
Reference<XResource> xView;
-
+
if (rxViewId.is())
{
Reference<XPane> xAnchorPane (
@@ -291,7 +291,7 @@ Reference<XResource> SAL_CALL PresenterViewFactory::createResource (
if (pDescriptor.get() != NULL)
pDescriptor->SetActivationState(true);
}
-
+
return xView;
}
@@ -397,7 +397,7 @@ Reference<XResource> PresenterViewFactory::CreateView(
const Reference<XPane>& rxAnchorPane)
{
Reference<XView> xView;
-
+
try
{
const OUString sResourceURL (rxViewId->getResourceURL());
@@ -426,7 +426,7 @@ Reference<XResource> PresenterViewFactory::CreateView(
{
xView = CreateHelpView(rxViewId);
}
-
+
// Activate it.
CachablePresenterView* pView = dynamic_cast<CachablePresenterView*>(xView.get());
if (pView != NULL)
@@ -447,12 +447,12 @@ Reference<XView> PresenterViewFactory::CreateSlideShowView(
const Reference<XResourceId>& rxViewId) const
{
Reference<XView> xView;
-
+
if ( ! mxConfigurationController.is())
return xView;
if ( ! mxComponentContext.is())
return xView;
-
+
try
{
rtl::Reference<PresenterSlideShowView> pShowView (
@@ -480,12 +480,12 @@ Reference<XView> PresenterViewFactory::CreateSlidePreviewView(
const Reference<XPane>& rxAnchorPane) const
{
Reference<XView> xView;
-
+
if ( ! mxConfigurationController.is())
return xView;
if ( ! mxComponentContext.is())
return xView;
-
+
try
{
xView = Reference<XView>(
@@ -526,12 +526,12 @@ Reference<XView> PresenterViewFactory::CreateNotesView(
{
(void)rxAnchorPane;
Reference<XView> xView;
-
+
if ( ! mxConfigurationController.is())
return xView;
if ( ! mxComponentContext.is())
return xView;
-
+
try
{
xView = Reference<XView>(static_cast<XWeak*>(
@@ -557,12 +557,12 @@ Reference<XView> PresenterViewFactory::CreateSlideSorterView(
const Reference<XResourceId>& rxViewId) const
{
Reference<XView> xView;
-
+
if ( ! mxConfigurationController.is())
return xView;
if ( ! mxComponentContext.is())
return xView;
-
+
try
{
rtl::Reference<PresenterSlideSorter> pView (
diff --git a/sdext/source/presenter/PresenterViewFactory.hxx b/sdext/source/presenter/PresenterViewFactory.hxx
index 5640d612e498..fb2cf8949b00 100644
--- a/sdext/source/presenter/PresenterViewFactory.hxx
+++ b/sdext/source/presenter/PresenterViewFactory.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,7 +59,7 @@ class CachablePresenterView
{
public:
virtual void ActivatePresenterView (void);
-
+
/** Called when the view is put into a cache. The view must not paint
itself while being deactive.
*/
@@ -122,7 +122,7 @@ public:
// XResourceFactory
-
+
virtual css::uno::Reference<css::drawing::framework::XResource>
SAL_CALL createResource (
const css::uno::Reference<css::drawing::framework::XResourceId>& rxViewId)
@@ -143,7 +143,7 @@ private:
css::uno::Reference<css::drawing::framework::XPane> > ViewResourceDescriptor;
typedef ::std::map<rtl::OUString, ViewResourceDescriptor> ResourceContainer;
::boost::scoped_ptr<ResourceContainer> mpResourceCache;
-
+
PresenterViewFactory (
const css::uno::Reference<css::uno::XComponentContext>& rxContext,
const css::uno::Reference<css::frame::XController>& rxController,
diff --git a/sdext/source/presenter/PresenterWindowManager.cxx b/sdext/source/presenter/PresenterWindowManager.cxx
index 4b424e44c437..72c5a1ed4a5d 100644
--- a/sdext/source/presenter/PresenterWindowManager.cxx
+++ b/sdext/source/presenter/PresenterWindowManager.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -94,9 +94,9 @@ namespace {
const ::boost::shared_ptr<PresenterAnimator>& rpAnimator);
virtual ~ModeChangeAnimationStarter (void);
virtual void SAL_CALL disposing (void);
-
+
// XConfigurationChangeListener
-
+
virtual void SAL_CALL notifyConfigurationChange (
const com::sun::star::drawing::framework::ConfigurationChangeEvent& rEvent)
throw (com::sun::star::uno::RuntimeException);
@@ -201,7 +201,7 @@ void PresenterWindowManager::SetParentPane (
}
mxParentWindow = NULL;
mxParentCanvas = NULL;
-
+
if (rxPane.is())
{
mxParentWindow = rxPane->getWindow();
@@ -224,7 +224,7 @@ void PresenterWindowManager::SetParentPane (
if (xPeer.is())
xPeer->setBackground(util::Color(0xff000000));
}
-}
+}
@@ -234,7 +234,7 @@ void PresenterWindowManager::SetTheme (const ::boost::shared_ptr<PresenterTheme>
mpTheme = rpTheme;
// Get background bitmap or background color from the theme.
-
+
if (mpTheme.get() != NULL)
{
mpBackgroundBitmap = mpTheme->GetBitmap(OUString(), A2S("Background"));
@@ -265,7 +265,7 @@ void PresenterWindowManager::NotifyPaneCreation (
if (xBorderWindow.is() && ! rpDescriptor->mbIsSprite)
{
Invalidate();
-
+
xBorderWindow->addWindowListener(this);
xBorderWindow->addFocusListener(this);
#ifndef ENABLE_PANE_RESIZING
@@ -288,7 +288,7 @@ void PresenterWindowManager::NotifyViewCreation (const Reference<XView>& rxView)
if (pDescriptor.get() != NULL)
{
Layout();
-
+
mpPresenterController->GetPaintManager()->Invalidate(
pDescriptor->mxContentWindow,
(sal_Int16)(awt::InvalidateStyle::TRANSPARENT
@@ -364,7 +364,7 @@ void PresenterWindowManager::SetPaneBorderPainter (
//----- XWindowListener -------------------------------------------------------
-
+
void SAL_CALL PresenterWindowManager::windowResized (const awt::WindowEvent& rEvent)
throw (RuntimeException)
{
@@ -425,7 +425,7 @@ void SAL_CALL PresenterWindowManager::windowHidden (const lang::EventObject& rEv
//----- XPaintListener --------------------------------------------------------
-
+
void SAL_CALL PresenterWindowManager::windowPaint (const awt::PaintEvent& rEvent)
throw (RuntimeException)
{
@@ -554,7 +554,7 @@ void SAL_CALL PresenterWindowManager::disposing (const lang::EventObject& rEvent
bool PresenterWindowManager::PaintChildren (const awt::PaintEvent& rEvent) const
{
bool bChildInvalidated (false);
-
+
// Call windowPaint on all children that lie in or touch the
// update rectangle.
PresenterPaneContainer::PaneList::const_iterator iPane;
@@ -613,7 +613,7 @@ bool PresenterWindowManager::PaintChildren (const awt::PaintEvent& rEvent) const
void PresenterWindowManager::SetLayoutMode (const LayoutMode eMode)
{
OSL_ASSERT(mpPresenterController.get() != NULL);
-
+
if (meLayoutMode != eMode
|| mbIsSlideSorterActive
|| mbIsHelpViewActive)
@@ -762,15 +762,15 @@ void PresenterWindowManager::RestoreViewMode (void)
case 0:
SetViewMode(VM_Standard);
break;
-
+
case 1:
SetViewMode(VM_Notes);
break;
-
+
case 2:
SetViewMode(VM_SlideOverview);
break;
- }
+ }
}
@@ -863,7 +863,7 @@ void PresenterWindowManager::Layout (void)
default:
LayoutStandardMode();
break;
-
+
case LM_Notes:
LayoutNotesMode();
break;
@@ -909,7 +909,7 @@ void PresenterWindowManager::LayoutStandardMode (void)
aCurrentSlideOuterBox.Width,
aCurrentSlideOuterBox.Height);
}
-
+
// For the next slide view calculate the outer height from the outer
// width. This takes into acount the slide aspect ratio and thus has to
@@ -939,7 +939,7 @@ void PresenterWindowManager::LayoutNotesMode (void)
awt::Rectangle aBox = mxParentWindow->getPosSize();
const geometry::RealRectangle2D aToolBarBox (LayoutToolBar());
-
+
const double nGoldenRatio ((1 + sqrt(5.0)) / 2);
const double nGap (20);
const double nPrimaryWidth (aBox.Width / nGoldenRatio);
@@ -947,7 +947,7 @@ void PresenterWindowManager::LayoutNotesMode (void)
const double nTertiaryWidth (nSecondaryWidth / nGoldenRatio);
double nSlidePreviewTop (0);
double nNotesViewBottom (aToolBarBox.Y1 - nGap);
-
+
// The notes view has no fixed aspect ratio.
PresenterPaneContainer::SharedPaneDescriptor pPane (
mpPaneContainer->FindPaneURL(PresenterPaneFactory::msNotesPaneURL));
@@ -966,7 +966,7 @@ void PresenterWindowManager::LayoutNotesMode (void)
aNotesViewOuterSize.Height);
nNotesViewBottom = nSlidePreviewTop + aNotesViewOuterSize.Height;
}
-
+
// For the current slide view calculate the outer height from the outer
// width. This takes into acount the slide aspect ratio and thus has to
// go over the inner pane size.
@@ -983,7 +983,7 @@ void PresenterWindowManager::LayoutNotesMode (void)
aCurrentSlideOuterBox.Width,
aCurrentSlideOuterBox.Height);
}
-
+
// For the next slide view calculate the outer height from the outer
// width. This takes into acount the slide aspect ratio and thus has to
@@ -1152,7 +1152,7 @@ void PresenterWindowManager::NotifyLayoutModeChange (void)
{
}
}
- }
+ }
}
@@ -1182,7 +1182,7 @@ void PresenterWindowManager::NotifyDisposing (void)
{
}
}
- }
+ }
}
@@ -1191,7 +1191,7 @@ void PresenterWindowManager::NotifyDisposing (void)
void PresenterWindowManager::LayoutUnknownMode (void)
{
awt::Rectangle aBox = mxParentWindow->getPosSize();
-
+
PresenterPaneContainer::PaneList::const_iterator iPane;
PresenterPaneContainer::PaneList::const_iterator iEnd (mpPaneContainer->maPanes.end());
for (iPane=mpPaneContainer->maPanes.begin(); iPane!=iEnd; ++iPane)
@@ -1260,7 +1260,7 @@ void PresenterWindowManager::PaintBackground (const awt::Rectangle& rUpdateBox)
Reference<rendering::XGraphicDevice> xDevice (mxParentCanvas->getDevice());
if ( ! xDevice.is())
return;
-
+
// Create a polygon for the background and for clipping.
Reference<rendering::XPolyPolygon2D> xBackgroundPolygon (
PresenterGeometryHelper::CreatePolygon(mxParentWindow->getPosSize(), xDevice));
@@ -1281,7 +1281,7 @@ void PresenterWindowManager::PaintBackground (const awt::Rectangle& rUpdateBox)
if (mpBackgroundBitmap.get() != NULL)
{
ProvideBackgroundBitmap();
-
+
if (mxScaledBackgroundBitmap.is())
{
Sequence<rendering::Texture> aTextures (1);
@@ -1410,7 +1410,7 @@ void PresenterWindowManager::UpdateWindowList (void)
Reference<lang::XComponent> xComponent (mxPaneBorderManager, UNO_QUERY);
if (xComponent.is())
xComponent->dispose();
-
+
Reference<lang::XMultiComponentFactory> xFactory (mxComponentContext->getServiceManager());
if (xFactory.is())
{
@@ -1559,7 +1559,7 @@ ModeChangeAnimationStarter::ModeChangeAnimationStarter (
mpSprite->SetFactory(rxCanvas);
mpSprite->Resize(geometry::RealSize2D(aWindowSize.Width, aWindowSize.Height));
mpSprite->SetPriority(10);
-
+
// Fill it with the background inside the bounding box.
const rendering::ViewState aViewState (
geometry::AffineMatrix2D(1,0,0, 0,1,0),
@@ -1611,7 +1611,7 @@ void SAL_CALL ModeChangeAnimationStarter::notifyConfigurationChange (
throw (com::sun::star::uno::RuntimeException)
{
(void)rEvent;
-
+
// Start the actual animation.
mpAnimator->AddAnimation(SharedPresenterAnimation(new ModeChangeAnimation(
mpSprite,
diff --git a/sdext/source/presenter/PresenterWindowManager.hxx b/sdext/source/presenter/PresenterWindowManager.hxx
index e6428b6de464..8cc8dfa2d8fc 100644
--- a/sdext/source/presenter/PresenterWindowManager.hxx
+++ b/sdext/source/presenter/PresenterWindowManager.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -108,7 +108,7 @@ public:
css::uno::Reference<css::rendering::XCanvas> GetParentCanvas (void) const;
void Update (void);
void Layout (void);
-
+
void SetSlideSorterState (bool bIsActive);
void SetHelpViewState (bool bIsActive);
@@ -137,12 +137,12 @@ public:
const css::uno::Reference<css::document::XEventListener>& rxListener);
void RemoveLayoutListener (
const css::uno::Reference<css::document::XEventListener>& rxListener);
-
+
// XWindowListener
-
+
virtual void SAL_CALL windowResized (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL windowMoved (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException);
@@ -154,7 +154,7 @@ public:
// XPaintListener
-
+
virtual void SAL_CALL windowPaint (const css::awt::PaintEvent& rEvent)
throw (css::uno::RuntimeException);
@@ -181,7 +181,7 @@ public:
virtual void SAL_CALL focusLost (const css::awt::FocusEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
// XEventListener
diff --git a/sdext/source/presenter/registry/data/org/openoffice/Office/extension/PresenterScreen.xcu b/sdext/source/presenter/registry/data/org/openoffice/Office/extension/PresenterScreen.xcu
index 22316392f807..d7400f55c52a 100644
--- a/sdext/source/presenter/registry/data/org/openoffice/Office/extension/PresenterScreen.xcu
+++ b/sdext/source/presenter/registry/data/org/openoffice/Office/extension/PresenterScreen.xcu
@@ -2,7 +2,7 @@
<!--***********************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -61,7 +61,7 @@
</node>
</node>
</node>
- <node oor:name="b" oor:op="replace">
+ <node oor:name="b" oor:op="replace">
<prop oor:name="Name"><value>NextEffect</value></prop>
<prop oor:name="Type"><value>Button</value></prop>
<node oor:name="Normal">
@@ -91,7 +91,7 @@
</node>
</node>
</node>
- <node oor:name="c" oor:op="replace">
+ <node oor:name="c" oor:op="replace">
<prop oor:name="Name"><value>Notes</value></prop>
<prop oor:name="Type"><value>Button</value></prop>
<node oor:name="Normal">
@@ -199,7 +199,7 @@
</node>
</node>
</node>
- <node oor:name="i" oor:op="replace">
+ <node oor:name="i" oor:op="replace">
<prop oor:name="Type"><value>PresentationTimeLabel</value></prop>
<node oor:name="Normal">
<node oor:name="Font">