diff options
author | Jakub Trzebiatowski <ubap.dev@gmail.com> | 2016-06-16 11:56:01 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-06-17 12:26:22 +0000 |
commit | 98e3e2414b4cf80343af3499414f6a5ef86d7ae8 (patch) | |
tree | 820e09e34250e810fae91971c08777b83dc6582c /sw/inc | |
parent | 5593d9e1422cbf8a122fa612713a832274d30559 (diff) |
GSoC Table Styles, Add TableStyle properties
Added properties for the following odf attributes:
table:first-row-end-column
table:first-row-start-column
table:last-row-end-column
table:last-row-start-column
Change-Id: Iac140e00a3439740623649ea234504f08146aaf3
Reviewed-on: https://gerrit.libreoffice.org/26359
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/tblafmt.hxx | 8 | ||||
-rw-r--r-- | sw/inc/unoprnms.hxx | 4 | ||||
-rw-r--r-- | sw/inc/unostyle.hxx | 10 |
3 files changed, 22 insertions, 0 deletions
diff --git a/sw/inc/tblafmt.hxx b/sw/inc/tblafmt.hxx index 6ed138d72ec8..fc698ef82654 100644 --- a/sw/inc/tblafmt.hxx +++ b/sw/inc/tblafmt.hxx @@ -118,6 +118,8 @@ public: ~SwBoxAutoFormat(); SwBoxAutoFormat& operator=( const SwBoxAutoFormat& rNew ); + /// Comparing based of boxes backgrounds. + bool operator==(const SwBoxAutoFormat& rRight); // The get-methods. const SvxFontItem &GetFont() const { return m_aFont; } @@ -300,6 +302,12 @@ public: void SetValueFormat( const bool bNew ) { bInclValueFormat = bNew; } void SetWidthHeight( const bool bNew ) { bInclWidthHeight = bNew; } + /// These methods returns what style (row or column) is applied first on given Cell + bool FirstRowEndColumnIsRow(); + bool FirstRowStartColumnIsRow(); + bool LastRowEndColumnIsRow(); + bool LastRowStartColumnIsRow(); + bool Load( SvStream& rStream, const SwAfVersions& ); bool Save( SvStream& rStream, sal_uInt16 fileVersion ) const; diff --git a/sw/inc/unoprnms.hxx b/sw/inc/unoprnms.hxx index 8a437094f4f8..0d1322d4be45 100644 --- a/sw/inc/unoprnms.hxx +++ b/sw/inc/unoprnms.hxx @@ -843,6 +843,10 @@ #define UNO_NAME_ROW_INTEROP_GRAB_BAG "RowInteropGrabBag" #define UNO_NAME_TABLE_INTEROP_GRAB_BAG "TableInteropGrabBag" +#define UNO_NAME_TABLE_FIRST_ROW_END_COLUMN "FirstRowEndColumn" +#define UNO_NAME_TABLE_FIRST_ROW_START_COLUMN "FirstRowStartColumn" +#define UNO_NAME_TABLE_LAST_ROW_END_COLUMN "LastRowEndColumn" +#define UNO_NAME_TABLE_LAST_ROW_START_COLUMN "LastRowStartColumn" #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/inc/unostyle.hxx b/sw/inc/unostyle.hxx index bac73cf0ddc1..cbb04f5c8c07 100644 --- a/sw/inc/unostyle.hxx +++ b/sw/inc/unostyle.hxx @@ -253,6 +253,7 @@ typedef std::map<OUString, sal_Int32> CellStyleNameMap; class SwXTextTableStyle : public cppu::WeakImplHelper < css::style::XStyle, + css::beans::XPropertySet, css::container::XNameAccess, css::lang::XServiceInfo > @@ -290,6 +291,15 @@ public: virtual OUString SAL_CALL getName() throw(css::uno::RuntimeException, std::exception) override; virtual void SAL_CALL setName(const OUString& rName) throw(css::uno::RuntimeException, std::exception) override; + //XPropertySet + virtual css::uno::Reference<css::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() throw(css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL setPropertyValue(const OUString& aPropertyName, const css::uno::Any& aValue) 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& PropertyName) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL addPropertyChangeListener(const OUString& aPropertyName, 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& aPropertyName, const css::uno::Reference<css::beans::XPropertyChangeListener>& aListener) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL addVetoableChangeListener(const OUString& PropertyName, const css::uno::Reference<css::beans::XVetoableChangeListener>& aListener) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL removeVetoableChangeListener(const OUString& PropertyName, const css::uno::Reference<css::beans::XVetoableChangeListener>& aListener) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override; + //XNameAccess virtual css::uno::Any SAL_CALL getByName(const OUString& rName) throw(css::container::NoSuchElementException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override; virtual css::uno::Sequence<OUString> SAL_CALL getElementNames() throw(css::uno::RuntimeException, std::exception) override; |