diff options
author | Shivam Kumar Singh <shivamhere247@gmail.com> | 2020-07-08 09:44:19 +0530 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2020-07-08 14:55:14 +0200 |
commit | 9abeaaff50e9f6f15c0ef1be5fdabb6fbe1b7a5c (patch) | |
tree | 633137850b92bc0d4b95d9c09a70ad44f9249a62 /sw | |
parent | 4541f80e7fabf4c7d250d8d31a1ef330540c7ffb (diff) |
tdf#134567 Show all properties in DPS
Change-Id: If2238a80fbc9fc803fc5e12904964bf4289ba2d4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98310
Tested-by: Jenkins
Tested-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx b/sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx index b4733e0c1633..dbc22de258b5 100644 --- a/sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx +++ b/sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx @@ -146,10 +146,8 @@ static void UpdateTree(SwDocShell* pDocSh, svx::sidebar::TreeNode& pParentNode, { uno::Reference<style::XStyle> xProp1; uno::Reference<beans::XPropertySet> xProp1Set; - uno::Reference<beans::XPropertyState> xProp1State; xStyleFamily->getByName(sCurrentStyleName) >>= xProp1; xStyleFamily->getByName(sCurrentStyleName) >>= xProp1Set; - xStyleFamily->getByName(sCurrentStyleName) >>= xProp1State; OUString aParentCharStyle = xProp1->getParentStyle(); xProp1Set->getPropertyValue("DisplayName") >>= sDisplayName; svx::sidebar::TreeNode pCurrentChild; @@ -170,10 +168,6 @@ static void UpdateTree(SwDocShell* pDocSh, svx::sidebar::TreeNode& pParentNode, for (const beans::Property& rProperty : aProperties) { OUString sPropName = rProperty.Name; - // If property's current value equals default value - if (xProp1Set->getPropertyValue(sPropName) - == xProp1State->getPropertyDefault(sPropName)) - continue; if (maIsDefined[sPropName]) continue; @@ -204,9 +198,7 @@ static void UpdateTree(SwDocShell* pDocSh, svx::sidebar::TreeNode& pParentNode, } uno::Reference<beans::XPropertySet> aProp1Set; - uno::Reference<beans::XPropertyState> aProp1State; xStyleFamily->getByName(sCurrentStyleName) >>= aProp1Set; - xStyleFamily->getByName(sCurrentStyleName) >>= aProp1State; const uno::Sequence<beans::Property> aProperties = aProp1Set->getPropertySetInfo()->getProperties(); @@ -216,8 +208,6 @@ static void UpdateTree(SwDocShell* pDocSh, svx::sidebar::TreeNode& pParentNode, for (const beans::Property& rProperty : aProperties) { OUString aPropertyValuePair, sPropName = rProperty.Name; - if (aProp1Set->getPropertyValue(sPropName) == aProp1State->getPropertyDefault(sPropName)) - continue; if (maIsDefined[sPropName]) continue; maIsDefined[sPropName] = true; |