Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_RENDERING_XTEXTLAYOUT_HDL
2 : : #define INCLUDED_COM_SUN_STAR_RENDERING_XTEXTLAYOUT_HDL
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/rendering/StringContext.hdl"
7 : : namespace com { namespace sun { namespace star { namespace rendering { class XCanvasFont; } } } }
8 : : #include "com/sun/star/rendering/Caret.hdl"
9 : : #include "com/sun/star/geometry/RealPoint2D.hdl"
10 : : #include "com/sun/star/lang/IllegalArgumentException.hdl"
11 : : namespace com { namespace sun { namespace star { namespace rendering { class XTextLayout; } } } }
12 : : #include "com/sun/star/rendering/TextHit.hdl"
13 : : #include "com/sun/star/geometry/RealRectangle2D.hdl"
14 : : #include "com/sun/star/uno/XInterface.hdl"
15 : : #include "com/sun/star/lang/IndexOutOfBoundsException.hdl"
16 : : namespace com { namespace sun { namespace star { namespace rendering { class XPolyPolygon2D; } } } }
17 : : #include "com/sun/star/uno/RuntimeException.hdl"
18 : : #include "com/sun/star/uno/Reference.h"
19 : : #include "com/sun/star/uno/Sequence.h"
20 : : #include "cppu/macros.hxx"
21 : : #include "sal/types.h"
22 : :
23 : : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
24 : :
25 : : namespace com { namespace sun { namespace star { namespace rendering {
26 : :
27 : 0 : class SAL_NO_VTABLE XTextLayout : public ::com::sun::star::uno::XInterface
28 : : {
29 : : public:
30 : :
31 : : // Methods
32 : : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D > > SAL_CALL queryTextShapes( ) throw (::com::sun::star::uno::RuntimeException) = 0;
33 : : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::geometry::RealRectangle2D > SAL_CALL queryInkMeasures( ) throw (::com::sun::star::uno::RuntimeException) = 0;
34 : : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::geometry::RealRectangle2D > SAL_CALL queryMeasures( ) throw (::com::sun::star::uno::RuntimeException) = 0;
35 : : virtual ::com::sun::star::uno::Sequence< double > SAL_CALL queryLogicalAdvancements( ) throw (::com::sun::star::uno::RuntimeException) = 0;
36 : : virtual void SAL_CALL applyLogicalAdvancements( const ::com::sun::star::uno::Sequence< double >& aAdvancements ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) = 0;
37 : : virtual ::com::sun::star::geometry::RealRectangle2D SAL_CALL queryTextBounds( ) throw (::com::sun::star::uno::RuntimeException) = 0;
38 : : virtual double SAL_CALL justify( double nSize ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) = 0;
39 : : virtual double SAL_CALL combinedJustify( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XTextLayout > >& aNextLayouts, double nSize ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) = 0;
40 : : virtual ::com::sun::star::rendering::TextHit SAL_CALL getTextHit( const ::com::sun::star::geometry::RealPoint2D& aHitPoint ) throw (::com::sun::star::uno::RuntimeException) = 0;
41 : : virtual ::com::sun::star::rendering::Caret SAL_CALL getCaret( ::sal_Int32 nInsertionIndex, ::sal_Bool bExcludeLigatures ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException) = 0;
42 : : virtual ::sal_Int32 SAL_CALL getNextInsertionIndex( ::sal_Int32 nStartIndex, ::sal_Int32 nCaretAdvancement, ::sal_Bool bExcludeLigatures ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException) = 0;
43 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D > SAL_CALL queryVisualHighlighting( ::sal_Int32 nStartIndex, ::sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException) = 0;
44 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D > SAL_CALL queryLogicalHighlighting( ::sal_Int32 nStartIndex, ::sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException) = 0;
45 : : virtual double SAL_CALL getBaselineOffset( ) throw (::com::sun::star::uno::RuntimeException) = 0;
46 : : virtual ::sal_Int8 SAL_CALL getMainTextDirection( ) throw (::com::sun::star::uno::RuntimeException) = 0;
47 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvasFont > SAL_CALL getFont( ) throw (::com::sun::star::uno::RuntimeException) = 0;
48 : : virtual ::com::sun::star::rendering::StringContext SAL_CALL getText( ) throw (::com::sun::star::uno::RuntimeException) = 0;
49 : :
50 : : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
51 : :
52 : : protected:
53 : 0 : ~XTextLayout() throw () {} // avoid warnings about virtual members and non-virtual dtor
54 : : };
55 : :
56 : :
57 : : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::rendering::XTextLayout const *);
58 : : } } } }
59 : :
60 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XTextLayout > *) SAL_THROW(());
61 : :
62 : : #endif
|