Kaydet (Commit) 3588a04f authored tarafından Zolnai Tamás's avatar Zolnai Tamás

tdf#89830: Ambiguous naming of character background

Use 'Highlighting' also on Character Dialog.

Change-Id: Ie81d25651e5998a35b4e2646089b8f2c590cfb98
üst 63ca46a0
...@@ -80,6 +80,7 @@ private: ...@@ -80,6 +80,7 @@ private:
VclPtr<ListBox> m_pTblLBox; VclPtr<ListBox> m_pTblLBox;
VclPtr<ListBox> m_pParaLBox; VclPtr<ListBox> m_pParaLBox;
VclPtr<FixedText> m_pBackGroundColorLabelFT;
VclPtr<VclFrame> m_pBackGroundColorFrame; VclPtr<VclFrame> m_pBackGroundColorFrame;
VclPtr<SvxColorValueSet> m_pBackgroundColorSet; VclPtr<SvxColorValueSet> m_pBackgroundColorSet;
VclPtr<BackgroundPreviewImpl> m_pPreviewWin1; VclPtr<BackgroundPreviewImpl> m_pPreviewWin1;
......
...@@ -357,6 +357,7 @@ SvxBackgroundTabPage::SvxBackgroundTabPage(vcl::Window* pParent, const SfxItemSe ...@@ -357,6 +357,7 @@ SvxBackgroundTabPage::SvxBackgroundTabPage(vcl::Window* pParent, const SfxItemSe
get(m_pTblLBox, "tablelb"); get(m_pTblLBox, "tablelb");
get(m_pParaLBox, "paralb"); get(m_pParaLBox, "paralb");
get(m_pBackGroundColorLabelFT, "background_label");
get(m_pBackGroundColorFrame, "backgroundcolorframe"); get(m_pBackGroundColorFrame, "backgroundcolorframe");
get(m_pBackgroundColorSet, "backgroundcolorset"); get(m_pBackgroundColorSet, "backgroundcolorset");
get(m_pPreviewWin1, "preview1"); get(m_pPreviewWin1, "preview1");
...@@ -1707,7 +1708,13 @@ void SvxBackgroundTabPage::PageCreated(const SfxAllItemSet& aSet) ...@@ -1707,7 +1708,13 @@ void SvxBackgroundTabPage::PageCreated(const SfxAllItemSet& aSet)
if ( nFlags & SvxBackgroundTabFlags::SHOW_PARACTL ) if ( nFlags & SvxBackgroundTabFlags::SHOW_PARACTL )
ShowParaControl(); ShowParaControl();
if ( nFlags & SvxBackgroundTabFlags::SHOW_SELECTOR ) if ( nFlags & SvxBackgroundTabFlags::SHOW_SELECTOR )
{
ShowSelector(); ShowSelector();
}
if ( nFlags & SvxBackgroundTabFlags::SHOW_HIGHLIGHTING )
{
m_pBackGroundColorLabelFT->SetText("Highlighting Color");
}
} }
} }
......
...@@ -221,7 +221,7 @@ ...@@ -221,7 +221,7 @@
</object> </object>
</child> </child>
<child type="label"> <child type="label">
<object class="GtkLabel" id="label5"> <object class="GtkLabel" id="background_label">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="label" translatable="yes">Background Color</property> <property name="label" translatable="yes">Background Color</property>
......
...@@ -44,6 +44,7 @@ enum class SvxBackgroundTabFlags ...@@ -44,6 +44,7 @@ enum class SvxBackgroundTabFlags
SHOW_SELECTOR = 0x01, SHOW_SELECTOR = 0x01,
SHOW_PARACTL = 0x02, SHOW_PARACTL = 0x02,
SHOW_TBLCTL = 0x08, SHOW_TBLCTL = 0x08,
SHOW_HIGHLIGHTING = 0x10,
}; };
namespace o3tl namespace o3tl
{ {
......
...@@ -60,7 +60,7 @@ ORptPageDialog::ORptPageDialog( vcl::Window* pParent, const SfxItemSet* pAttr, c ...@@ -60,7 +60,7 @@ ORptPageDialog::ORptPageDialog( vcl::Window* pParent, const SfxItemSet* pAttr, c
AddTabPage("fonteffects", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_CHAR_EFFECTS ), 0 ); AddTabPage("fonteffects", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_CHAR_EFFECTS ), 0 );
AddTabPage("position", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_CHAR_POSITION ), 0 ); AddTabPage("position", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_CHAR_POSITION ), 0 );
AddTabPage("asianlayout", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_CHAR_TWOLINES ), 0 ); AddTabPage("asianlayout", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_CHAR_TWOLINES ), 0 );
AddTabPage("background", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_BACKGROUND ), 0 ); m_nCharBgdId = AddTabPage("background", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_BACKGROUND ), 0 );
AddTabPage("alignment", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_ALIGNMENT ), 0 ); AddTabPage("alignment", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_ALIGNMENT ), 0 );
} }
else else
...@@ -71,6 +71,16 @@ ORptPageDialog::ORptPageDialog( vcl::Window* pParent, const SfxItemSet* pAttr, c ...@@ -71,6 +71,16 @@ ORptPageDialog::ORptPageDialog( vcl::Window* pParent, const SfxItemSet* pAttr, c
RemoveTabPage("asianlayout"); RemoveTabPage("asianlayout");
} }
void ORptPageDialog::PageCreated( sal_uInt16 nId, SfxTabPage &rPage )
{
SfxAllItemSet aSet(*(GetInputSetImpl()->GetPool()));
if (nId == m_nCharBgdId)
{
aSet.Put(SfxUInt32Item(SID_FLAG_TYPE,static_cast<sal_uInt32>(SvxBackgroundTabFlags::SHOW_HIGHLIGHTING)));
rPage.PageCreated(aSet);
}
}
} // namespace rptui } // namespace rptui
......
...@@ -33,9 +33,12 @@ class ORptPageDialog : public SfxTabDialog ...@@ -33,9 +33,12 @@ class ORptPageDialog : public SfxTabDialog
private: private:
ORptPageDialog(const ORptPageDialog&) SAL_DELETED_FUNCTION; ORptPageDialog(const ORptPageDialog&) SAL_DELETED_FUNCTION;
void operator =(const ORptPageDialog&) SAL_DELETED_FUNCTION; void operator =(const ORptPageDialog&) SAL_DELETED_FUNCTION;
sal_uInt16 m_nCharBgdId;
public: public:
ORptPageDialog(vcl::Window* pParent, const SfxItemSet* pAttr, const OUString &rDialog); ORptPageDialog(vcl::Window* pParent, const SfxItemSet* pAttr, const OUString &rDialog);
virtual void PageCreated( sal_uInt16 nId, SfxTabPage &rPage ) SAL_OVERRIDE;
}; };
} // namespace rptui } // namespace rptui
......
...@@ -151,7 +151,7 @@ ...@@ -151,7 +151,7 @@
<object class="GtkLabel" id="background"> <object class="GtkLabel" id="background">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="label" translatable="yes">Background</property> <property name="label" translatable="yes">Highlighting</property>
</object> </object>
<packing> <packing>
<property name="position">4</property> <property name="position">4</property>
......
...@@ -125,6 +125,11 @@ void SwCharDlg::PageCreated( sal_uInt16 nId, SfxTabPage &rPage ) ...@@ -125,6 +125,11 @@ void SwCharDlg::PageCreated( sal_uInt16 nId, SfxTabPage &rPage )
aSet.Put (SfxUInt32Item(SID_FLAG_TYPE,SVX_PREVIEW_CHARACTER)); aSet.Put (SfxUInt32Item(SID_FLAG_TYPE,SVX_PREVIEW_CHARACTER));
rPage.PageCreated(aSet); rPage.PageCreated(aSet);
} }
else if (nId == m_nCharBgdId)
{
aSet.Put(SfxUInt32Item(SID_FLAG_TYPE,static_cast<sal_uInt32>(SvxBackgroundTabFlags::SHOW_HIGHLIGHTING)));
rPage.PageCreated(aSet);
}
} }
SwCharURLPage::SwCharURLPage(vcl::Window* pParent, const SfxItemSet& rCoreSet) SwCharURLPage::SwCharURLPage(vcl::Window* pParent, const SfxItemSet& rCoreSet)
......
...@@ -476,6 +476,8 @@ void SwTemplateDlg::PageCreated( sal_uInt16 nId, SfxTabPage &rPage ) ...@@ -476,6 +476,8 @@ void SwTemplateDlg::PageCreated( sal_uInt16 nId, SfxTabPage &rPage )
nFlagType |= SvxBackgroundTabFlags::SHOW_PARACTL; nFlagType |= SvxBackgroundTabFlags::SHOW_PARACTL;
if( SFX_STYLE_FAMILY_CHAR != nType ) if( SFX_STYLE_FAMILY_CHAR != nType )
nFlagType |= SvxBackgroundTabFlags::SHOW_SELECTOR; nFlagType |= SvxBackgroundTabFlags::SHOW_SELECTOR;
if( SFX_STYLE_FAMILY_CHAR == nType )
nFlagType |= SvxBackgroundTabFlags::SHOW_HIGHLIGHTING;
aSet.Put (SfxUInt32Item(SID_FLAG_TYPE, static_cast<sal_uInt32>(nFlagType))); aSet.Put (SfxUInt32Item(SID_FLAG_TYPE, static_cast<sal_uInt32>(nFlagType)));
rPage.PageCreated(aSet); rPage.PageCreated(aSet);
} }
......
...@@ -166,7 +166,7 @@ ...@@ -166,7 +166,7 @@
<object class="GtkLabel" id="background"> <object class="GtkLabel" id="background">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="label" translatable="yes">Background</property> <property name="label" translatable="yes">Highlighting</property>
</object> </object>
<packing> <packing>
<property name="position">5</property> <property name="position">5</property>
......
...@@ -196,7 +196,7 @@ ...@@ -196,7 +196,7 @@
<object class="GtkLabel" id="background"> <object class="GtkLabel" id="background">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="label" translatable="yes">Background</property> <property name="label" translatable="yes">Highlighting</property>
</object> </object>
<packing> <packing>
<property name="position">5</property> <property name="position">5</property>
......
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