12#include <com/sun/star/text/HoriOrientation.hpp>
13#include <com/sun/star/text/RelOrientation.hpp>
14#include <com/sun/star/text/VertOrientation.hpp>
16#include <ooxml/resourceids.hxx>
17#include <osl/endian.h>
39 case css::text::VertOrientation::CENTER:
40 nAlign = NS_ooxml::LN_Value_doc_ST_YAlign_center;
42 case css::text::VertOrientation::TOP:
43 nAlign = NS_ooxml::LN_Value_doc_ST_YAlign_top;
45 case css::text::VertOrientation::BOTTOM:
46 nAlign = NS_ooxml::LN_Value_doc_ST_YAlign_bottom;
55 sal_Int32 nAnchor = 0;
59 nAnchor = NS_ooxml::LN_Value_doc_ST_VAnchor_text;
61 case css::text::RelOrientation::PAGE_FRAME:
62 nAnchor = NS_ooxml::LN_Value_doc_ST_VAnchor_page;
64 case css::text::RelOrientation::PAGE_PRINT_AREA:
65 nAnchor = NS_ooxml::LN_Value_doc_ST_VAnchor_margin;
94 case css::text::HoriOrientation::CENTER:
95 nAlign = NS_ooxml::LN_Value_doc_ST_XAlign_center;
97 case css::text::HoriOrientation::RIGHT:
98 nAlign = NS_ooxml::LN_Value_doc_ST_XAlign_right;
100 case css::text::HoriOrientation::LEFT:
101 nAlign = NS_ooxml::LN_Value_doc_ST_XAlign_left;
103 case css::text::HoriOrientation::INSIDE:
104 nAlign = NS_ooxml::LN_Value_doc_ST_XAlign_inside;
106 case css::text::HoriOrientation::OUTSIDE:
107 nAlign = NS_ooxml::LN_Value_doc_ST_XAlign_outside;
116 sal_Int32 nAnchor = 0;
120 nAnchor = NS_ooxml::LN_Value_doc_ST_HAnchor_text;
122 case css::text::RelOrientation::PAGE_FRAME:
123 nAnchor = NS_ooxml::LN_Value_doc_ST_HAnchor_page;
125 case css::text::RelOrientation::PAGE_PRINT_AREA:
126 nAnchor = NS_ooxml::LN_Value_doc_ST_HAnchor_margin;
Stores the horizontal orientation properties of an RTF fly frame.
sal_uInt16 GetOrient() const
sal_uInt16 GetRelation() const
sal_Int32 GetAlign() const
RTFHoriOrient(sal_uInt16 nValue)
sal_Int32 GetAnchor() const
Stores the vertical orientation properties of an RTF fly frame.
sal_uInt16 GetRelation() const
sal_Int32 GetAnchor() const
sal_Int32 GetAlign() const
sal_uInt16 GetOrient() const
RTFVertOrient(sal_uInt16 nValue)