Kaydet (Commit) 6abc4f4d authored tarafından Noel Grandin's avatar Noel Grandin

drop CTL_STYLE enum

since we only ever use the Rect value

Change-Id: I020f5c126a8703e07cea5739b53e4b9529a1a575
üst dbab6f1d
......@@ -88,7 +88,6 @@ protected:
Point aPtLB, aPtMB, aPtRB;
Point aPtNew;
RectPoint eRP, eDefRP;
CTL_STYLE eCS;
Bitmap* pBitmap;
CTL_STATE m_nState;
......@@ -123,12 +122,12 @@ public:
virtual Size GetOptimalSize() const override;
void Reset();
RectPoint GetActualRP() const { return eRP;}
RectPoint GetActualRP() const { return eRP;}
void SetActualRP( RectPoint eNewRP );
void SetState( CTL_STATE nState );
sal_uInt8 GetNumOfChildren() const; // returns number of usable radio buttons
static const sal_uInt8 NO_CHILDREN = 9; // returns number of usable radio buttons
Rectangle CalculateFocusRectangle() const;
Rectangle CalculateFocusRectangle( RectPoint eRectPoint ) const;
......
......@@ -32,14 +32,6 @@ enum class RectPoint
RB // bottom right
};
enum class CTL_STYLE
{
Rect,
Line,
Angle,
Shadow
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -141,7 +141,7 @@ SvxRectCtlAccessibleContext::SvxRectCtlAccessibleContext(
mpChildren( nullptr ),
mnClientId( 0 ),
mnSelectedChild( NOCHILDSELECTED ),
mbAngleMode( rRepr.GetNumOfChildren() == 8 )
mbAngleMode( false )
{
{
::SolarMutexGuard aSolarGuard;
......@@ -237,7 +237,7 @@ sal_Int32 SAL_CALL SvxRectCtlAccessibleContext::getAccessibleChildCount()
ThrowExceptionIfNotAlive();
return mpRepr->GetNumOfChildren();
return SvxRectCtl::NO_CHILDREN;
}
Reference< XAccessible > SAL_CALL SvxRectCtlAccessibleContext::getAccessibleChild( sal_Int32 nIndex )
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment