drop prefix from ::css
as css is already ::com::sun::star Change-Id: I86b43843e4b74f990b6e05dee37184a002072d12
This commit is contained in:
parent
83810a61ba
commit
a808497dbb
@ -105,19 +105,19 @@ public:
|
||||
inline ParagraphInfo(::sal_Int32 nHeight): m_nHeight(nHeight) {}
|
||||
|
||||
inline
|
||||
::css::uno::WeakReference< ::css::accessibility::XAccessible > const &
|
||||
css::uno::WeakReference< css::accessibility::XAccessible > const &
|
||||
getParagraph() const { return m_xParagraph; }
|
||||
|
||||
inline ::sal_Int32 getHeight() const { return m_nHeight; }
|
||||
|
||||
inline void setParagraph(
|
||||
::css::uno::Reference< ::css::accessibility::XAccessible > const &
|
||||
css::uno::Reference< css::accessibility::XAccessible > const &
|
||||
rParagraph) { m_xParagraph = rParagraph; }
|
||||
|
||||
inline void changeHeight(::sal_Int32 nHeight) { m_nHeight = nHeight; }
|
||||
|
||||
private:
|
||||
::css::uno::WeakReference< ::css::accessibility::XAccessible >
|
||||
css::uno::WeakReference< css::accessibility::XAccessible >
|
||||
m_xParagraph;
|
||||
::sal_Int32 m_nHeight;
|
||||
};
|
||||
@ -125,13 +125,13 @@ private:
|
||||
typedef ::std::vector< ParagraphInfo > Paragraphs;
|
||||
|
||||
typedef ::cppu::WeakAggComponentImplHelper7<
|
||||
::css::accessibility::XAccessible,
|
||||
::css::accessibility::XAccessibleContext,
|
||||
::css::accessibility::XAccessibleComponent,
|
||||
::css::accessibility::XAccessibleEditableText,
|
||||
::css::accessibility::XAccessibleMultiLineText,
|
||||
::css::accessibility::XAccessibleTextAttributes,
|
||||
::css::accessibility::XAccessibleEventBroadcaster > ParagraphBase;
|
||||
css::accessibility::XAccessible,
|
||||
css::accessibility::XAccessibleContext,
|
||||
css::accessibility::XAccessibleComponent,
|
||||
css::accessibility::XAccessibleEditableText,
|
||||
css::accessibility::XAccessibleMultiLineText,
|
||||
css::accessibility::XAccessibleTextAttributes,
|
||||
css::accessibility::XAccessibleEventBroadcaster > ParagraphBase;
|
||||
|
||||
// The Paragraph's number is the absolute position within the text engine (from
|
||||
// 0 to N - 1), whereas the Paragraph's index is the position within the text
|
||||
@ -154,134 +154,134 @@ public:
|
||||
void textChanged();
|
||||
|
||||
// Thread-safe.
|
||||
void notifyEvent(::sal_Int16 nEventId, ::css::uno::Any const & rOldValue,
|
||||
::css::uno::Any const & rNewValue);
|
||||
void notifyEvent(::sal_Int16 nEventId, css::uno::Any const & rOldValue,
|
||||
css::uno::Any const & rNewValue);
|
||||
|
||||
protected:
|
||||
// OCommonAccessibleText
|
||||
virtual void implGetParagraphBoundary( ::css::i18n::Boundary& rBoundary,
|
||||
virtual void implGetParagraphBoundary( css::i18n::Boundary& rBoundary,
|
||||
::sal_Int32 nIndex );
|
||||
virtual void implGetLineBoundary( ::css::i18n::Boundary& rBoundary,
|
||||
virtual void implGetLineBoundary( css::i18n::Boundary& rBoundary,
|
||||
::sal_Int32 nIndex );
|
||||
|
||||
private:
|
||||
virtual ::css::uno::Reference< ::css::accessibility::XAccessibleContext >
|
||||
SAL_CALL getAccessibleContext() throw (::css::uno::RuntimeException);
|
||||
virtual css::uno::Reference< css::accessibility::XAccessibleContext >
|
||||
SAL_CALL getAccessibleContext() throw (css::uno::RuntimeException);
|
||||
|
||||
virtual ::sal_Int32 SAL_CALL getAccessibleChildCount()
|
||||
throw (::css::uno::RuntimeException);
|
||||
throw (css::uno::RuntimeException);
|
||||
|
||||
virtual ::css::uno::Reference< ::css::accessibility::XAccessible > SAL_CALL
|
||||
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL
|
||||
getAccessibleChild(::sal_Int32 i)
|
||||
throw (::css::lang::IndexOutOfBoundsException,
|
||||
::css::uno::RuntimeException);
|
||||
throw (css::lang::IndexOutOfBoundsException,
|
||||
css::uno::RuntimeException);
|
||||
|
||||
virtual ::css::uno::Reference< ::css::accessibility::XAccessible > SAL_CALL
|
||||
getAccessibleParent() throw (::css::uno::RuntimeException);
|
||||
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL
|
||||
getAccessibleParent() throw (css::uno::RuntimeException);
|
||||
|
||||
virtual ::sal_Int32 SAL_CALL getAccessibleIndexInParent()
|
||||
throw (::css::uno::RuntimeException);
|
||||
throw (css::uno::RuntimeException);
|
||||
|
||||
virtual ::sal_Int16 SAL_CALL getAccessibleRole()
|
||||
throw (::css::uno::RuntimeException);
|
||||
throw (css::uno::RuntimeException);
|
||||
|
||||
virtual OUString SAL_CALL getAccessibleDescription()
|
||||
throw (::css::uno::RuntimeException);
|
||||
throw (css::uno::RuntimeException);
|
||||
|
||||
virtual OUString SAL_CALL getAccessibleName()
|
||||
throw (::css::uno::RuntimeException);
|
||||
throw (css::uno::RuntimeException);
|
||||
|
||||
virtual
|
||||
::css::uno::Reference< ::css::accessibility::XAccessibleRelationSet >
|
||||
SAL_CALL getAccessibleRelationSet() throw (::css::uno::RuntimeException);
|
||||
css::uno::Reference< css::accessibility::XAccessibleRelationSet >
|
||||
SAL_CALL getAccessibleRelationSet() throw (css::uno::RuntimeException);
|
||||
|
||||
virtual
|
||||
::css::uno::Reference< ::css::accessibility::XAccessibleStateSet > SAL_CALL
|
||||
getAccessibleStateSet() throw (::css::uno::RuntimeException);
|
||||
css::uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL
|
||||
getAccessibleStateSet() throw (css::uno::RuntimeException);
|
||||
|
||||
virtual ::css::lang::Locale SAL_CALL getLocale()
|
||||
throw (::css::accessibility::IllegalAccessibleComponentStateException,
|
||||
::css::uno::RuntimeException);
|
||||
virtual css::lang::Locale SAL_CALL getLocale()
|
||||
throw (css::accessibility::IllegalAccessibleComponentStateException,
|
||||
css::uno::RuntimeException);
|
||||
|
||||
virtual ::sal_Bool SAL_CALL containsPoint(::css::awt::Point const & rPoint)
|
||||
throw (::css::uno::RuntimeException);
|
||||
virtual ::sal_Bool SAL_CALL containsPoint(css::awt::Point const & rPoint)
|
||||
throw (css::uno::RuntimeException);
|
||||
|
||||
virtual ::css::uno::Reference< ::css::accessibility::XAccessible > SAL_CALL
|
||||
getAccessibleAtPoint(::css::awt::Point const & rPoint)
|
||||
throw (::css::uno::RuntimeException);
|
||||
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL
|
||||
getAccessibleAtPoint(css::awt::Point const & rPoint)
|
||||
throw (css::uno::RuntimeException);
|
||||
|
||||
virtual ::css::awt::Rectangle SAL_CALL getBounds()
|
||||
throw (::css::uno::RuntimeException);
|
||||
virtual css::awt::Rectangle SAL_CALL getBounds()
|
||||
throw (css::uno::RuntimeException);
|
||||
|
||||
virtual ::css::awt::Point SAL_CALL getLocation()
|
||||
throw (::css::uno::RuntimeException);
|
||||
virtual css::awt::Point SAL_CALL getLocation()
|
||||
throw (css::uno::RuntimeException);
|
||||
|
||||
virtual ::css::awt::Point SAL_CALL getLocationOnScreen()
|
||||
throw (::css::uno::RuntimeException);
|
||||
virtual css::awt::Point SAL_CALL getLocationOnScreen()
|
||||
throw (css::uno::RuntimeException);
|
||||
|
||||
virtual ::css::awt::Size SAL_CALL getSize()
|
||||
throw (::css::uno::RuntimeException);
|
||||
virtual css::awt::Size SAL_CALL getSize()
|
||||
throw (css::uno::RuntimeException);
|
||||
|
||||
virtual void SAL_CALL grabFocus() throw (::css::uno::RuntimeException);
|
||||
virtual void SAL_CALL grabFocus() throw (css::uno::RuntimeException);
|
||||
|
||||
virtual ::css::uno::Any SAL_CALL getAccessibleKeyBinding()
|
||||
throw (::css::uno::RuntimeException);
|
||||
virtual css::uno::Any SAL_CALL getAccessibleKeyBinding()
|
||||
throw (css::uno::RuntimeException);
|
||||
|
||||
virtual ::css::util::Color SAL_CALL getForeground()
|
||||
throw (::css::uno::RuntimeException);
|
||||
virtual css::util::Color SAL_CALL getForeground()
|
||||
throw (css::uno::RuntimeException);
|
||||
|
||||
virtual ::css::util::Color SAL_CALL getBackground()
|
||||
throw (::css::uno::RuntimeException);
|
||||
virtual css::util::Color SAL_CALL getBackground()
|
||||
throw (css::uno::RuntimeException);
|
||||
|
||||
virtual ::sal_Int32 SAL_CALL getCaretPosition()
|
||||
throw (::css::uno::RuntimeException);
|
||||
throw (css::uno::RuntimeException);
|
||||
|
||||
virtual ::sal_Bool SAL_CALL setCaretPosition(::sal_Int32 nIndex)
|
||||
throw (::css::lang::IndexOutOfBoundsException,
|
||||
::css::uno::RuntimeException);
|
||||
throw (css::lang::IndexOutOfBoundsException,
|
||||
css::uno::RuntimeException);
|
||||
|
||||
virtual ::sal_Unicode SAL_CALL getCharacter(::sal_Int32 nIndex)
|
||||
throw (::css::lang::IndexOutOfBoundsException,
|
||||
::css::uno::RuntimeException);
|
||||
throw (css::lang::IndexOutOfBoundsException,
|
||||
css::uno::RuntimeException);
|
||||
|
||||
virtual ::css::uno::Sequence< ::css::beans::PropertyValue > SAL_CALL
|
||||
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL
|
||||
getCharacterAttributes(::sal_Int32 nIndex, const ::com::sun::star::uno::Sequence< OUString >& aRequestedAttributes )
|
||||
throw (::css::lang::IndexOutOfBoundsException,
|
||||
::css::uno::RuntimeException);
|
||||
throw (css::lang::IndexOutOfBoundsException,
|
||||
css::uno::RuntimeException);
|
||||
|
||||
virtual ::css::awt::Rectangle SAL_CALL
|
||||
virtual css::awt::Rectangle SAL_CALL
|
||||
getCharacterBounds(::sal_Int32 nIndex)
|
||||
throw (::css::lang::IndexOutOfBoundsException,
|
||||
::css::uno::RuntimeException);
|
||||
throw (css::lang::IndexOutOfBoundsException,
|
||||
css::uno::RuntimeException);
|
||||
|
||||
virtual ::sal_Int32 SAL_CALL getCharacterCount()
|
||||
throw (::css::uno::RuntimeException);
|
||||
throw (css::uno::RuntimeException);
|
||||
|
||||
virtual ::sal_Int32 SAL_CALL
|
||||
getIndexAtPoint(::css::awt::Point const & rPoint)
|
||||
throw (::css::uno::RuntimeException);
|
||||
getIndexAtPoint(css::awt::Point const & rPoint)
|
||||
throw (css::uno::RuntimeException);
|
||||
|
||||
virtual OUString SAL_CALL getSelectedText()
|
||||
throw (::css::uno::RuntimeException);
|
||||
throw (css::uno::RuntimeException);
|
||||
|
||||
virtual ::sal_Int32 SAL_CALL getSelectionStart()
|
||||
throw (::css::uno::RuntimeException);
|
||||
throw (css::uno::RuntimeException);
|
||||
|
||||
virtual ::sal_Int32 SAL_CALL getSelectionEnd()
|
||||
throw (::css::uno::RuntimeException);
|
||||
throw (css::uno::RuntimeException);
|
||||
|
||||
virtual ::sal_Bool SAL_CALL setSelection(::sal_Int32 nStartIndex,
|
||||
::sal_Int32 nEndIndex)
|
||||
throw (::css::lang::IndexOutOfBoundsException,
|
||||
::css::uno::RuntimeException);
|
||||
throw (css::lang::IndexOutOfBoundsException,
|
||||
css::uno::RuntimeException);
|
||||
|
||||
virtual OUString SAL_CALL getText()
|
||||
throw (::css::uno::RuntimeException);
|
||||
throw (css::uno::RuntimeException);
|
||||
|
||||
virtual OUString SAL_CALL getTextRange(::sal_Int32 nStartIndex,
|
||||
::sal_Int32 nEndIndex)
|
||||
throw (::css::lang::IndexOutOfBoundsException,
|
||||
::css::uno::RuntimeException);
|
||||
throw (css::lang::IndexOutOfBoundsException,
|
||||
css::uno::RuntimeException);
|
||||
|
||||
virtual ::com::sun::star::accessibility::TextSegment SAL_CALL getTextAtIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
|
||||
virtual ::com::sun::star::accessibility::TextSegment SAL_CALL getTextBeforeIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
|
||||
@ -289,52 +289,52 @@ private:
|
||||
|
||||
virtual ::sal_Bool SAL_CALL copyText(::sal_Int32 nStartIndex,
|
||||
::sal_Int32 nEndIndex)
|
||||
throw (::css::lang::IndexOutOfBoundsException,
|
||||
::css::uno::RuntimeException);
|
||||
throw (css::lang::IndexOutOfBoundsException,
|
||||
css::uno::RuntimeException);
|
||||
|
||||
virtual ::sal_Bool SAL_CALL cutText(::sal_Int32 nStartIndex,
|
||||
::sal_Int32 nEndIndex)
|
||||
throw (::css::lang::IndexOutOfBoundsException,
|
||||
::css::uno::RuntimeException);
|
||||
throw (css::lang::IndexOutOfBoundsException,
|
||||
css::uno::RuntimeException);
|
||||
|
||||
virtual ::sal_Bool SAL_CALL pasteText(::sal_Int32 nIndex)
|
||||
throw (::css::lang::IndexOutOfBoundsException,
|
||||
::css::uno::RuntimeException);
|
||||
throw (css::lang::IndexOutOfBoundsException,
|
||||
css::uno::RuntimeException);
|
||||
|
||||
virtual ::sal_Bool SAL_CALL deleteText(::sal_Int32 nStartIndex,
|
||||
::sal_Int32 nEndIndex)
|
||||
throw (::css::lang::IndexOutOfBoundsException,
|
||||
::css::uno::RuntimeException);
|
||||
throw (css::lang::IndexOutOfBoundsException,
|
||||
css::uno::RuntimeException);
|
||||
|
||||
virtual ::sal_Bool SAL_CALL insertText(OUString const & rText,
|
||||
::sal_Int32 nIndex)
|
||||
throw (::css::lang::IndexOutOfBoundsException,
|
||||
::css::uno::RuntimeException);
|
||||
throw (css::lang::IndexOutOfBoundsException,
|
||||
css::uno::RuntimeException);
|
||||
|
||||
virtual ::sal_Bool SAL_CALL replaceText(
|
||||
::sal_Int32 nStartIndex, ::sal_Int32 nEndIndex,
|
||||
OUString const & rReplacement)
|
||||
throw (::css::lang::IndexOutOfBoundsException,
|
||||
::css::uno::RuntimeException);
|
||||
throw (css::lang::IndexOutOfBoundsException,
|
||||
css::uno::RuntimeException);
|
||||
|
||||
virtual ::sal_Bool SAL_CALL setAttributes(
|
||||
::sal_Int32 nStartIndex, ::sal_Int32 nEndIndex,
|
||||
::css::uno::Sequence< ::css::beans::PropertyValue > const &
|
||||
css::uno::Sequence< css::beans::PropertyValue > const &
|
||||
rAttributeSet)
|
||||
throw (::css::lang::IndexOutOfBoundsException,
|
||||
::css::uno::RuntimeException);
|
||||
throw (css::lang::IndexOutOfBoundsException,
|
||||
css::uno::RuntimeException);
|
||||
|
||||
virtual ::sal_Bool SAL_CALL setText(OUString const & rText)
|
||||
throw (::css::uno::RuntimeException);
|
||||
throw (css::uno::RuntimeException);
|
||||
|
||||
virtual ::css::uno::Sequence< ::css::beans::PropertyValue > SAL_CALL
|
||||
getDefaultAttributes(const ::css::uno::Sequence< OUString >& RequestedAttributes)
|
||||
throw (::css::uno::RuntimeException);
|
||||
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL
|
||||
getDefaultAttributes(const css::uno::Sequence< OUString >& RequestedAttributes)
|
||||
throw (css::uno::RuntimeException);
|
||||
|
||||
virtual ::css::uno::Sequence< ::css::beans::PropertyValue > SAL_CALL
|
||||
getRunAttributes(::sal_Int32 Index, const ::css::uno::Sequence< OUString >& RequestedAttributes)
|
||||
throw (::css::lang::IndexOutOfBoundsException,
|
||||
::css::uno::RuntimeException);
|
||||
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL
|
||||
getRunAttributes(::sal_Int32 Index, const css::uno::Sequence< OUString >& RequestedAttributes)
|
||||
throw (css::lang::IndexOutOfBoundsException,
|
||||
css::uno::RuntimeException);
|
||||
|
||||
virtual ::sal_Int32 SAL_CALL getLineNumberAtIndex( ::sal_Int32 nIndex )
|
||||
throw (::com::sun::star::lang::IndexOutOfBoundsException,
|
||||
@ -351,25 +351,25 @@ private:
|
||||
throw (::com::sun::star::uno::RuntimeException);
|
||||
|
||||
virtual void SAL_CALL addAccessibleEventListener(
|
||||
::css::uno::Reference<
|
||||
::css::accessibility::XAccessibleEventListener > const & rListener)
|
||||
throw (::css::uno::RuntimeException);
|
||||
css::uno::Reference<
|
||||
css::accessibility::XAccessibleEventListener > const & rListener)
|
||||
throw (css::uno::RuntimeException);
|
||||
|
||||
virtual void SAL_CALL removeAccessibleEventListener(
|
||||
::css::uno::Reference<
|
||||
::css::accessibility::XAccessibleEventListener > const & rListener)
|
||||
throw (::css::uno::RuntimeException);
|
||||
css::uno::Reference<
|
||||
css::accessibility::XAccessibleEventListener > const & rListener)
|
||||
throw (css::uno::RuntimeException);
|
||||
|
||||
virtual void SAL_CALL disposing();
|
||||
|
||||
virtual OUString implGetText();
|
||||
|
||||
virtual ::css::lang::Locale implGetLocale();
|
||||
virtual css::lang::Locale implGetLocale();
|
||||
|
||||
virtual void implGetSelection(::sal_Int32 & rStartIndex,
|
||||
::sal_Int32 & rEndIndex);
|
||||
|
||||
// Throws ::css::lang::DisposedException:
|
||||
// Throws css::lang::DisposedException:
|
||||
void checkDisposed();
|
||||
|
||||
::rtl::Reference< Document > m_xDocument;
|
||||
@ -384,7 +384,7 @@ private:
|
||||
|
||||
|
||||
typedef ::boost::unordered_map< OUString,
|
||||
::css::beans::PropertyValue,
|
||||
css::beans::PropertyValue,
|
||||
OUStringHash,
|
||||
::std::equal_to< OUString > > tPropValMap;
|
||||
|
||||
@ -394,11 +394,11 @@ public:
|
||||
Document(::VCLXWindow * pVclXWindow, ::TextEngine & rEngine,
|
||||
::TextView & rView, bool bCompoundControlChild);
|
||||
|
||||
inline ::css::uno::Reference< ::css::accessibility::XAccessible >
|
||||
inline css::uno::Reference< css::accessibility::XAccessible >
|
||||
getAccessible() { return m_xAccessible; }
|
||||
|
||||
// Must be called only after init has been called.
|
||||
::css::lang::Locale retrieveLocale();
|
||||
css::lang::Locale retrieveLocale();
|
||||
|
||||
// Must be called only after init has been called.
|
||||
// To make it possible for this method to be (indirectly) called from
|
||||
@ -419,7 +419,7 @@ public:
|
||||
// within Paragraph's constructor (i.e., when the Paragraph's ref count is
|
||||
// still zero), pass a "ParagraphImpl const &" instead of a
|
||||
// "::rtl::Reference< ParagraphImpl > const &".
|
||||
::css::awt::Rectangle
|
||||
css::awt::Rectangle
|
||||
retrieveParagraphBounds(ParagraphImpl const * pParagraph, bool bAbsolute);
|
||||
|
||||
// Must be called only after init has been called.
|
||||
@ -449,8 +449,8 @@ public:
|
||||
// within Paragraph's constructor (i.e., when the Paragraph's ref count is
|
||||
// still zero), pass a "ParagraphImpl const &" instead of a
|
||||
// "::rtl::Reference< ParagraphImpl > const &".
|
||||
// Throws ::css::lang::IndexOutOfBoundsException.
|
||||
::css::awt::Rectangle
|
||||
// Throws css::lang::IndexOutOfBoundsException.
|
||||
css::awt::Rectangle
|
||||
retrieveCharacterBounds(ParagraphImpl const * pParagraph,
|
||||
::sal_Int32 nIndex);
|
||||
|
||||
@ -460,36 +460,36 @@ public:
|
||||
// still zero), pass a "ParagraphImpl const &" instead of a
|
||||
// "::rtl::Reference< ParagraphImpl > const &".
|
||||
::sal_Int32 retrieveCharacterIndex(ParagraphImpl const * pParagraph,
|
||||
::css::awt::Point const & rPoint);
|
||||
css::awt::Point const & rPoint);
|
||||
|
||||
// Must be called only after init has been called.
|
||||
// To make it possible for this method to be (indirectly) called from
|
||||
// within Paragraph's constructor (i.e., when the Paragraph's ref count is
|
||||
// still zero), pass a "ParagraphImpl const &" instead of a
|
||||
// "::rtl::Reference< ParagraphImpl > const &".
|
||||
// Throws ::css::lang::IndexOutOfBoundsException.
|
||||
::css::uno::Sequence< ::css::beans::PropertyValue > retrieveCharacterAttributes(
|
||||
// Throws css::lang::IndexOutOfBoundsException.
|
||||
css::uno::Sequence< css::beans::PropertyValue > retrieveCharacterAttributes(
|
||||
ParagraphImpl const * pParagraph, ::sal_Int32 nIndex,
|
||||
const ::css::uno::Sequence< OUString >& aRequestedAttributes);
|
||||
const css::uno::Sequence< OUString >& aRequestedAttributes);
|
||||
|
||||
// Must be called only after init has been called.
|
||||
// To make it possible for this method to be (indirectly) called from
|
||||
// within Paragraph's constructor (i.e., when the Paragraph's ref count is
|
||||
// still zero), pass a "ParagraphImpl const &" instead of a
|
||||
// "::rtl::Reference< ParagraphImpl > const &".
|
||||
::css::uno::Sequence< ::css::beans::PropertyValue > retrieveDefaultAttributes(
|
||||
css::uno::Sequence< css::beans::PropertyValue > retrieveDefaultAttributes(
|
||||
ParagraphImpl const * pParagraph,
|
||||
const ::css::uno::Sequence< OUString >& RequestedAttributes);
|
||||
const css::uno::Sequence< OUString >& RequestedAttributes);
|
||||
|
||||
// Must be called only after init has been called.
|
||||
// To make it possible for this method to be (indirectly) called from
|
||||
// within Paragraph's constructor (i.e., when the Paragraph's ref count is
|
||||
// still zero), pass a "ParagraphImpl const &" instead of a
|
||||
// "::rtl::Reference< ParagraphImpl > const &".
|
||||
// Throws ::css::lang::IndexOutOfBoundsException.
|
||||
::css::uno::Sequence< ::css::beans::PropertyValue > retrieveRunAttributes(
|
||||
// Throws css::lang::IndexOutOfBoundsException.
|
||||
css::uno::Sequence< css::beans::PropertyValue > retrieveRunAttributes(
|
||||
ParagraphImpl const * pParagraph, ::sal_Int32 Index,
|
||||
const ::css::uno::Sequence< OUString >& RequestedAttributes);
|
||||
const css::uno::Sequence< OUString >& RequestedAttributes);
|
||||
|
||||
// Must be called only after init has been called.
|
||||
// To make it possible for this method to be (indirectly) called from
|
||||
@ -504,7 +504,7 @@ public:
|
||||
// within Paragraph's constructor (i.e., when the Paragraph's ref count is
|
||||
// still zero), pass a "ParagraphImpl const &" instead of a
|
||||
// "::rtl::Reference< ParagraphImpl > const &".
|
||||
// Throws ::css::lang::IndexOutOfBoundsException.
|
||||
// Throws css::lang::IndexOutOfBoundsException.
|
||||
void changeParagraphText(ParagraphImpl * pParagraph, ::sal_Int32 nBegin,
|
||||
::sal_Int32 nEnd, bool bCut, bool bPaste,
|
||||
OUString const & rText);
|
||||
@ -514,7 +514,7 @@ public:
|
||||
// within Paragraph's constructor (i.e., when the Paragraph's ref count is
|
||||
// still zero), pass a "ParagraphImpl const &" instead of a
|
||||
// "::rtl::Reference< ParagraphImpl > const &".
|
||||
// Throws ::css::lang::IndexOutOfBoundsException.
|
||||
// Throws css::lang::IndexOutOfBoundsException.
|
||||
void copyParagraphText(ParagraphImpl const * pParagraph,
|
||||
::sal_Int32 nBegin, ::sal_Int32 nEnd);
|
||||
|
||||
@ -523,10 +523,10 @@ public:
|
||||
// within Paragraph's constructor (i.e., when the Paragraph's ref count is
|
||||
// still zero), pass a "ParagraphImpl const &" instead of a
|
||||
// "::rtl::Reference< ParagraphImpl > const &".
|
||||
// Throws ::css::lang::IndexOutOfBoundsException.
|
||||
// Throws css::lang::IndexOutOfBoundsException.
|
||||
void changeParagraphAttributes(
|
||||
ParagraphImpl * pParagraph, ::sal_Int32 nBegin, ::sal_Int32 nEnd,
|
||||
::css::uno::Sequence< ::css::beans::PropertyValue > const &
|
||||
css::uno::Sequence< css::beans::PropertyValue > const &
|
||||
rAttributeSet);
|
||||
|
||||
// Must be called only after init has been called.
|
||||
@ -534,21 +534,21 @@ public:
|
||||
// within Paragraph's constructor (i.e., when the Paragraph's ref count is
|
||||
// still zero), pass a "ParagraphImpl const &" instead of a
|
||||
// "::rtl::Reference< ParagraphImpl > const &".
|
||||
// Throws ::css::lang::IndexOutOfBoundsException.
|
||||
// Throws css::lang::IndexOutOfBoundsException.
|
||||
void changeParagraphSelection(ParagraphImpl * pParagraph,
|
||||
::sal_Int32 nBegin, ::sal_Int32 nEnd);
|
||||
|
||||
::css::i18n::Boundary
|
||||
css::i18n::Boundary
|
||||
retrieveParagraphLineBoundary( ParagraphImpl const * pParagraph,
|
||||
::sal_Int32 nIndex, ::sal_Int32 *pLineNo = NULL);
|
||||
|
||||
::css::i18n::Boundary
|
||||
css::i18n::Boundary
|
||||
retrieveParagraphBoundaryOfLine( ParagraphImpl const * pParagraph,
|
||||
::sal_Int32 nIndex );
|
||||
|
||||
sal_Int32 retrieveParagraphLineWithCursor( ParagraphImpl const * pParagraph );
|
||||
|
||||
::css::uno::Reference< ::css::accessibility::XAccessibleRelationSet >
|
||||
css::uno::Reference< css::accessibility::XAccessibleRelationSet >
|
||||
retrieveParagraphRelationSet( ParagraphImpl const * pParagraph );
|
||||
|
||||
protected:
|
||||
@ -557,19 +557,19 @@ protected:
|
||||
|
||||
private:
|
||||
virtual ::sal_Int32 SAL_CALL getAccessibleChildCount()
|
||||
throw (::css::uno::RuntimeException);
|
||||
throw (css::uno::RuntimeException);
|
||||
|
||||
virtual ::css::uno::Reference< ::css::accessibility::XAccessible >
|
||||
virtual css::uno::Reference< css::accessibility::XAccessible >
|
||||
SAL_CALL getAccessibleChild(::sal_Int32 i)
|
||||
throw (::css::lang::IndexOutOfBoundsException,
|
||||
::css::uno::RuntimeException);
|
||||
throw (css::lang::IndexOutOfBoundsException,
|
||||
css::uno::RuntimeException);
|
||||
|
||||
virtual ::sal_Int16 SAL_CALL getAccessibleRole()
|
||||
throw (::css::uno::RuntimeException);
|
||||
throw (css::uno::RuntimeException);
|
||||
|
||||
virtual ::css::uno::Reference< ::css::accessibility::XAccessible >
|
||||
SAL_CALL getAccessibleAtPoint(::css::awt::Point const & rPoint)
|
||||
throw (::css::uno::RuntimeException);
|
||||
virtual css::uno::Reference< css::accessibility::XAccessible >
|
||||
SAL_CALL getAccessibleAtPoint(css::awt::Point const & rPoint)
|
||||
throw (css::uno::RuntimeException);
|
||||
|
||||
// ??? Will be called with both the external (Solar) and internal mutex
|
||||
// locked:
|
||||
@ -595,8 +595,8 @@ private:
|
||||
|
||||
// Must be called with both the external (Solar) and internal mutex
|
||||
// locked, and after init has been called.
|
||||
// Throws ::css::uno::RuntimeException.
|
||||
::css::uno::Reference< ::css::accessibility::XAccessible >
|
||||
// Throws css::uno::RuntimeException.
|
||||
css::uno::Reference< css::accessibility::XAccessible >
|
||||
getAccessibleChild(Paragraphs::iterator const & rIt);
|
||||
|
||||
// Must be called with both the external (Solar) and internal mutex
|
||||
@ -627,28 +627,28 @@ private:
|
||||
|
||||
void disposeParagraphs();
|
||||
|
||||
static ::css::uno::Any mapFontColor(::Color const & rColor);
|
||||
static css::uno::Any mapFontColor(::Color const & rColor);
|
||||
|
||||
static ::Color mapFontColor(::css::uno::Any const & rColor);
|
||||
static ::Color mapFontColor(css::uno::Any const & rColor);
|
||||
|
||||
static ::css::uno::Any mapFontWeight(::FontWeight nWeight);
|
||||
static css::uno::Any mapFontWeight(::FontWeight nWeight);
|
||||
|
||||
static ::FontWeight mapFontWeight(::css::uno::Any const & rWeight);
|
||||
static ::FontWeight mapFontWeight(css::uno::Any const & rWeight);
|
||||
|
||||
void retrieveDefaultAttributesImpl(
|
||||
ParagraphImpl const * pParagraph,
|
||||
const ::css::uno::Sequence< OUString >& RequestedAttributes,
|
||||
const css::uno::Sequence< OUString >& RequestedAttributes,
|
||||
tPropValMap& rDefAttrSeq);
|
||||
|
||||
void retrieveRunAttributesImpl(
|
||||
ParagraphImpl const * pParagraph, ::sal_Int32 Index,
|
||||
const ::css::uno::Sequence< OUString >& RequestedAttributes,
|
||||
const css::uno::Sequence< OUString >& RequestedAttributes,
|
||||
tPropValMap& rRunAttrSeq);
|
||||
|
||||
static ::css::uno::Sequence< ::css::beans::PropertyValue >
|
||||
static css::uno::Sequence< css::beans::PropertyValue >
|
||||
convertHashMapToSequence(tPropValMap& rAttrSeq);
|
||||
|
||||
::css::uno::Reference< ::css::accessibility::XAccessible > m_xAccessible;
|
||||
css::uno::Reference< css::accessibility::XAccessible > m_xAccessible;
|
||||
::TextEngine & m_rEngine;
|
||||
::TextView & m_rView;
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -202,7 +202,7 @@ public:
|
||||
|
||||
private:
|
||||
OUString m_sUserDir;
|
||||
css::uno::Reference< ::css::configuration::backend::XLayer> m_xLayer;
|
||||
css::uno::Reference< css::configuration::backend::XLayer> m_xLayer;
|
||||
|
||||
void migrateJavarc();
|
||||
typedef ::std::pair< ::rtl::OUString, sal_Int16> TElementType;
|
||||
|
@ -117,7 +117,7 @@ namespace javaunohelper {
|
||||
}
|
||||
|
||||
css::uno::Reference< css::uno::XComponentContext > install_vm_singleton(
|
||||
css::uno::Reference< ::css::uno::XComponentContext > const & xContext,
|
||||
css::uno::Reference< css::uno::XComponentContext > const & xContext,
|
||||
::rtl::Reference< ::jvmaccess::UnoVirtualMachine > const & vm_access )
|
||||
{
|
||||
css::uno::Reference< css::lang::XSingleComponentFactory > xFac( new SingletonFactory( vm_access ) );
|
||||
|
@ -248,7 +248,7 @@ public:
|
||||
virtual void SAL_CALL AutoFill( const css::uno::Reference< ov::excel::XRange >& Destination, const css::uno::Any& Type ) throw (css::uno::RuntimeException) ;
|
||||
void SAL_CALL Calculate( ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
|
||||
virtual void SAL_CALL AutoOutline( ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
|
||||
virtual css::uno::Reference< ov::excel::XRange > SAL_CALL Item( const ::css::uno::Any& row, const css::uno::Any& column ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
|
||||
virtual css::uno::Reference< ov::excel::XRange > SAL_CALL Item( const css::uno::Any& row, const css::uno::Any& column ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
|
||||
virtual void SAL_CALL ClearOutline( ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
|
||||
virtual void SAL_CALL Ungroup( ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
|
||||
virtual void SAL_CALL Group( ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
|
||||
|
@ -97,8 +97,8 @@ public:
|
||||
*/
|
||||
void NotifyListeners (
|
||||
const ::rtl::OUString& rsEventType,
|
||||
const ::css::uno::Reference<css::drawing::framework::XResourceId>& rxResourceId,
|
||||
const ::css::uno::Reference<css::drawing::framework::XResource>& rxResourceObject);
|
||||
const css::uno::Reference<css::drawing::framework::XResourceId>& rxResourceId,
|
||||
const css::uno::Reference<css::drawing::framework::XResource>& rxResourceObject);
|
||||
|
||||
/** Call all listeners and inform them that the
|
||||
ConfigurationController is being disposed. When this method returns
|
||||
|
@ -40,7 +40,7 @@ namespace sd { namespace framework {
|
||||
|
||||
namespace {
|
||||
typedef ::cppu::WeakComponentImplHelper1 <
|
||||
::css::drawing::framework::XConfigurationChangeListener
|
||||
css::drawing::framework::XConfigurationChangeListener
|
||||
> ToolBarModuleInterfaceBase;
|
||||
}
|
||||
|
||||
|
@ -32,7 +32,7 @@
|
||||
namespace {
|
||||
|
||||
typedef ::cppu::WeakComponentImplHelper1 <
|
||||
::css::drawing::framework::XConfigurationChangeListener
|
||||
css::drawing::framework::XConfigurationChangeListener
|
||||
> ViewTabBarModuleInterfaceBase;
|
||||
|
||||
} // end of anonymous namespace.
|
||||
|
@ -42,8 +42,8 @@
|
||||
namespace {
|
||||
|
||||
typedef ::cppu::WeakComponentImplHelper2 <
|
||||
::css::drawing::framework::XConfigurationController,
|
||||
::css::lang::XInitialization
|
||||
css::drawing::framework::XConfigurationController,
|
||||
css::lang::XInitialization
|
||||
> ConfigurationControllerInterfaceBase;
|
||||
|
||||
} // end of anonymous namespace.
|
||||
|
@ -80,7 +80,7 @@ public:
|
||||
(when the sd modules is unloaded) is done by a) calling dispose()
|
||||
when the XComponent is supported and by b) releasing the reference.
|
||||
*/
|
||||
void AddResource (const ::css::uno::Reference<css::uno::XInterface>& rxResource);
|
||||
void AddResource (const css::uno::Reference<css::uno::XInterface>& rxResource);
|
||||
|
||||
protected:
|
||||
friend class ::SdModule;
|
||||
|
@ -61,16 +61,16 @@ public:
|
||||
// XSlideRenderer
|
||||
|
||||
virtual css::uno::Reference<css::awt::XBitmap> SAL_CALL createPreview (
|
||||
const ::css::uno::Reference<css::drawing::XDrawPage>& rxSlide,
|
||||
const css::uno::Reference<css::drawing::XDrawPage>& rxSlide,
|
||||
const css::awt::Size& rMaximumPreviewPixelSize,
|
||||
sal_Int16 nSuperSampleFactor)
|
||||
throw (css::uno::RuntimeException);
|
||||
|
||||
virtual css::uno::Reference<css::rendering::XBitmap> SAL_CALL createPreviewForCanvas (
|
||||
const ::css::uno::Reference<css::drawing::XDrawPage>& rxSlide,
|
||||
const css::uno::Reference<css::drawing::XDrawPage>& rxSlide,
|
||||
const css::awt::Size& rMaximumPreviewPixelSize,
|
||||
sal_Int16 nSuperSampleFactor,
|
||||
const ::css::uno::Reference<css::rendering::XCanvas>& rxCanvas)
|
||||
const css::uno::Reference<css::rendering::XCanvas>& rxCanvas)
|
||||
throw (css::uno::RuntimeException);
|
||||
|
||||
virtual css::awt::Size SAL_CALL calculatePreviewSize (
|
||||
@ -82,7 +82,7 @@ private:
|
||||
PreviewRenderer maPreviewRenderer;
|
||||
|
||||
BitmapEx CreatePreview (
|
||||
const ::css::uno::Reference<css::drawing::XDrawPage>& rxSlide,
|
||||
const css::uno::Reference<css::drawing::XDrawPage>& rxSlide,
|
||||
const css::awt::Size& rMaximumPreviewPixelSize,
|
||||
sal_Int16 nSuperSampleFactor)
|
||||
throw (css::uno::RuntimeException);
|
||||
|
@ -126,7 +126,7 @@ public:
|
||||
const ::std::vector<css::uno::Any>&) > ItemProcessor;
|
||||
typedef ::boost::function<void(
|
||||
const ::rtl::OUString&,
|
||||
const ::css::uno::Reference<css::beans::XPropertySet>&) > PropertySetProcessor;
|
||||
const css::uno::Reference<css::beans::XPropertySet>&) > PropertySetProcessor;
|
||||
|
||||
/** Execute a functor for all elements of the given container.
|
||||
@param rxContainer
|
||||
|
@ -58,7 +58,7 @@ public:
|
||||
|
||||
private:
|
||||
::rtl::OUString msEventType;
|
||||
::css::uno::Reference<css::drawing::framework::XConfigurationController> mxConfigurationController;
|
||||
css::uno::Reference<css::drawing::framework::XConfigurationController> mxConfigurationController;
|
||||
Predicate maPredicate;
|
||||
Action maAction;
|
||||
|
||||
|
@ -54,7 +54,7 @@ PresenterSprite::~PresenterSprite (void)
|
||||
}
|
||||
|
||||
void PresenterSprite::SetFactory (
|
||||
const ::css::uno::Reference<css::rendering::XSpriteCanvas>& rxSpriteFactory)
|
||||
const css::uno::Reference<css::rendering::XSpriteCanvas>& rxSpriteFactory)
|
||||
{
|
||||
if (mxSpriteFactory != rxSpriteFactory)
|
||||
{
|
||||
@ -65,7 +65,7 @@ void PresenterSprite::SetFactory (
|
||||
}
|
||||
}
|
||||
|
||||
::css::uno::Reference<css::rendering::XCanvas> PresenterSprite::GetCanvas (void)
|
||||
css::uno::Reference<css::rendering::XCanvas> PresenterSprite::GetCanvas (void)
|
||||
{
|
||||
ProvideSprite();
|
||||
if (mxSprite.is())
|
||||
|
@ -45,9 +45,9 @@ public:
|
||||
It is also used to call updateScreen() at (wrapped by the Update() method).
|
||||
*/
|
||||
void SetFactory (
|
||||
const ::css::uno::Reference<css::rendering::XSpriteCanvas>& rxSpriteFactory);
|
||||
const css::uno::Reference<css::rendering::XSpriteCanvas>& rxSpriteFactory);
|
||||
|
||||
::css::uno::Reference<css::rendering::XCanvas> GetCanvas (void);
|
||||
css::uno::Reference<css::rendering::XCanvas> GetCanvas (void);
|
||||
|
||||
void Show (void);
|
||||
void Hide (void);
|
||||
@ -58,8 +58,8 @@ public:
|
||||
void Update (void);
|
||||
|
||||
private:
|
||||
::css::uno::Reference<css::rendering::XSpriteCanvas> mxSpriteFactory;
|
||||
::css::uno::Reference<css::rendering::XCustomSprite> mxSprite;
|
||||
css::uno::Reference<css::rendering::XSpriteCanvas> mxSpriteFactory;
|
||||
css::uno::Reference<css::rendering::XCustomSprite> mxSprite;
|
||||
css::geometry::RealSize2D maSize;
|
||||
css::geometry::RealPoint2D maLocation;
|
||||
bool mbIsVisible;
|
||||
|
@ -64,7 +64,7 @@ namespace sdext { namespace presenter {
|
||||
PresenterTextView::PresenterTextView (
|
||||
const Reference<XComponentContext>& rxContext,
|
||||
const Reference<rendering::XCanvas>& rxCanvas,
|
||||
const ::boost::function<void(const ::css::awt::Rectangle&)>& rInvalidator)
|
||||
const ::boost::function<void(const css::awt::Rectangle&)>& rInvalidator)
|
||||
: mxCanvas(rxCanvas),
|
||||
mbDoOuput(true),
|
||||
mxBreakIterator(),
|
||||
|
@ -222,7 +222,7 @@ public:
|
||||
PresenterTextView (
|
||||
const css::uno::Reference<css::uno::XComponentContext>& rxContext,
|
||||
const css::uno::Reference<css::rendering::XCanvas>& rxCanvas,
|
||||
const ::boost::function<void(const ::css::awt::Rectangle&)>& rInvalidator);
|
||||
const ::boost::function<void(const css::awt::Rectangle&)>& rInvalidator);
|
||||
void SetText (const css::uno::Reference<css::text::XText>& rxText);
|
||||
void SetTextChangeBroadcaster (const ::boost::function<void(void)>& rBroadcaster);
|
||||
|
||||
@ -267,7 +267,7 @@ private:
|
||||
SharedPresenterTextCaret mpCaret;
|
||||
double mnLeftOffset;
|
||||
double mnTopOffset;
|
||||
const ::boost::function<void(const ::css::awt::Rectangle&)> maInvalidator;
|
||||
const ::boost::function<void(const css::awt::Rectangle&)> maInvalidator;
|
||||
bool mbIsFormatPending;
|
||||
sal_Int32 mnCharacterCount;
|
||||
::boost::function<void(void)> maTextChangeBroadcaster;
|
||||
|
@ -211,7 +211,7 @@ private:
|
||||
const bool bMouseDown=false);
|
||||
|
||||
void ProcessEntry (
|
||||
const ::css::uno::Reference<css::beans::XPropertySet>& rProperties,
|
||||
const css::uno::Reference<css::beans::XPropertySet>& rProperties,
|
||||
Context& rContext);
|
||||
|
||||
/** This method throws a DisposedException when the object has already been
|
||||
|
@ -68,7 +68,7 @@ class PresenterWindowManager
|
||||
{
|
||||
public:
|
||||
PresenterWindowManager (
|
||||
const ::css::uno::Reference<css::uno::XComponentContext>& rxContext,
|
||||
const css::uno::Reference<css::uno::XComponentContext>& rxContext,
|
||||
const ::rtl::Reference<PresenterPaneContainer>& rpPaneContainer,
|
||||
const ::rtl::Reference<PresenterController>& rpPresenterController);
|
||||
virtual ~PresenterWindowManager (void);
|
||||
|
@ -625,8 +625,8 @@ void SAL_CALL SfxGlobalEvents_Impl::notifyEvent(const css::document::EventObject
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
void SAL_CALL SfxGlobalEvents_Impl::documentEventOccured( const ::css::document::DocumentEvent& _Event )
|
||||
throw (::css::uno::RuntimeException)
|
||||
void SAL_CALL SfxGlobalEvents_Impl::documentEventOccured( const css::document::DocumentEvent& _Event )
|
||||
throw (css::uno::RuntimeException)
|
||||
{
|
||||
implts_notifyJobExecution(css::document::EventObject(_Event.Source, _Event.EventName));
|
||||
implts_checkAndExecuteEventBindings(_Event);
|
||||
|
@ -34,10 +34,10 @@ MultiLineEdit::MultiLineEdit( Window* pParent, const ResId& rResId )
|
||||
}
|
||||
|
||||
// virtual
|
||||
::css::uno::Reference< ::css::awt::XWindowPeer >
|
||||
css::uno::Reference< css::awt::XWindowPeer >
|
||||
MultiLineEdit::GetComponentInterface(sal_Bool bCreate)
|
||||
{
|
||||
::css::uno::Reference< ::css::awt::XWindowPeer > xPeer(
|
||||
css::uno::Reference< css::awt::XWindowPeer > xPeer(
|
||||
VclMultiLineEdit::GetComponentInterface(false));
|
||||
if (!xPeer.is() && bCreate)
|
||||
{
|
||||
|
@ -36,7 +36,7 @@ namespace svt
|
||||
{
|
||||
}
|
||||
|
||||
::css::uno::Reference< ::css::accessibility::XAccessibleContext > TextWindowPeer::CreateAccessibleContext()
|
||||
css::uno::Reference< css::accessibility::XAccessibleContext > TextWindowPeer::CreateAccessibleContext()
|
||||
{
|
||||
return m_pFactoryAccess->getFactory().createAccessibleTextWindowContext(
|
||||
this, m_rEngine, m_rView, m_bCompoundControlChild
|
||||
|
@ -506,7 +506,7 @@ void SAL_CALL VCLXToolkit::disposing()
|
||||
::Application::RemoveKeyListener(m_aKeyListenerLink);
|
||||
m_bKeyListener = false;
|
||||
}
|
||||
::css::lang::EventObject aEvent(
|
||||
css::lang::EventObject aEvent(
|
||||
static_cast< ::cppu::OWeakObject * >(this));
|
||||
m_aTopWindowListeners.disposeAndClear(aEvent);
|
||||
m_aKeyHandlers.disposeAndClear(aEvent);
|
||||
@ -1380,38 +1380,38 @@ sal_Bool VCLXToolkit::supportsService( const ::rtl::OUString& rServiceName ) thr
|
||||
|
||||
// virtual
|
||||
::sal_Int32 SAL_CALL VCLXToolkit::getTopWindowCount()
|
||||
throw (::css::uno::RuntimeException)
|
||||
throw (css::uno::RuntimeException)
|
||||
{
|
||||
return static_cast< ::sal_Int32 >(::Application::GetTopWindowCount());
|
||||
// XXX numeric overflow
|
||||
}
|
||||
|
||||
// virtual
|
||||
::css::uno::Reference< ::css::awt::XTopWindow > SAL_CALL
|
||||
css::uno::Reference< css::awt::XTopWindow > SAL_CALL
|
||||
VCLXToolkit::getTopWindow(::sal_Int32 nIndex)
|
||||
throw (::css::uno::RuntimeException)
|
||||
throw (css::uno::RuntimeException)
|
||||
{
|
||||
::Window * p = ::Application::GetTopWindow(static_cast< long >(nIndex));
|
||||
// XXX numeric overflow
|
||||
return ::css::uno::Reference< ::css::awt::XTopWindow >(
|
||||
p == 0 ? 0 : static_cast< ::css::awt::XWindow * >(p->GetWindowPeer()),
|
||||
::css::uno::UNO_QUERY);
|
||||
return css::uno::Reference< css::awt::XTopWindow >(
|
||||
p == 0 ? 0 : static_cast< css::awt::XWindow * >(p->GetWindowPeer()),
|
||||
css::uno::UNO_QUERY);
|
||||
}
|
||||
|
||||
// virtual
|
||||
::css::uno::Reference< ::css::awt::XTopWindow > SAL_CALL
|
||||
VCLXToolkit::getActiveTopWindow() throw (::css::uno::RuntimeException)
|
||||
css::uno::Reference< css::awt::XTopWindow > SAL_CALL
|
||||
VCLXToolkit::getActiveTopWindow() throw (css::uno::RuntimeException)
|
||||
{
|
||||
::Window * p = ::Application::GetActiveTopWindow();
|
||||
return ::css::uno::Reference< ::css::awt::XTopWindow >(
|
||||
p == 0 ? 0 : static_cast< ::css::awt::XWindow * >(p->GetWindowPeer()),
|
||||
::css::uno::UNO_QUERY);
|
||||
return css::uno::Reference< css::awt::XTopWindow >(
|
||||
p == 0 ? 0 : static_cast< css::awt::XWindow * >(p->GetWindowPeer()),
|
||||
css::uno::UNO_QUERY);
|
||||
}
|
||||
|
||||
// virtual
|
||||
void SAL_CALL VCLXToolkit::addTopWindowListener(
|
||||
::css::uno::Reference< ::css::awt::XTopWindowListener > const & rListener)
|
||||
throw (::css::uno::RuntimeException)
|
||||
css::uno::Reference< css::awt::XTopWindowListener > const & rListener)
|
||||
throw (css::uno::RuntimeException)
|
||||
{
|
||||
OSL_ENSURE(rListener.is(), "Null rListener");
|
||||
::osl::ClearableMutexGuard aGuard(rBHelper.rMutex);
|
||||
@ -1419,7 +1419,7 @@ void SAL_CALL VCLXToolkit::addTopWindowListener(
|
||||
{
|
||||
aGuard.clear();
|
||||
rListener->disposing(
|
||||
::css::lang::EventObject(
|
||||
css::lang::EventObject(
|
||||
static_cast< ::cppu::OWeakObject * >(this)));
|
||||
}
|
||||
else if (m_aTopWindowListeners.addInterface(rListener) == 1
|
||||
@ -1432,8 +1432,8 @@ void SAL_CALL VCLXToolkit::addTopWindowListener(
|
||||
|
||||
// virtual
|
||||
void SAL_CALL VCLXToolkit::removeTopWindowListener(
|
||||
::css::uno::Reference< ::css::awt::XTopWindowListener > const & rListener)
|
||||
throw (::css::uno::RuntimeException)
|
||||
css::uno::Reference< css::awt::XTopWindowListener > const & rListener)
|
||||
throw (css::uno::RuntimeException)
|
||||
{
|
||||
::osl::MutexGuard aGuard(rBHelper.rMutex);
|
||||
if (!(rBHelper.bDisposed || rBHelper.bInDispose)
|
||||
@ -1447,8 +1447,8 @@ void SAL_CALL VCLXToolkit::removeTopWindowListener(
|
||||
|
||||
// virtual
|
||||
void SAL_CALL VCLXToolkit::addKeyHandler(
|
||||
::css::uno::Reference< ::css::awt::XKeyHandler > const & rHandler)
|
||||
throw (::css::uno::RuntimeException)
|
||||
css::uno::Reference< css::awt::XKeyHandler > const & rHandler)
|
||||
throw (css::uno::RuntimeException)
|
||||
{
|
||||
OSL_ENSURE(rHandler.is(), "Null rHandler");
|
||||
::osl::ClearableMutexGuard aGuard(rBHelper.rMutex);
|
||||
@ -1456,7 +1456,7 @@ void SAL_CALL VCLXToolkit::addKeyHandler(
|
||||
{
|
||||
aGuard.clear();
|
||||
rHandler->disposing(
|
||||
::css::lang::EventObject(
|
||||
css::lang::EventObject(
|
||||
static_cast< ::cppu::OWeakObject * >(this)));
|
||||
}
|
||||
else if (m_aKeyHandlers.addInterface(rHandler) == 1 && !m_bKeyListener)
|
||||
@ -1468,8 +1468,8 @@ void SAL_CALL VCLXToolkit::addKeyHandler(
|
||||
|
||||
// virtual
|
||||
void SAL_CALL VCLXToolkit::removeKeyHandler(
|
||||
::css::uno::Reference< ::css::awt::XKeyHandler > const & rHandler)
|
||||
throw (::css::uno::RuntimeException)
|
||||
css::uno::Reference< css::awt::XKeyHandler > const & rHandler)
|
||||
throw (css::uno::RuntimeException)
|
||||
{
|
||||
::osl::MutexGuard aGuard(rBHelper.rMutex);
|
||||
if (!(rBHelper.bDisposed || rBHelper.bInDispose)
|
||||
@ -1482,8 +1482,8 @@ void SAL_CALL VCLXToolkit::removeKeyHandler(
|
||||
|
||||
// virtual
|
||||
void SAL_CALL VCLXToolkit::addFocusListener(
|
||||
::css::uno::Reference< ::css::awt::XFocusListener > const & rListener)
|
||||
throw (::css::uno::RuntimeException)
|
||||
css::uno::Reference< css::awt::XFocusListener > const & rListener)
|
||||
throw (css::uno::RuntimeException)
|
||||
{
|
||||
OSL_ENSURE(rListener.is(), "Null rListener");
|
||||
::osl::ClearableMutexGuard aGuard(rBHelper.rMutex);
|
||||
@ -1491,7 +1491,7 @@ void SAL_CALL VCLXToolkit::addFocusListener(
|
||||
{
|
||||
aGuard.clear();
|
||||
rListener->disposing(
|
||||
::css::lang::EventObject(
|
||||
css::lang::EventObject(
|
||||
static_cast< ::cppu::OWeakObject * >(this)));
|
||||
}
|
||||
else if (m_aFocusListeners.addInterface(rListener) == 1
|
||||
@ -1504,8 +1504,8 @@ void SAL_CALL VCLXToolkit::addFocusListener(
|
||||
|
||||
// virtual
|
||||
void SAL_CALL VCLXToolkit::removeFocusListener(
|
||||
::css::uno::Reference< ::css::awt::XFocusListener > const & rListener)
|
||||
throw (::css::uno::RuntimeException)
|
||||
css::uno::Reference< css::awt::XFocusListener > const & rListener)
|
||||
throw (css::uno::RuntimeException)
|
||||
{
|
||||
::osl::MutexGuard aGuard(rBHelper.rMutex);
|
||||
if (!(rBHelper.bDisposed || rBHelper.bInDispose)
|
||||
@ -1540,23 +1540,23 @@ IMPL_LINK(VCLXToolkit, eventListenerHandler, ::VclSimpleEvent const *, pEvent)
|
||||
{
|
||||
case VCLEVENT_WINDOW_SHOW:
|
||||
callTopWindowListeners(
|
||||
pEvent, &::css::awt::XTopWindowListener::windowOpened);
|
||||
pEvent, &css::awt::XTopWindowListener::windowOpened);
|
||||
break;
|
||||
case VCLEVENT_WINDOW_HIDE:
|
||||
callTopWindowListeners(
|
||||
pEvent, &::css::awt::XTopWindowListener::windowClosed);
|
||||
pEvent, &css::awt::XTopWindowListener::windowClosed);
|
||||
break;
|
||||
case VCLEVENT_WINDOW_ACTIVATE:
|
||||
callTopWindowListeners(
|
||||
pEvent, &::css::awt::XTopWindowListener::windowActivated);
|
||||
pEvent, &css::awt::XTopWindowListener::windowActivated);
|
||||
break;
|
||||
case VCLEVENT_WINDOW_DEACTIVATE:
|
||||
callTopWindowListeners(
|
||||
pEvent, &::css::awt::XTopWindowListener::windowDeactivated);
|
||||
pEvent, &css::awt::XTopWindowListener::windowDeactivated);
|
||||
break;
|
||||
case VCLEVENT_WINDOW_CLOSE:
|
||||
callTopWindowListeners(
|
||||
pEvent, &::css::awt::XTopWindowListener::windowClosing);
|
||||
pEvent, &css::awt::XTopWindowListener::windowClosing);
|
||||
break;
|
||||
case VCLEVENT_WINDOW_GETFOCUS:
|
||||
callFocusListeners(pEvent, true);
|
||||
@ -1566,11 +1566,11 @@ IMPL_LINK(VCLXToolkit, eventListenerHandler, ::VclSimpleEvent const *, pEvent)
|
||||
break;
|
||||
case VCLEVENT_WINDOW_MINIMIZE:
|
||||
callTopWindowListeners(
|
||||
pEvent, &::css::awt::XTopWindowListener::windowMinimized);
|
||||
pEvent, &css::awt::XTopWindowListener::windowMinimized);
|
||||
break;
|
||||
case VCLEVENT_WINDOW_NORMALIZE:
|
||||
callTopWindowListeners(
|
||||
pEvent, &::css::awt::XTopWindowListener::windowNormalized);
|
||||
pEvent, &css::awt::XTopWindowListener::windowNormalized);
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
@ -1590,28 +1590,28 @@ IMPL_LINK(VCLXToolkit, keyListenerHandler, ::VclSimpleEvent const *, pEvent)
|
||||
|
||||
void VCLXToolkit::callTopWindowListeners(
|
||||
::VclSimpleEvent const * pEvent,
|
||||
void (SAL_CALL ::css::awt::XTopWindowListener::* pFn)(
|
||||
::css::lang::EventObject const &))
|
||||
void (SAL_CALL css::awt::XTopWindowListener::* pFn)(
|
||||
css::lang::EventObject const &))
|
||||
{
|
||||
::Window * pWindow
|
||||
= static_cast< ::VclWindowEvent const * >(pEvent)->GetWindow();
|
||||
if (pWindow->IsTopWindow())
|
||||
{
|
||||
::css::uno::Sequence< ::css::uno::Reference< ::css::uno::XInterface > >
|
||||
css::uno::Sequence< css::uno::Reference< css::uno::XInterface > >
|
||||
aListeners(m_aTopWindowListeners.getElements());
|
||||
if (aListeners.hasElements())
|
||||
{
|
||||
::css::lang::EventObject aAwtEvent(
|
||||
static_cast< ::css::awt::XWindow * >(pWindow->GetWindowPeer()));
|
||||
css::lang::EventObject aAwtEvent(
|
||||
static_cast< css::awt::XWindow * >(pWindow->GetWindowPeer()));
|
||||
for (::sal_Int32 i = 0; i < aListeners.getLength(); ++i)
|
||||
{
|
||||
::css::uno::Reference< ::css::awt::XTopWindowListener >
|
||||
xListener(aListeners[i], ::css::uno::UNO_QUERY);
|
||||
css::uno::Reference< css::awt::XTopWindowListener >
|
||||
xListener(aListeners[i], css::uno::UNO_QUERY);
|
||||
try
|
||||
{
|
||||
(xListener.get()->*pFn)(aAwtEvent);
|
||||
}
|
||||
catch (const ::css::uno::RuntimeException & rEx)
|
||||
catch (const css::uno::RuntimeException & rEx)
|
||||
{
|
||||
OSL_TRACE(
|
||||
"VCLXToolkit::callTopWindowListeners: caught %s\n",
|
||||
@ -1626,7 +1626,7 @@ void VCLXToolkit::callTopWindowListeners(
|
||||
long VCLXToolkit::callKeyHandlers(::VclSimpleEvent const * pEvent,
|
||||
bool bPressed)
|
||||
{
|
||||
::css::uno::Sequence< ::css::uno::Reference< ::css::uno::XInterface > >
|
||||
css::uno::Sequence< css::uno::Reference< css::uno::XInterface > >
|
||||
aHandlers(m_aKeyHandlers.getElements());
|
||||
|
||||
if (aHandlers.hasElements())
|
||||
@ -1636,30 +1636,30 @@ long VCLXToolkit::callKeyHandlers(::VclSimpleEvent const * pEvent,
|
||||
// See implementation in vclxwindow.cxx for mapping between VCL and UNO AWT event
|
||||
::KeyEvent * pKeyEvent = static_cast< ::KeyEvent * >(
|
||||
static_cast< ::VclWindowEvent const * >(pEvent)->GetData());
|
||||
::css::awt::KeyEvent aAwtEvent(
|
||||
static_cast< ::css::awt::XWindow * >(pWindow->GetWindowPeer()),
|
||||
css::awt::KeyEvent aAwtEvent(
|
||||
static_cast< css::awt::XWindow * >(pWindow->GetWindowPeer()),
|
||||
(pKeyEvent->GetKeyCode().IsShift()
|
||||
? ::css::awt::KeyModifier::SHIFT : 0)
|
||||
? css::awt::KeyModifier::SHIFT : 0)
|
||||
| (pKeyEvent->GetKeyCode().IsMod1()
|
||||
? ::css::awt::KeyModifier::MOD1 : 0)
|
||||
? css::awt::KeyModifier::MOD1 : 0)
|
||||
| (pKeyEvent->GetKeyCode().IsMod2()
|
||||
? ::css::awt::KeyModifier::MOD2 : 0)
|
||||
? css::awt::KeyModifier::MOD2 : 0)
|
||||
| (pKeyEvent->GetKeyCode().IsMod3()
|
||||
? ::css::awt::KeyModifier::MOD3 : 0),
|
||||
? css::awt::KeyModifier::MOD3 : 0),
|
||||
pKeyEvent->GetKeyCode().GetCode(), pKeyEvent->GetCharCode(),
|
||||
sal::static_int_cast< sal_Int16 >(
|
||||
pKeyEvent->GetKeyCode().GetFunction()));
|
||||
for (::sal_Int32 i = 0; i < aHandlers.getLength(); ++i)
|
||||
{
|
||||
::css::uno::Reference< ::css::awt::XKeyHandler > xHandler(
|
||||
aHandlers[i], ::css::uno::UNO_QUERY);
|
||||
css::uno::Reference< css::awt::XKeyHandler > xHandler(
|
||||
aHandlers[i], css::uno::UNO_QUERY);
|
||||
try
|
||||
{
|
||||
if ((bPressed ? xHandler->keyPressed(aAwtEvent)
|
||||
: xHandler->keyReleased(aAwtEvent)))
|
||||
return 1;
|
||||
}
|
||||
catch (const ::css::uno::RuntimeException & rEx)
|
||||
catch (const css::uno::RuntimeException & rEx)
|
||||
{
|
||||
OSL_TRACE(
|
||||
"VCLXToolkit::callKeyHandlers: caught %s\n",
|
||||
@ -1678,14 +1678,14 @@ void VCLXToolkit::callFocusListeners(::VclSimpleEvent const * pEvent,
|
||||
= static_cast< ::VclWindowEvent const * >(pEvent)->GetWindow();
|
||||
if (pWindow->IsTopWindow())
|
||||
{
|
||||
::css::uno::Sequence< ::css::uno::Reference< ::css::uno::XInterface > >
|
||||
css::uno::Sequence< css::uno::Reference< css::uno::XInterface > >
|
||||
aListeners(m_aFocusListeners.getElements());
|
||||
if (aListeners.hasElements())
|
||||
{
|
||||
// Ignore the interior of compound controls when determining the
|
||||
// window that gets the focus next (see implementation in
|
||||
// vclxwindow.cxx for mapping between VCL and UNO AWT event):
|
||||
::css::uno::Reference< css::uno::XInterface > xNext;
|
||||
css::uno::Reference< css::uno::XInterface > xNext;
|
||||
::Window * pFocus = ::Application::GetFocusWindow();
|
||||
for (::Window * p = pFocus; p != 0; p = p->GetParent())
|
||||
if (!p->IsCompoundControl())
|
||||
@ -1695,19 +1695,19 @@ void VCLXToolkit::callFocusListeners(::VclSimpleEvent const * pEvent,
|
||||
}
|
||||
if (pFocus != 0)
|
||||
xNext = pFocus->GetComponentInterface(true);
|
||||
::css::awt::FocusEvent aAwtEvent(
|
||||
static_cast< ::css::awt::XWindow * >(pWindow->GetWindowPeer()),
|
||||
css::awt::FocusEvent aAwtEvent(
|
||||
static_cast< css::awt::XWindow * >(pWindow->GetWindowPeer()),
|
||||
pWindow->GetGetFocusFlags(), xNext, false);
|
||||
for (::sal_Int32 i = 0; i < aListeners.getLength(); ++i)
|
||||
{
|
||||
::css::uno::Reference< ::css::awt::XFocusListener > xListener(
|
||||
aListeners[i], ::css::uno::UNO_QUERY);
|
||||
css::uno::Reference< css::awt::XFocusListener > xListener(
|
||||
aListeners[i], css::uno::UNO_QUERY);
|
||||
try
|
||||
{
|
||||
bGained ? xListener->focusGained(aAwtEvent)
|
||||
: xListener->focusLost(aAwtEvent);
|
||||
}
|
||||
catch (const ::css::uno::RuntimeException & rEx)
|
||||
catch (const css::uno::RuntimeException & rEx)
|
||||
{
|
||||
OSL_TRACE(
|
||||
"VCLXToolkit::callFocusListeners: caught %s\n",
|
||||
|
@ -146,7 +146,7 @@ public:
|
||||
throw( css::uno::RuntimeException );
|
||||
|
||||
virtual void SAL_CALL
|
||||
impl_notify( const ::css::ucb::ListEvent& Changes )
|
||||
impl_notify( const css::ucb::ListEvent& Changes )
|
||||
throw( css::uno::RuntimeException );
|
||||
};
|
||||
|
||||
@ -179,7 +179,7 @@ public:
|
||||
// XDynamicResultSetListener
|
||||
//-----------------------------------------------------------------
|
||||
virtual void SAL_CALL
|
||||
notify( const ::css::ucb::ListEvent& Changes )
|
||||
notify( const css::ucb::ListEvent& Changes )
|
||||
throw( css::uno::RuntimeException );
|
||||
|
||||
//-----------------------------------------------------------------
|
||||
|
@ -23,8 +23,8 @@
|
||||
#include <osl/file.hxx>
|
||||
#include <unotools/configmgr.hxx>
|
||||
|
||||
OTempFileService::OTempFileService(::css::uno::Reference< ::css::uno::XComponentContext > const & context)
|
||||
: ::cppu::PropertySetMixin< ::css::io::XTempFile >(
|
||||
OTempFileService::OTempFileService(css::uno::Reference< css::uno::XComponentContext > const & context)
|
||||
: ::cppu::PropertySetMixin< css::io::XTempFile >(
|
||||
context
|
||||
, static_cast< Implements >( IMPLEMENTS_PROPERTY_SET | IMPLEMENTS_FAST_PROPERTY_SET | IMPLEMENTS_PROPERTY_ACCESS )
|
||||
, com::sun::star::uno::Sequence< rtl::OUString >() )
|
||||
@ -49,12 +49,12 @@ OTempFileService::~OTempFileService ()
|
||||
|
||||
// XInterface
|
||||
|
||||
::css::uno::Any SAL_CALL OTempFileService::queryInterface( ::css::uno::Type const & aType )
|
||||
throw ( ::css::uno::RuntimeException )
|
||||
css::uno::Any SAL_CALL OTempFileService::queryInterface( css::uno::Type const & aType )
|
||||
throw ( css::uno::RuntimeException )
|
||||
{
|
||||
::css::uno::Any aResult( OTempFileBase::queryInterface( aType ) );
|
||||
css::uno::Any aResult( OTempFileBase::queryInterface( aType ) );
|
||||
if (!aResult.hasValue())
|
||||
aResult = cppu::PropertySetMixin< ::css::io::XTempFile >::queryInterface( aType ) ;
|
||||
aResult = cppu::PropertySetMixin< css::io::XTempFile >::queryInterface( aType ) ;
|
||||
return aResult;
|
||||
};
|
||||
void SAL_CALL OTempFileService::acquire( )
|
||||
@ -70,8 +70,8 @@ throw ()
|
||||
|
||||
// XTypeProvider
|
||||
|
||||
::css::uno::Sequence< ::css::uno::Type > SAL_CALL OTempFileService::getTypes( )
|
||||
throw ( ::css::uno::RuntimeException )
|
||||
css::uno::Sequence< css::uno::Type > SAL_CALL OTempFileService::getTypes( )
|
||||
throw ( css::uno::RuntimeException )
|
||||
{
|
||||
static ::cppu::OTypeCollection* pTypeCollection = NULL;
|
||||
if ( pTypeCollection == NULL )
|
||||
@ -81,15 +81,15 @@ throw ( ::css::uno::RuntimeException )
|
||||
if ( pTypeCollection == NULL )
|
||||
{
|
||||
static ::cppu::OTypeCollection aTypeCollection(
|
||||
::getCppuType( ( const ::css::uno::Reference< ::css::beans::XPropertySet >*)NULL )
|
||||
::getCppuType( ( const css::uno::Reference< css::beans::XPropertySet >*)NULL )
|
||||
,OTempFileBase::getTypes() );
|
||||
pTypeCollection = &aTypeCollection;
|
||||
}
|
||||
}
|
||||
return pTypeCollection->getTypes();
|
||||
};
|
||||
::css::uno::Sequence< sal_Int8 > SAL_CALL OTempFileService::getImplementationId( )
|
||||
throw ( ::css::uno::RuntimeException )
|
||||
css::uno::Sequence< sal_Int8 > SAL_CALL OTempFileService::getImplementationId( )
|
||||
throw ( css::uno::RuntimeException )
|
||||
{
|
||||
return OTempFileBase::getImplementationId();
|
||||
}
|
||||
@ -97,53 +97,53 @@ throw ( ::css::uno::RuntimeException )
|
||||
// XTempFile
|
||||
|
||||
sal_Bool SAL_CALL OTempFileService::getRemoveFile()
|
||||
throw ( ::css::uno::RuntimeException )
|
||||
throw ( css::uno::RuntimeException )
|
||||
{
|
||||
::osl::MutexGuard aGuard( maMutex );
|
||||
|
||||
if ( !mpTempFile )
|
||||
{
|
||||
// the stream is already disconnected
|
||||
throw ::css::uno::RuntimeException();
|
||||
throw css::uno::RuntimeException();
|
||||
}
|
||||
|
||||
return mbRemoveFile;
|
||||
};
|
||||
void SAL_CALL OTempFileService::setRemoveFile( sal_Bool _removefile )
|
||||
throw ( ::css::uno::RuntimeException )
|
||||
throw ( css::uno::RuntimeException )
|
||||
{
|
||||
::osl::MutexGuard aGuard( maMutex );
|
||||
|
||||
if ( !mpTempFile )
|
||||
{
|
||||
// the stream is already disconnected
|
||||
throw ::css::uno::RuntimeException();
|
||||
throw css::uno::RuntimeException();
|
||||
}
|
||||
|
||||
mbRemoveFile = _removefile;
|
||||
mpTempFile->EnableKillingFile( mbRemoveFile );
|
||||
};
|
||||
::rtl::OUString SAL_CALL OTempFileService::getUri()
|
||||
throw ( ::css::uno::RuntimeException )
|
||||
throw ( css::uno::RuntimeException )
|
||||
{
|
||||
::osl::MutexGuard aGuard( maMutex );
|
||||
|
||||
if ( !mpTempFile )
|
||||
{
|
||||
throw ::css::uno::RuntimeException();
|
||||
throw css::uno::RuntimeException();
|
||||
}
|
||||
|
||||
return ::rtl::OUString( mpTempFile->GetURL() );
|
||||
|
||||
};
|
||||
::rtl::OUString SAL_CALL OTempFileService::getResourceName()
|
||||
throw ( ::css::uno::RuntimeException )
|
||||
throw ( css::uno::RuntimeException )
|
||||
{
|
||||
::osl::MutexGuard aGuard( maMutex );
|
||||
|
||||
if ( !mpTempFile )
|
||||
{
|
||||
throw ::css::uno::RuntimeException();
|
||||
throw css::uno::RuntimeException();
|
||||
}
|
||||
|
||||
return ::rtl::OUString( mpTempFile->GetFileName() );
|
||||
@ -153,16 +153,16 @@ throw ( ::css::uno::RuntimeException )
|
||||
|
||||
// XInputStream
|
||||
|
||||
sal_Int32 SAL_CALL OTempFileService::readBytes( ::css::uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead )
|
||||
throw (::css::io::NotConnectedException, ::css::io::BufferSizeExceededException, ::css::io::IOException, ::css::uno::RuntimeException )
|
||||
sal_Int32 SAL_CALL OTempFileService::readBytes( css::uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead )
|
||||
throw (css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException )
|
||||
{
|
||||
::osl::MutexGuard aGuard( maMutex );
|
||||
if ( mbInClosed )
|
||||
throw ::css::io::NotConnectedException ( ::rtl::OUString(), const_cast < ::css::uno::XWeak * > ( static_cast < const ::css::uno::XWeak * > (this ) ) );
|
||||
throw css::io::NotConnectedException ( ::rtl::OUString(), const_cast < css::uno::XWeak * > ( static_cast < const css::uno::XWeak * > (this ) ) );
|
||||
|
||||
checkConnected();
|
||||
if (nBytesToRead < 0)
|
||||
throw ::css::io::BufferSizeExceededException( ::rtl::OUString(), static_cast< ::css::uno::XWeak * >(this));
|
||||
throw css::io::BufferSizeExceededException( ::rtl::OUString(), static_cast< css::uno::XWeak * >(this));
|
||||
|
||||
aData.realloc(nBytesToRead);
|
||||
|
||||
@ -186,18 +186,18 @@ throw (::css::io::NotConnectedException, ::css::io::BufferSizeExceededException,
|
||||
|
||||
return nRead;
|
||||
}
|
||||
sal_Int32 SAL_CALL OTempFileService::readSomeBytes( ::css::uno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead )
|
||||
throw ( ::css::io::NotConnectedException, ::css::io::BufferSizeExceededException, ::css::io::IOException, ::css::uno::RuntimeException )
|
||||
sal_Int32 SAL_CALL OTempFileService::readSomeBytes( css::uno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead )
|
||||
throw ( css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException )
|
||||
{
|
||||
::osl::MutexGuard aGuard( maMutex );
|
||||
if ( mbInClosed )
|
||||
throw ::css::io::NotConnectedException ( ::rtl::OUString(), const_cast < ::css::uno::XWeak * > ( static_cast < const ::css::uno::XWeak * > (this ) ) );
|
||||
throw css::io::NotConnectedException ( ::rtl::OUString(), const_cast < css::uno::XWeak * > ( static_cast < const css::uno::XWeak * > (this ) ) );
|
||||
|
||||
checkConnected();
|
||||
checkError();
|
||||
|
||||
if (nMaxBytesToRead < 0)
|
||||
throw ::css::io::BufferSizeExceededException( ::rtl::OUString(), static_cast < ::css::uno::XWeak * >( this ) );
|
||||
throw css::io::BufferSizeExceededException( ::rtl::OUString(), static_cast < css::uno::XWeak * >( this ) );
|
||||
|
||||
if (mpStream->IsEof())
|
||||
{
|
||||
@ -208,11 +208,11 @@ throw ( ::css::io::NotConnectedException, ::css::io::BufferSizeExceededException
|
||||
return readBytes(aData, nMaxBytesToRead);
|
||||
}
|
||||
void SAL_CALL OTempFileService::skipBytes( sal_Int32 nBytesToSkip )
|
||||
throw ( ::css::io::NotConnectedException, ::css::io::BufferSizeExceededException, ::css::io::IOException, ::css::uno::RuntimeException )
|
||||
throw ( css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException )
|
||||
{
|
||||
::osl::MutexGuard aGuard( maMutex );
|
||||
if ( mbInClosed )
|
||||
throw ::css::io::NotConnectedException ( ::rtl::OUString(), const_cast < ::css::uno::XWeak * > ( static_cast < const ::css::uno::XWeak * > (this ) ) );
|
||||
throw css::io::NotConnectedException ( ::rtl::OUString(), const_cast < css::uno::XWeak * > ( static_cast < const css::uno::XWeak * > (this ) ) );
|
||||
|
||||
checkConnected();
|
||||
checkError();
|
||||
@ -220,11 +220,11 @@ throw ( ::css::io::NotConnectedException, ::css::io::BufferSizeExceededException
|
||||
checkError();
|
||||
}
|
||||
sal_Int32 SAL_CALL OTempFileService::available( )
|
||||
throw ( ::css::io::NotConnectedException, ::css::io::IOException, ::css::uno::RuntimeException )
|
||||
throw ( css::io::NotConnectedException, css::io::IOException, css::uno::RuntimeException )
|
||||
{
|
||||
::osl::MutexGuard aGuard( maMutex );
|
||||
if ( mbInClosed )
|
||||
throw ::css::io::NotConnectedException ( ::rtl::OUString(), const_cast < ::css::uno::XWeak * > ( static_cast < const ::css::uno::XWeak * > (this ) ) );
|
||||
throw css::io::NotConnectedException ( ::rtl::OUString(), const_cast < css::uno::XWeak * > ( static_cast < const css::uno::XWeak * > (this ) ) );
|
||||
|
||||
checkConnected();
|
||||
|
||||
@ -241,11 +241,11 @@ throw ( ::css::io::NotConnectedException, ::css::io::IOException, ::css::uno::Ru
|
||||
return nAvailable;
|
||||
}
|
||||
void SAL_CALL OTempFileService::closeInput( )
|
||||
throw ( ::css::io::NotConnectedException, ::css::io::IOException, ::css::uno::RuntimeException )
|
||||
throw ( css::io::NotConnectedException, css::io::IOException, css::uno::RuntimeException )
|
||||
{
|
||||
::osl::MutexGuard aGuard( maMutex );
|
||||
if ( mbInClosed )
|
||||
throw ::css::io::NotConnectedException ( ::rtl::OUString(), const_cast < ::css::uno::XWeak * > ( static_cast < const ::css::uno::XWeak * > (this ) ) );
|
||||
throw css::io::NotConnectedException ( ::rtl::OUString(), const_cast < css::uno::XWeak * > ( static_cast < const css::uno::XWeak * > (this ) ) );
|
||||
|
||||
mbInClosed = sal_True;
|
||||
|
||||
@ -264,36 +264,36 @@ throw ( ::css::io::NotConnectedException, ::css::io::IOException, ::css::uno::Ru
|
||||
|
||||
// XOutputStream
|
||||
|
||||
void SAL_CALL OTempFileService::writeBytes( const ::css::uno::Sequence< sal_Int8 >& aData )
|
||||
throw ( ::css::io::NotConnectedException, ::css::io::BufferSizeExceededException, ::css::io::IOException, ::css::uno::RuntimeException )
|
||||
void SAL_CALL OTempFileService::writeBytes( const css::uno::Sequence< sal_Int8 >& aData )
|
||||
throw ( css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException )
|
||||
{
|
||||
::osl::MutexGuard aGuard( maMutex );
|
||||
if ( mbOutClosed )
|
||||
throw ::css::io::NotConnectedException ( ::rtl::OUString(), const_cast < ::css::uno::XWeak * > ( static_cast < const ::css::uno::XWeak * > (this ) ) );
|
||||
throw css::io::NotConnectedException ( ::rtl::OUString(), const_cast < css::uno::XWeak * > ( static_cast < const css::uno::XWeak * > (this ) ) );
|
||||
|
||||
checkConnected();
|
||||
sal_uInt32 nWritten = mpStream->Write(aData.getConstArray(),aData.getLength());
|
||||
checkError();
|
||||
if ( nWritten != (sal_uInt32)aData.getLength())
|
||||
throw ::css::io::BufferSizeExceededException( ::rtl::OUString(),static_cast < ::css::uno::XWeak * > ( this ) );
|
||||
throw css::io::BufferSizeExceededException( ::rtl::OUString(),static_cast < css::uno::XWeak * > ( this ) );
|
||||
}
|
||||
void SAL_CALL OTempFileService::flush( )
|
||||
throw ( ::css::io::NotConnectedException, ::css::io::BufferSizeExceededException, ::css::io::IOException, ::css::uno::RuntimeException )
|
||||
throw ( css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException )
|
||||
{
|
||||
::osl::MutexGuard aGuard( maMutex );
|
||||
if ( mbOutClosed )
|
||||
throw ::css::io::NotConnectedException ( ::rtl::OUString(), const_cast < ::css::uno::XWeak * > ( static_cast < const ::css::uno::XWeak * > (this ) ) );
|
||||
throw css::io::NotConnectedException ( ::rtl::OUString(), const_cast < css::uno::XWeak * > ( static_cast < const css::uno::XWeak * > (this ) ) );
|
||||
|
||||
checkConnected();
|
||||
mpStream->Flush();
|
||||
checkError();
|
||||
}
|
||||
void SAL_CALL OTempFileService::closeOutput( )
|
||||
throw ( ::css::io::NotConnectedException, ::css::io::BufferSizeExceededException, ::css::io::IOException, ::css::uno::RuntimeException )
|
||||
throw ( css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException )
|
||||
{
|
||||
::osl::MutexGuard aGuard( maMutex );
|
||||
if ( mbOutClosed )
|
||||
throw ::css::io::NotConnectedException ( ::rtl::OUString(), const_cast < ::css::uno::XWeak * > ( static_cast < const ::css::uno::XWeak * > (this ) ) );
|
||||
throw css::io::NotConnectedException ( ::rtl::OUString(), const_cast < css::uno::XWeak * > ( static_cast < const css::uno::XWeak * > (this ) ) );
|
||||
|
||||
mbOutClosed = sal_True;
|
||||
|
||||
@ -325,7 +325,7 @@ throw ( ::css::io::NotConnectedException, ::css::io::BufferSizeExceededException
|
||||
void OTempFileService::checkError () const
|
||||
{
|
||||
if (!mpStream || mpStream->SvStream::GetError () != ERRCODE_NONE )
|
||||
throw ::css::io::NotConnectedException ( ::rtl::OUString(), const_cast < ::css::uno::XWeak * > ( static_cast < const ::css::uno::XWeak * > (this ) ) );
|
||||
throw css::io::NotConnectedException ( ::rtl::OUString(), const_cast < css::uno::XWeak * > ( static_cast < const css::uno::XWeak * > (this ) ) );
|
||||
}
|
||||
void OTempFileService::checkConnected ()
|
||||
{
|
||||
@ -349,24 +349,24 @@ void OTempFileService::checkConnected ()
|
||||
}
|
||||
|
||||
if (!mpStream)
|
||||
throw ::css::io::NotConnectedException ( ::rtl::OUString(), const_cast < ::css::uno::XWeak * > ( static_cast < const ::css::uno::XWeak * > (this ) ) );
|
||||
throw css::io::NotConnectedException ( ::rtl::OUString(), const_cast < css::uno::XWeak * > ( static_cast < const css::uno::XWeak * > (this ) ) );
|
||||
}
|
||||
|
||||
// XSeekable
|
||||
|
||||
void SAL_CALL OTempFileService::seek( sal_Int64 nLocation )
|
||||
throw ( ::css::lang::IllegalArgumentException, ::css::io::IOException, ::css::uno::RuntimeException )
|
||||
throw ( css::lang::IllegalArgumentException, css::io::IOException, css::uno::RuntimeException )
|
||||
{
|
||||
::osl::MutexGuard aGuard( maMutex );
|
||||
checkConnected();
|
||||
if ( nLocation < 0 || nLocation > getLength() )
|
||||
throw ::css::lang::IllegalArgumentException();
|
||||
throw css::lang::IllegalArgumentException();
|
||||
|
||||
mpStream->Seek((sal_uInt32) nLocation );
|
||||
checkError();
|
||||
}
|
||||
sal_Int64 SAL_CALL OTempFileService::getPosition( )
|
||||
throw ( ::css::io::IOException, ::css::uno::RuntimeException )
|
||||
throw ( css::io::IOException, css::uno::RuntimeException )
|
||||
{
|
||||
::osl::MutexGuard aGuard( maMutex );
|
||||
checkConnected();
|
||||
@ -376,7 +376,7 @@ throw ( ::css::io::IOException, ::css::uno::RuntimeException )
|
||||
return (sal_Int64)nPos;
|
||||
}
|
||||
sal_Int64 SAL_CALL OTempFileService::getLength( )
|
||||
throw ( ::css::io::IOException, ::css::uno::RuntimeException )
|
||||
throw ( css::io::IOException, css::uno::RuntimeException )
|
||||
{
|
||||
::osl::MutexGuard aGuard( maMutex );
|
||||
checkConnected();
|
||||
@ -396,22 +396,22 @@ throw ( ::css::io::IOException, ::css::uno::RuntimeException )
|
||||
|
||||
// XStream
|
||||
|
||||
::css::uno::Reference< ::css::io::XInputStream > SAL_CALL OTempFileService::getInputStream()
|
||||
throw ( ::css::uno::RuntimeException )
|
||||
css::uno::Reference< css::io::XInputStream > SAL_CALL OTempFileService::getInputStream()
|
||||
throw ( css::uno::RuntimeException )
|
||||
{
|
||||
return ::css::uno::Reference< ::css::io::XInputStream >( *this, ::css::uno::UNO_QUERY );
|
||||
return css::uno::Reference< css::io::XInputStream >( *this, css::uno::UNO_QUERY );
|
||||
}
|
||||
|
||||
::css::uno::Reference< ::css::io::XOutputStream > SAL_CALL OTempFileService::getOutputStream()
|
||||
throw ( ::css::uno::RuntimeException )
|
||||
css::uno::Reference< css::io::XOutputStream > SAL_CALL OTempFileService::getOutputStream()
|
||||
throw ( css::uno::RuntimeException )
|
||||
{
|
||||
return ::css::uno::Reference< ::css::io::XOutputStream >( *this, ::css::uno::UNO_QUERY );
|
||||
return css::uno::Reference< css::io::XOutputStream >( *this, css::uno::UNO_QUERY );
|
||||
}
|
||||
|
||||
// XTruncate
|
||||
|
||||
void SAL_CALL OTempFileService::truncate()
|
||||
throw ( ::css::io::IOException, ::css::uno::RuntimeException )
|
||||
throw ( css::io::IOException, css::uno::RuntimeException )
|
||||
{
|
||||
::osl::MutexGuard aGuard( maMutex );
|
||||
checkConnected();
|
||||
@ -424,20 +424,20 @@ throw ( ::css::io::IOException, ::css::uno::RuntimeException )
|
||||
// XServiceInfo
|
||||
|
||||
::rtl::OUString SAL_CALL OTempFileService::getImplementationName()
|
||||
throw ( ::css::uno::RuntimeException )
|
||||
throw ( css::uno::RuntimeException )
|
||||
{
|
||||
return getImplementationName_Static();
|
||||
}
|
||||
|
||||
sal_Bool SAL_CALL OTempFileService::supportsService( ::rtl::OUString const & rServiceName )
|
||||
throw ( ::css::uno::RuntimeException )
|
||||
throw ( css::uno::RuntimeException )
|
||||
{
|
||||
::css::uno::Sequence< ::rtl::OUString > aServices(getSupportedServiceNames_Static());
|
||||
css::uno::Sequence< ::rtl::OUString > aServices(getSupportedServiceNames_Static());
|
||||
return rServiceName == aServices[0];
|
||||
}
|
||||
|
||||
::css::uno::Sequence < ::rtl::OUString > SAL_CALL OTempFileService::getSupportedServiceNames()
|
||||
throw ( ::css::uno::RuntimeException )
|
||||
css::uno::Sequence < ::rtl::OUString > SAL_CALL OTempFileService::getSupportedServiceNames()
|
||||
throw ( css::uno::RuntimeException )
|
||||
{
|
||||
return getSupportedServiceNames_Static();
|
||||
}
|
||||
@ -448,20 +448,20 @@ throw ( ::css::uno::RuntimeException )
|
||||
{
|
||||
return ::rtl::OUString ( "com.sun.star.io.comp.TempFile" );
|
||||
}
|
||||
::css::uno::Sequence < ::rtl::OUString > OTempFileService::getSupportedServiceNames_Static()
|
||||
css::uno::Sequence < ::rtl::OUString > OTempFileService::getSupportedServiceNames_Static()
|
||||
{
|
||||
::css::uno::Sequence < ::rtl::OUString > aNames ( 1 );
|
||||
css::uno::Sequence < ::rtl::OUString > aNames ( 1 );
|
||||
aNames[0] = "com.sun.star.io.TempFile";
|
||||
return aNames;
|
||||
}
|
||||
::css::uno::Reference < ::css::uno::XInterface >SAL_CALL XTempFile_createInstance(
|
||||
css::uno::Reference< ::css::uno::XComponentContext > const & context)
|
||||
css::uno::Reference < css::uno::XInterface >SAL_CALL XTempFile_createInstance(
|
||||
css::uno::Reference< css::uno::XComponentContext > const & context)
|
||||
SAL_THROW( ( css::uno::Exception ) )
|
||||
{
|
||||
return static_cast< ::cppu::OWeakObject * >( new OTempFileService(context) );
|
||||
}
|
||||
|
||||
::css::uno::Reference < ::css::lang::XSingleComponentFactory > OTempFileService::createServiceFactory_Static()
|
||||
css::uno::Reference < css::lang::XSingleComponentFactory > OTempFileService::createServiceFactory_Static()
|
||||
{
|
||||
return ::cppu::createSingleComponentFactory( XTempFile_createInstance, getImplementationName_Static(), getSupportedServiceNames_Static() );
|
||||
}
|
||||
@ -478,9 +478,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL utl_component_getFactory(
|
||||
SAL_UNUSED_PARAMETER void * /*pRegistryKey*/ )
|
||||
{
|
||||
void * pRet = 0;
|
||||
::css::uno::Reference< ::css::lang::XMultiServiceFactory > xSMgr(
|
||||
reinterpret_cast< ::css::lang::XMultiServiceFactory * >( pServiceManager ) );
|
||||
::css::uno::Reference< ::css::lang::XSingleComponentFactory > xFactory;
|
||||
css::uno::Reference< css::lang::XMultiServiceFactory > xSMgr(
|
||||
reinterpret_cast< css::lang::XMultiServiceFactory * >( pServiceManager ) );
|
||||
css::uno::Reference< css::lang::XSingleComponentFactory > xFactory;
|
||||
|
||||
if (OTempFileService::getImplementationName_Static().compareToAscii( pImplName ) == 0)
|
||||
xFactory = OTempFileService::createServiceFactory_Static();
|
||||
|
@ -55,15 +55,15 @@
|
||||
|
||||
namespace {
|
||||
|
||||
class Service: public ::cppu::WeakImplHelper1< ::css::lang::XMain > {
|
||||
class Service: public ::cppu::WeakImplHelper1< css::lang::XMain > {
|
||||
public:
|
||||
explicit Service(
|
||||
::css::uno::Reference< ::css::uno::XComponentContext > const & context):
|
||||
css::uno::Reference< css::uno::XComponentContext > const & context):
|
||||
context_(context) {}
|
||||
|
||||
virtual ::sal_Int32 SAL_CALL run(
|
||||
::css::uno::Sequence< ::rtl::OUString > const &)
|
||||
throw (::css::uno::RuntimeException);
|
||||
css::uno::Sequence< ::rtl::OUString > const &)
|
||||
throw (css::uno::RuntimeException);
|
||||
|
||||
private:
|
||||
Service(Service &); // not defined
|
||||
@ -72,14 +72,14 @@ private:
|
||||
virtual ~Service() {}
|
||||
|
||||
void test(
|
||||
::css::uno::Reference< test::types::XTest > const & test,
|
||||
css::uno::Reference< test::types::XTest > const & test,
|
||||
::rtl::OUString const & name);
|
||||
|
||||
::css::uno::Reference< ::css::uno::XComponentContext > context_;
|
||||
css::uno::Reference< css::uno::XComponentContext > context_;
|
||||
};
|
||||
|
||||
::sal_Int32 Service::run(::css::uno::Sequence< ::rtl::OUString > const &)
|
||||
throw (::css::uno::RuntimeException)
|
||||
::sal_Int32 Service::run(css::uno::Sequence< ::rtl::OUString > const &)
|
||||
throw (css::uno::RuntimeException)
|
||||
{
|
||||
osl_getThreadIdentifier(0); // check for sal
|
||||
(new salhelper::SimpleReferenceObject)->release(); // check for salhelper
|
||||
@ -129,19 +129,19 @@ private:
|
||||
};
|
||||
for (::std::size_t i = 0; i < SAL_N_ELEMENTS(services); ++i) {
|
||||
::rtl::OUString name(::rtl::OUString::createFromAscii(services[i]));
|
||||
::css::uno::Reference< ::css::uno::XInterface > instance;
|
||||
css::uno::Reference< css::uno::XInterface > instance;
|
||||
try {
|
||||
instance = context_->getServiceManager()->createInstanceWithContext(
|
||||
name, context_);
|
||||
} catch (::css::uno::RuntimeException &) {
|
||||
} catch (css::uno::RuntimeException &) {
|
||||
throw;
|
||||
} catch (::css::uno::Exception &) {
|
||||
throw ::css::uno::RuntimeException(
|
||||
} catch (css::uno::Exception &) {
|
||||
throw css::uno::RuntimeException(
|
||||
::rtl::OUString("error creating instance"),
|
||||
static_cast< ::cppu::OWeakObject * >(this));
|
||||
}
|
||||
if (!instance.is()) {
|
||||
throw ::css::uno::RuntimeException(
|
||||
throw css::uno::RuntimeException(
|
||||
"no instance: " + name,
|
||||
static_cast< ::cppu::OWeakObject * >(this));
|
||||
}
|
||||
@ -153,9 +153,9 @@ private:
|
||||
::rtl::OUStringBuffer b;
|
||||
b.append("/singletons/");
|
||||
b.append(singletons[i]);
|
||||
::css::uno::Reference< ::css::uno::XInterface > instance(
|
||||
css::uno::Reference< css::uno::XInterface > instance(
|
||||
context_->getValueByName(b.makeStringAndClear()),
|
||||
::css::uno::UNO_QUERY_THROW);
|
||||
css::uno::UNO_QUERY_THROW);
|
||||
}
|
||||
test(
|
||||
::test::types::CppTest::create(context_),
|
||||
@ -167,7 +167,7 @@ private:
|
||||
}
|
||||
|
||||
void Service::test(
|
||||
::css::uno::Reference< test::types::XTest > const & test,
|
||||
css::uno::Reference< test::types::XTest > const & test,
|
||||
::rtl::OUString const & name)
|
||||
{
|
||||
bool ok = false;
|
||||
@ -177,7 +177,7 @@ void Service::test(
|
||||
ok = true;
|
||||
}
|
||||
if (!ok) {
|
||||
throw ::css::uno::RuntimeException(
|
||||
throw css::uno::RuntimeException(
|
||||
(name
|
||||
+ ::rtl::OUString(".throwException failed")),
|
||||
static_cast< ::cppu::OWeakObject * >(this));
|
||||
@ -186,16 +186,16 @@ void Service::test(
|
||||
|
||||
namespace CppMain {
|
||||
|
||||
::css::uno::Reference< ::css::uno::XInterface > create(
|
||||
::css::uno::Reference< ::css::uno::XComponentContext > const & context)
|
||||
SAL_THROW((::css::uno::Exception))
|
||||
css::uno::Reference< css::uno::XInterface > create(
|
||||
css::uno::Reference< css::uno::XComponentContext > const & context)
|
||||
SAL_THROW((css::uno::Exception))
|
||||
{
|
||||
try {
|
||||
return static_cast< ::cppu::OWeakObject * >(new Service(context));
|
||||
} catch (::std::bad_alloc &) {
|
||||
throw ::css::uno::RuntimeException(
|
||||
throw css::uno::RuntimeException(
|
||||
::rtl::OUString("std::bad_alloc"),
|
||||
::css::uno::Reference< ::css::uno::XInterface >());
|
||||
css::uno::Reference< css::uno::XInterface >());
|
||||
}
|
||||
}
|
||||
|
||||
@ -203,8 +203,8 @@ OUString getImplementationName() {
|
||||
return OUString("test.cpp.cppmain.Component");
|
||||
}
|
||||
|
||||
::css::uno::Sequence< ::rtl::OUString > getSupportedServiceNames() {
|
||||
return ::css::uno::Sequence< ::rtl::OUString >();
|
||||
css::uno::Sequence< ::rtl::OUString > getSupportedServiceNames() {
|
||||
return css::uno::Sequence< ::rtl::OUString >();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ public:
|
||||
Service() {}
|
||||
|
||||
virtual ::test::types::Data SAL_CALL getData()
|
||||
throw (::css::uno::RuntimeException)
|
||||
throw (css::uno::RuntimeException)
|
||||
{
|
||||
return ::test::types::Data(OUString("Hello"), 42);
|
||||
}
|
||||
@ -60,16 +60,16 @@ private:
|
||||
|
||||
namespace CppServer {
|
||||
|
||||
::css::uno::Reference< ::css::uno::XInterface > create(
|
||||
::css::uno::Reference< ::css::uno::XComponentContext > const &)
|
||||
SAL_THROW((::css::uno::Exception))
|
||||
css::uno::Reference< css::uno::XInterface > create(
|
||||
css::uno::Reference< css::uno::XComponentContext > const &)
|
||||
SAL_THROW((css::uno::Exception))
|
||||
{
|
||||
try {
|
||||
return static_cast< ::cppu::OWeakObject * >(new Service);
|
||||
} catch (::std::bad_alloc &) {
|
||||
throw ::css::uno::RuntimeException(
|
||||
throw css::uno::RuntimeException(
|
||||
OUString("std::bad_alloc"),
|
||||
::css::uno::Reference< ::css::uno::XInterface >());
|
||||
css::uno::Reference< css::uno::XInterface >());
|
||||
}
|
||||
}
|
||||
|
||||
@ -77,8 +77,8 @@ OUString getImplementationName() {
|
||||
return OUString("test.cpp.cppserver.Component");
|
||||
}
|
||||
|
||||
::css::uno::Sequence< OUString > getSupportedServiceNames() {
|
||||
return ::css::uno::Sequence< OUString >();
|
||||
css::uno::Sequence< OUString > getSupportedServiceNames() {
|
||||
return css::uno::Sequence< OUString >();
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user