diff options
author | Cao Cuong Ngo <cao.cuong.ngo@gmail.com> | 2013-06-18 12:39:52 +0200 |
---|---|---|
committer | Cao Cuong Ngo <cao.cuong.ngo@gmail.com> | 2013-06-18 12:39:52 +0200 |
commit | fcb72e2e0dfb9e2f19c5d2ca5c2b8e2d1c655b98 (patch) | |
tree | bed990ba904d5cdc834bf36e1a31da770e00c194 | |
parent | 69ea6d0890984274983ff2a7370d3f355b6aa32a (diff) |
CMIS properties dialog
Set ReadOnly depends on CMIS properties
Change-Id: I8aa29ab01d8a7f3ba2f71f17623a970dd9df8af4
-rw-r--r-- | sfx2/source/dialog/dinfdlg.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx index 0fbbbb4acf6d..07f5cfbc5199 100644 --- a/sfx2/source/dialog/dinfdlg.cxx +++ b/sfx2/source/dialog/dinfdlg.cxx @@ -2417,7 +2417,7 @@ void CmisPropertiesWindow::updateLineWidth() } void CmisPropertiesWindow::AddLine( const OUString& /*sId*/, const OUString& sName, - const bool /*bUpdatable*/, const bool /*bRequired*/, + const bool bUpdatable, const bool /*bRequired*/, Any& rAny ) { CmisPropertyLine* pNewLine = new CmisPropertyLine( this ); @@ -2426,6 +2426,9 @@ void CmisPropertiesWindow::AddLine( const OUString& /*sId*/, const OUString& sNa pNewLine->m_aName.SetAccessibleName(m_aName.GetAccessibleName()); pNewLine->m_aType.SetAccessibleName(m_aType.GetAccessibleName()); pNewLine->m_aValueEdit.SetAccessibleName(m_aValueEdit.GetAccessibleName()); + pNewLine->m_aValueEdit.SetReadOnly( !bUpdatable ); + pNewLine->m_aDateField.SetReadOnly( !bUpdatable ); + pNewLine->m_aTimeField.SetReadOnly( !bUpdatable ); m_nLineHeight = m_aValueEdit.GetSizePixel().Height() ; |