diff options
author | Cao Cuong Ngo <cao.cuong.ngo@gmail.com> | 2013-06-18 12:39:52 +0200 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2013-09-02 13:51:48 +0200 |
commit | 7af023246b59ca73a42f3f5164d6f0321f424c0f (patch) | |
tree | e55c2c5fc1626b7bc13b2c4280fcb02a69b0743a | |
parent | beff419a6e9e5ae16e84366d628ca478ab1afdb8 (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 4f32a5adb27a..dada9736c753 100644 --- a/sfx2/source/dialog/dinfdlg.cxx +++ b/sfx2/source/dialog/dinfdlg.cxx @@ -2455,7 +2455,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 ); @@ -2464,6 +2464,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() ; |