diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-22 14:25:51 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-22 14:37:39 +0100 |
commit | aff263c8b814c6bf352312403d3c1e448c8013a3 (patch) | |
tree | f003e927f21f97f84b76ba478ed6fb43b93a06f3 /include | |
parent | 13807fbf9f3a4aae6767da8bcf796bea4b065159 (diff) |
Related: fdo#81457 quadratic time required when setting a11y name
when calling SetAccessibleName GetAccessibleName is called
in order to send a name changed a11y event. Getting an Accessible
Name is very slow in a non-layout aware widget because it scans
for a "nearby" label and there is none in this widget, but it
has a huge pile of other widgets to iterate over.
call add_mnemonic_label before hand to cut off that entire
branch.
While we're at it, only call InitControl to adjust to a new
width if the new width is different from the old width
Change-Id: Ie4ba1276127226e49442278e46447b84bbeb1cde
Diffstat (limited to 'include')
-rw-r--r-- | include/sfx2/dinfdlg.hxx | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/include/sfx2/dinfdlg.hxx b/include/sfx2/dinfdlg.hxx index d433cb458735..fd6f95bca989 100644 --- a/include/sfx2/dinfdlg.hxx +++ b/include/sfx2/dinfdlg.hxx @@ -407,6 +407,10 @@ struct CustomPropertyLine class CustomPropertiesWindow : public Window { private: + FixedText* m_pHeaderAccName; + FixedText* m_pHeaderAccType; + FixedText* m_pHeaderAccValue; + ComboBox m_aNameBox; ListBox m_aTypeBox; Edit m_aValueEdit; @@ -441,13 +445,13 @@ private: public: CustomPropertiesWindow(Window* pParent, - const OUString &rHeaderAccName, - const OUString &rHeaderAccType, - const OUString &rHeaderAccValue); + FixedText *pHeaderAccName, + FixedText *pHeaderAccType, + FixedText *pHeaderAccValue); virtual ~CustomPropertiesWindow(); - void InitControls( HeaderBar* pHeaderBar, const ScrollBar* pScrollBar ); - sal_uInt16 GetVisibleLineCount() const; + bool InitControls( HeaderBar* pHeaderBar, const ScrollBar* pScrollBar ); + sal_uInt16 GetVisibleLineCount() const; inline sal_Int32 GetLineHeight() const { return m_nLineHeight; } void AddLine( const OUString& sName, com::sun::star::uno::Any& rAny ); bool AreAllLinesValid() const; |