Added dummy implementations on text horizontal alignment of SectionTableView.
authorclone <ingyou.park@samsung.com>
Sat, 16 Mar 2013 14:56:27 +0000 (23:56 +0900)
committerclone <ingyou.park@samsung.com>
Sat, 16 Mar 2013 14:59:04 +0000 (23:59 +0900)
Change-Id: I87b380890e5bdacf594370e0d1088cacee8cce73
Signed-off-by: clone <ingyou.park@samsung.com>
inc/FUiCtrlSectionTableView.h
src/ui/controls/FUiCtrlSectionTableView.cpp

index f04e54a..6e16c83 100644 (file)
@@ -28,6 +28,7 @@
 #include <FGrpRectangle.h>
 #include <FGrpColor.h>
 #include <FUiContainer.h>
+#include <FUiCtrlControlsTypes.h>
 #include <FUiCtrlTableViewTypes.h>
 #include <FUiCtrlScrollPanelTypes.h>
 
@@ -865,6 +866,68 @@ public:
        */
        bool IsContextItemOpened(int sectionIndex, int itemIndex) const;
 
+       /**
+       * Sets the Horizontal alignment of the text of the %SectionTableView header.
+       *
+       * @since 2.1
+       *
+       * @return       An error code
+       * @param[in]    sectionIndex    The index of the section
+       * @param[in]    alignment       The horizontal alignment of the section header text
+       * @exception    E_SUCCESS       The method is successful.
+       * @exception    E_OUT_OF_RANGE  The specified input parameter is invalid.
+       * @exception    E_INVALID_OPERATION     There is no header in the section.
+       * @remarks      By default, the text of the section header is left aligned.
+       * @see  GetSectionHeaderTextHorizontalAlignment()
+       */
+       result SetSectionHeaderTextHorizontalAlignment(int sectionIndex, HorizontalAlignment alignment);
+
+       /**
+       * Gets the Horizontal alignment of the text of the %SectionTableView header.
+       *
+       * @since 2.1
+       *
+       * @return       The horizontal alignment of the text
+       * @param[in]    sectionIndex    The index of the section
+       * @exception    E_SUCCESS       The method is successful
+       * @exception    E_OUT_OF_RANGE  The specified input parameter is invalid.
+       * @exception    E_INVALID_OPERATION     There is no header in the section.
+       * @remarks      The specific error code can be accessed using the GetLastResult() method.
+       * @see  SetSectionHeaderTextHorizontalAlignment()
+       */
+       HorizontalAlignment GetSectionHeaderTextHorizontalAlignment(int sectionIndex);
+
+       /**
+       * Sets the Horizontal alignment of the text of the %SectionTableView footer.
+       *
+       * @since 2.1
+       *
+       * @return       An error code
+       * @param[in]    sectionIndex    The index of the section
+       * @param[in]    alignment       The horizontal alignment of the section footer text
+       * @exception    E_SUCCESS       The method is successful.
+       * @exception    E_OUT_OF_RANGE  The specified input parameter is invalid.
+       * @exception    E_INVALID_OPERATION     There is no footer in the section.
+       * @remarks      By default, the text of the section footer is right aligned.
+       * @see  GetSectionFooterTextHorizontalAlignment()
+       */
+       result SetSectionFooterTextHorizontalAlignment(int sectionIndex, HorizontalAlignment alignment);
+
+       /**
+       * Gets the Horizontal alignment of the text of the %SectionTableView footer.
+       *
+       * @since 2.1
+       *
+       * @return       The horizontal alignment of the text
+       * @param[in]    sectionIndex    The index of the section
+       * @exception    E_SUCCESS       The method is successful
+       * @exception    E_OUT_OF_RANGE  The specified input parameter is invalid.
+       * @exception    E_INVALID_OPERATION     There is no footer in the section.
+       * @remarks      The specific error code can be accessed using the GetLastResult() method.
+       * @see  SetSectionFooterTextHorizontalAlignment()
+       */
+       HorizontalAlignment GetSectionFooterTextHorizontalAlignment(int sectionIndex);
+
 private:
        friend class _TableViewImpl;
 
index dcde4a4..b969ebb 100644 (file)
@@ -509,5 +509,40 @@ SectionTableView::IsContextItemOpened(int sectionIndex, int itemIndex) const
        return pImpl->IsContextItemOpened(sectionIndex, itemIndex);
 }
 
+result
+SectionTableView::SetSectionHeaderTextHorizontalAlignment(int sectionIndex, HorizontalAlignment alignment)
+{
+       const _TableViewImpl* pImpl = _TableViewImpl::GetInstance(*this);
+       SysAssertf(pImpl != null, "Not-yet constructed! Construct() should be called before use.");
+
+       return E_SUCCESS;
+}
+
+HorizontalAlignment
+SectionTableView::GetSectionHeaderTextHorizontalAlignment(int sectionIndex)
+{
+       const _TableViewImpl* pImpl = _TableViewImpl::GetInstance(*this);
+       SysAssertf(pImpl != null, "Not-yet constructed! Construct() should be called before use.");
+
+       return ALIGNMENT_LEFT;
+}
+
+result
+SectionTableView::SetSectionFooterTextHorizontalAlignment(int sectionIndex, HorizontalAlignment alignment)
+{
+       const _TableViewImpl* pImpl = _TableViewImpl::GetInstance(*this);
+       SysAssertf(pImpl != null, "Not-yet constructed! Construct() should be called before use.");
+
+       return E_SUCCESS;
+}
+
+HorizontalAlignment
+SectionTableView::GetSectionFooterTextHorizontalAlignment(int sectionIndex)
+{
+       const _TableViewImpl* pImpl = _TableViewImpl::GetInstance(*this);
+       SysAssertf(pImpl != null, "Not-yet constructed! Construct() should be called before use.");
+
+       return ALIGNMENT_LEFT;
+}
 
 }}} //Tizen::Ui::Controls