summaryrefslogtreecommitdiff
path: root/sw/inc/unotext.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-05 15:55:58 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-11-06 05:44:52 +0000
commit7a401e5e83abb41b51fca92e3d92dfb2fff6d0e6 (patch)
tree09792748ab8f1e7f976d28c2163637f8268f6d36 /sw/inc/unotext.hxx
parentcb27eef229ce7f3d415184e74d1cb24ec2f8510c (diff)
com::sun::star->css in sw/inc
Change-Id: I6ffdb1deaa32156c65f997a1a1056928b7cd863d Reviewed-on: https://gerrit.libreoffice.org/19803 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw/inc/unotext.hxx')
-rw-r--r--sw/inc/unotext.hxx334
1 files changed, 141 insertions, 193 deletions
diff --git a/sw/inc/unotext.hxx b/sw/inc/unotext.hxx
index 46c1aa428db5..0271e308c654 100644
--- a/sw/inc/unotext.hxx
+++ b/sw/inc/unotext.hxx
@@ -45,14 +45,14 @@ class OTextCursorHelper;
class SwXTextRange;
class SwXText
- : public ::com::sun::star::lang::XTypeProvider
- , public ::com::sun::star::lang::XUnoTunnel
- , public ::com::sun::star::beans::XPropertySet
- , public ::com::sun::star::text::XTextAppendAndConvert
- , public ::com::sun::star::text::XTextCopy
- , public ::com::sun::star::text::XTextRangeCompare
- , public ::com::sun::star::text::XRelativeTextContentInsert
- , public ::com::sun::star::text::XRelativeTextContentRemove
+ : public css::lang::XTypeProvider
+ , public css::lang::XUnoTunnel
+ , public css::beans::XPropertySet
+ , public css::text::XTextAppendAndConvert
+ , public css::text::XTextCopy
+ , public css::text::XTextRangeCompare
+ , public css::text::XRelativeTextContentInsert
+ , public css::text::XRelativeTextContentRemove
{
private:
@@ -61,13 +61,12 @@ private:
::sw::UnoImplPtr<Impl> m_pImpl;
virtual void PrepareForAttach(
- ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextRange > & xRange,
+ css::uno::Reference< css::text::XTextRange > & xRange,
SwPaM const & rPam);
virtual bool CheckForOwnMemberMeta(
const SwPaM & rPam, const bool bAbsorb)
- throw (::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::uno::RuntimeException);
+ throw (css::lang::IllegalArgumentException,
+ css::uno::RuntimeException);
protected:
@@ -87,162 +86,134 @@ public:
const SwDoc* GetDoc() const;
SwDoc* GetDoc();
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextCursor >
+ virtual css::uno::Reference< css::text::XTextCursor >
CreateCursor()
- throw (::com::sun::star::uno::RuntimeException);
+ throw (css::uno::RuntimeException);
// XInterface
- virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(
- const ::com::sun::star::uno::Type& rType)
- throw (::com::sun::star::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Any SAL_CALL queryInterface(
+ const css::uno::Type& rType)
+ throw (css::uno::RuntimeException, std::exception) override;
// XTypeProvider
- virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >
+ virtual css::uno::Sequence< css::uno::Type >
SAL_CALL getTypes()
- throw (::com::sun::star::uno::RuntimeException, std::exception) override;
+ throw (css::uno::RuntimeException, std::exception) override;
- static const ::com::sun::star::uno::Sequence< sal_Int8 >& getUnoTunnelId();
+ static const css::uno::Sequence< sal_Int8 >& getUnoTunnelId();
// XUnoTunnel
virtual sal_Int64 SAL_CALL getSomething(
- const ::com::sun::star::uno::Sequence< sal_Int8 >& rIdentifier)
- throw (::com::sun::star::uno::RuntimeException, std::exception) override;
+ const css::uno::Sequence< sal_Int8 >& rIdentifier)
+ throw (css::uno::RuntimeException, std::exception) override;
// XPropertySet
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySetInfo > SAL_CALL
+ virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
getPropertySetInfo()
- throw (::com::sun::star::uno::RuntimeException, std::exception) override;
+ throw (css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL setPropertyValue(
const OUString& rPropertyName,
- const ::com::sun::star::uno::Any& rValue)
- throw (::com::sun::star::beans::UnknownPropertyException,
- ::com::sun::star::beans::PropertyVetoException,
- ::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::lang::WrappedTargetException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
- virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(
+ const css::uno::Any& rValue)
+ throw (css::beans::UnknownPropertyException,
+ css::beans::PropertyVetoException,
+ css::lang::IllegalArgumentException,
+ css::lang::WrappedTargetException,
+ css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Any SAL_CALL getPropertyValue(
const OUString& rPropertyName)
- throw (::com::sun::star::beans::UnknownPropertyException,
- ::com::sun::star::lang::WrappedTargetException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
+ throw (css::beans::UnknownPropertyException,
+ css::lang::WrappedTargetException,
+ css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL addPropertyChangeListener(
const OUString& rPropertyName,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertyChangeListener >& xListener)
- throw (::com::sun::star::beans::UnknownPropertyException,
- ::com::sun::star::lang::WrappedTargetException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference<
+ css::beans::XPropertyChangeListener >& xListener)
+ throw (css::beans::UnknownPropertyException,
+ css::lang::WrappedTargetException,
+ css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL removePropertyChangeListener(
const OUString& rPropertyName,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertyChangeListener >& xListener)
- throw (::com::sun::star::beans::UnknownPropertyException,
- ::com::sun::star::lang::WrappedTargetException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener)
+ throw (css::beans::UnknownPropertyException,
+ css::lang::WrappedTargetException,
+ css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL addVetoableChangeListener(
const OUString& rPropertyName,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XVetoableChangeListener >& xListener)
- throw (::com::sun::star::beans::UnknownPropertyException,
- ::com::sun::star::lang::WrappedTargetException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference< css::beans::XVetoableChangeListener >& xListener)
+ throw (css::beans::UnknownPropertyException,
+ css::lang::WrappedTargetException,
+ css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL removeVetoableChangeListener(
const OUString& rPropertyName,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XVetoableChangeListener >& xListener)
- throw (::com::sun::star::beans::UnknownPropertyException,
- ::com::sun::star::lang::WrappedTargetException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference< css::beans::XVetoableChangeListener >& xListener)
+ throw (css::beans::UnknownPropertyException,
+ css::lang::WrappedTargetException,
+ css::uno::RuntimeException, std::exception) override;
// XTextRange
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XText >
+ virtual css::uno::Reference< css::text::XText >
SAL_CALL getText()
- throw (::com::sun::star::uno::RuntimeException, std::exception) override;
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextRange > SAL_CALL getStart()
- throw (::com::sun::star::uno::RuntimeException, std::exception) override;
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextRange > SAL_CALL getEnd()
- throw (::com::sun::star::uno::RuntimeException, std::exception) override;
+ throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getStart()
+ throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getEnd()
+ throw (css::uno::RuntimeException, std::exception) override;
virtual OUString SAL_CALL getString()
- throw (::com::sun::star::uno::RuntimeException, std::exception) override;
+ throw (css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL setString(const OUString& rString)
- throw (::com::sun::star::uno::RuntimeException, std::exception) override;
+ throw (css::uno::RuntimeException, std::exception) override;
// XSimpleText
virtual void SAL_CALL insertString(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextRange > & xRange,
+ const css::uno::Reference< css::text::XTextRange > & xRange,
const OUString& aString, sal_Bool bAbsorb)
- throw (::com::sun::star::uno::RuntimeException, std::exception) override;
+ throw (css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL insertControlCharacter(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextRange > & xRange,
+ const css::uno::Reference< css::text::XTextRange > & xRange,
sal_Int16 nControlCharacter, sal_Bool bAbsorb)
- throw (::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
+ throw (css::lang::IllegalArgumentException,
+ css::uno::RuntimeException, std::exception) override;
// XText
virtual void SAL_CALL insertTextContent(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextRange > & xRange,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextContent > & xContent,
+ const css::uno::Reference< css::text::XTextRange > & xRange,
+ const css::uno::Reference< css::text::XTextContent > & xContent,
sal_Bool bAbsorb)
- throw (::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
+ throw (css::lang::IllegalArgumentException,
+ css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL removeTextContent(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextContent > & xContent)
- throw (::com::sun::star::container::NoSuchElementException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference< css::text::XTextContent > & xContent)
+ throw (css::container::NoSuchElementException,
+ css::uno::RuntimeException, std::exception) override;
// XParagraphAppend
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextRange > SAL_CALL
+ virtual css::uno::Reference< css::text::XTextRange > SAL_CALL
finishParagraph(
- const ::com::sun::star::uno::Sequence<
- ::com::sun::star::beans::PropertyValue >&
- rCharacterAndParagraphProperties)
- throw (::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextRange > SAL_CALL
+ const css::uno::Sequence< css::beans::PropertyValue >& rCharacterAndParagraphProperties)
+ throw (css::lang::IllegalArgumentException,
+ css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::text::XTextRange > SAL_CALL
finishParagraphInsert(
- const ::com::sun::star::uno::Sequence<
- ::com::sun::star::beans::PropertyValue >&
- rCharacterAndParagraphProperties,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextRange >&
- xInsertPosition)
- throw (::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
+ const css::uno::Sequence< css::beans::PropertyValue >& rCharacterAndParagraphProperties,
+ const css::uno::Reference< css::text::XTextRange >& xInsertPosition)
+ throw (css::lang::IllegalArgumentException,
+ css::uno::RuntimeException, std::exception) override;
// XTextPortionAppend
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextRange > SAL_CALL
+ virtual css::uno::Reference< css::text::XTextRange > SAL_CALL
appendTextPortion(
const OUString& rText,
- const ::com::sun::star::uno::Sequence<
- ::com::sun::star::beans::PropertyValue >&
- rCharacterAndParagraphProperties)
+ const css::uno::Sequence< css::beans::PropertyValue >& rCharacterAndParagraphProperties)
throw (css::lang::IllegalArgumentException,
css::beans::UnknownPropertyException,
css::beans::PropertyVetoException,
css::uno::RuntimeException, std::exception) override;
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextRange > SAL_CALL
+ virtual css::uno::Reference< css::text::XTextRange > SAL_CALL
insertTextPortion(
const OUString& rText,
- const ::com::sun::star::uno::Sequence<
- ::com::sun::star::beans::PropertyValue >&
- rCharacterAndParagraphProperties,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextRange >&
- rTextRange)
+ const css::uno::Sequence< css::beans::PropertyValue >& rCharacterAndParagraphProperties,
+ const css::uno::Reference< css::text::XTextRange >& rTextRange)
throw (css::lang::IllegalArgumentException,
css::beans::UnknownPropertyException,
css::beans::PropertyVetoException,
@@ -250,115 +221,92 @@ public:
std::exception) override;
// XTextContentAppend
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextRange > SAL_CALL
+ virtual css::uno::Reference< css::text::XTextRange > SAL_CALL
appendTextContent(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextContent >& xTextContent,
- const ::com::sun::star::uno::Sequence<
- ::com::sun::star::beans::PropertyValue >&
- rCharacterAndParagraphProperties)
- throw (::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextRange > SAL_CALL
+ const css::uno::Reference< css::text::XTextContent >& xTextContent,
+ const css::uno::Sequence< css::beans::PropertyValue >& rCharacterAndParagraphProperties)
+ throw (css::lang::IllegalArgumentException,
+ css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::text::XTextRange > SAL_CALL
insertTextContentWithProperties(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextContent >& xTextContent,
- const ::com::sun::star::uno::Sequence<
- ::com::sun::star::beans::PropertyValue >&
- rCharacterAndParagraphProperties,
- const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange >& xInsertPosition)
- throw (::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference< css::text::XTextContent >& xTextContent,
+ const css::uno::Sequence< css::beans::PropertyValue >& rCharacterAndParagraphProperties,
+ const css::uno::Reference< css::text::XTextRange >& xInsertPosition)
+ throw (css::lang::IllegalArgumentException,
+ css::uno::RuntimeException, std::exception) override;
// XTextConvert
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextContent > SAL_CALL
+ virtual css::uno::Reference< css::text::XTextContent > SAL_CALL
convertToTextFrame(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextRange >& xStart,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextRange >& xEnd,
- const ::com::sun::star::uno::Sequence<
- ::com::sun::star::beans::PropertyValue >& xFrameProperties)
+ const css::uno::Reference< css::text::XTextRange >& xStart,
+ const css::uno::Reference< css::text::XTextRange >& xEnd,
+ const css::uno::Sequence< css::beans::PropertyValue >& xFrameProperties)
throw (css::lang::IllegalArgumentException,
css::beans::UnknownPropertyException,
css::beans::PropertyVetoException,
css::uno::RuntimeException, std::exception) override;
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextTable > SAL_CALL
+ virtual css::uno::Reference<
+ css::text::XTextTable > SAL_CALL
convertToTable(
- ::com::sun::star::uno::Sequence<
- ::com::sun::star::uno::Sequence<
- ::com::sun::star::uno::Sequence<
- ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextRange > > > > const&
+ css::uno::Sequence<
+ css::uno::Sequence<
+ css::uno::Sequence<
+ css::uno::Reference<
+ css::text::XTextRange > > > > const&
rTableRanges,
- ::com::sun::star::uno::Sequence<
- ::com::sun::star::uno::Sequence<
- ::com::sun::star::uno::Sequence<
- ::com::sun::star::beans::PropertyValue > > > const&
+ css::uno::Sequence<
+ css::uno::Sequence<
+ css::uno::Sequence<
+ css::beans::PropertyValue > > > const&
rCellProperties,
- ::com::sun::star::uno::Sequence<
- ::com::sun::star::uno::Sequence<
- ::com::sun::star::beans::PropertyValue > > const&
+ css::uno::Sequence<
+ css::uno::Sequence<
+ css::beans::PropertyValue > > const&
rRowProperties,
- ::com::sun::star::uno::Sequence<
- ::com::sun::star::beans::PropertyValue > const&
+ css::uno::Sequence<
+ css::beans::PropertyValue > const&
rTableProperties)
- throw (::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
+ throw (css::lang::IllegalArgumentException,
+ css::uno::RuntimeException, std::exception) override;
// XTextCopy
virtual void SAL_CALL copyText(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextCopy >& xSource )
- throw (::com::sun::star::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference< css::text::XTextCopy >& xSource )
+ throw (css::uno::RuntimeException, std::exception) override;
// XTextRangeCompare
sal_Int16 SAL_CALL compareRegionStarts(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextRange >& xR1,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextRange >& xR2)
- throw (::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference< css::text::XTextRange >& xR1,
+ const css::uno::Reference< css::text::XTextRange >& xR2)
+ throw (css::lang::IllegalArgumentException,
+ css::uno::RuntimeException, std::exception) override;
sal_Int16 SAL_CALL compareRegionEnds(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextRange >& xR1,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextRange >& xR2)
- throw (::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference< css::text::XTextRange >& xR1,
+ const css::uno::Reference< css::text::XTextRange >& xR2)
+ throw (css::lang::IllegalArgumentException,
+ css::uno::RuntimeException, std::exception) override;
// XRelativeTextContentInsert
virtual void SAL_CALL insertTextContentBefore(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextContent>& xNewContent,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextContent>& xSuccessor)
- throw (::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference< css::text::XTextContent>& xNewContent,
+ const css::uno::Reference< css::text::XTextContent>& xSuccessor)
+ throw (css::lang::IllegalArgumentException,
+ css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL insertTextContentAfter(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextContent>& xNewContent,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextContent>& xPredecessor)
- throw (::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference< css::text::XTextContent>& xNewContent,
+ const css::uno::Reference< css::text::XTextContent>& xPredecessor)
+ throw (css::lang::IllegalArgumentException,
+ css::uno::RuntimeException, std::exception) override;
// XRelativeTextContentRemove
virtual void SAL_CALL removeTextContentBefore(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextContent>& xSuccessor)
- throw (::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference< css::text::XTextContent>& xSuccessor)
+ throw (css::lang::IllegalArgumentException,
+ css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL removeTextContentAfter(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextContent>& xPredecessor)
- throw (::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference< css::text::XTextContent>& xPredecessor)
+ throw (css::lang::IllegalArgumentException,
+ css::uno::RuntimeException, std::exception) override;
};
#endif // INCLUDED_SW_INC_UNOTEXT_HXX