Kaydet (Commit) 0039c859 authored tarafından Caolán McNamara's avatar Caolán McNamara

convert browser options to .ui

Change-Id: Ia3672c43b0e80e45ff3404fa84a11182cd6c03a0
üst cb7412b8
...@@ -39,6 +39,7 @@ $(eval $(call gb_UIConfig_add_uifiles,cui,\ ...@@ -39,6 +39,7 @@ $(eval $(call gb_UIConfig_add_uifiles,cui,\
cui/uiconfig/ui/optaccessibilitypage \ cui/uiconfig/ui/optaccessibilitypage \
cui/uiconfig/ui/optadvancedpage \ cui/uiconfig/ui/optadvancedpage \
cui/uiconfig/ui/optappearancepage \ cui/uiconfig/ui/optappearancepage \
cui/uiconfig/ui/optbrowserpage \
cui/uiconfig/ui/optfltrpage \ cui/uiconfig/ui/optfltrpage \
cui/uiconfig/ui/optfontspage \ cui/uiconfig/ui/optfontspage \
cui/uiconfig/ui/optgeneralpage \ cui/uiconfig/ui/optgeneralpage \
......
...@@ -953,11 +953,9 @@ void SvxSecurityTabPage::Reset( const SfxItemSet& ) ...@@ -953,11 +953,9 @@ void SvxSecurityTabPage::Reset( const SfxItemSet& )
} }
MozPluginTabPage::MozPluginTabPage(Window* pParent, const SfxItemSet& rSet) MozPluginTabPage::MozPluginTabPage(Window* pParent, const SfxItemSet& rSet)
: SfxTabPage( pParent, CUI_RES( RID_SVXPAGE_INET_MOZPLUGIN ), rSet ), : SfxTabPage(pParent, "OptBrowserPage", "cui/ui/optbrowserpage.ui", rSet)
aMSWordGB ( this, CUI_RES( GB_MOZPLUGIN ) ),
aWBasicCodeCB ( this, CUI_RES( CB_MOZPLUGIN_CODE ) )
{ {
FreeResource(); get(m_pWBasicCodeCB, "display");
} }
MozPluginTabPage::~MozPluginTabPage() MozPluginTabPage::~MozPluginTabPage()
...@@ -972,7 +970,7 @@ SfxTabPage* MozPluginTabPage::Create( Window* pParent, ...@@ -972,7 +970,7 @@ SfxTabPage* MozPluginTabPage::Create( Window* pParent,
sal_Bool MozPluginTabPage::FillItemSet( SfxItemSet& ) sal_Bool MozPluginTabPage::FillItemSet( SfxItemSet& )
{ {
sal_Bool hasInstall = isInstalled(); sal_Bool hasInstall = isInstalled();
sal_Bool hasChecked = aWBasicCodeCB.IsChecked(); sal_Bool hasChecked = m_pWBasicCodeCB->IsChecked();
if(hasInstall && (!hasChecked)){ if(hasInstall && (!hasChecked)){
//try to uninstall //try to uninstall
uninstallPlugin(); uninstallPlugin();
...@@ -988,8 +986,8 @@ sal_Bool MozPluginTabPage::FillItemSet( SfxItemSet& ) ...@@ -988,8 +986,8 @@ sal_Bool MozPluginTabPage::FillItemSet( SfxItemSet& )
} }
void MozPluginTabPage::Reset( const SfxItemSet& ) void MozPluginTabPage::Reset( const SfxItemSet& )
{ {
aWBasicCodeCB.Check( isInstalled()); m_pWBasicCodeCB->Check( isInstalled());
aWBasicCodeCB.SaveValue(); m_pWBasicCodeCB->SaveValue();
} }
#ifdef WNT #ifdef WNT
......
...@@ -72,13 +72,6 @@ ...@@ -72,13 +72,6 @@
#define PB_MAILERURL 5 #define PB_MAILERURL 5
#define STR_DEFAULT_FILENAME 6 #define STR_DEFAULT_FILENAME 6
// plugin
#define GB_MOZPLUGIN 1
#define CB_MOZPLUGIN_CODE 2
#endif // #ifndef _SVX_OPTINET_HRC #endif // #ifndef _SVX_OPTINET_HRC
// ******************************************************************* EOF
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -193,8 +193,7 @@ public: ...@@ -193,8 +193,7 @@ public:
class MozPluginTabPage : public SfxTabPage class MozPluginTabPage : public SfxTabPage
{ {
FixedLine aMSWordGB; CheckBox* m_pWBasicCodeCB;
CheckBox aWBasicCodeCB;
sal_Bool isInstalled(void); sal_Bool isInstalled(void);
sal_Bool installPlugin(void); sal_Bool installPlugin(void);
......
...@@ -28,30 +28,6 @@ ...@@ -28,30 +28,6 @@
/* */ /* */
/************************************************************************/ /************************************************************************/
TabPage RID_SVXPAGE_INET_MOZPLUGIN
{
HelpID = "cui:TabPage:RID_SVXPAGE_INET_MOZPLUGIN";
OutputSize = TRUE ;
Size = MAP_APPFONT ( TP_WIDTH , TP_HEIGHT ) ;
SVLook = TRUE ;
Hide = TRUE ;
FixedLine GB_MOZPLUGIN
{
Pos = MAP_APPFONT ( 6 , 3 ) ;
Size = MAP_APPFONT ( 248 , 8 ) ;
Text[ en-US ] = "Browser Plug-in";
};
CheckBox CB_MOZPLUGIN_CODE
{
HelpID = "cui:CheckBox:RID_SVXPAGE_INET_MOZPLUGIN:CB_MOZPLUGIN_CODE";
Pos = MAP_APPFONT ( 12 , 14 ) ;
Size = MAP_APPFONT ( 236 , 10 ) ;
TabStop = TRUE ;
Text [ en-US ] = "~Display documents in browser" ;
};
};
TabPage RID_SVXPAGE_INET_PROXY TabPage RID_SVXPAGE_INET_PROXY
{ {
HelpId = HID_OPTIONS_PROXY ; HelpId = HID_OPTIONS_PROXY ;
......
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkFrame" id="OptBrowserPage">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="border_width">6</property>
<property name="label_xalign">0</property>
<property name="shadow_type">none</property>
<child>
<object class="GtkAlignment" id="alignment1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="top_padding">6</property>
<property name="left_padding">12</property>
<child>
<object class="GtkCheckButton" id="display">
<property name="label" translatable="yes">_Display documents in browser</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="valign">start</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</property>
</object>
</child>
</object>
</child>
<child type="label">
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Browser Plug-in</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
</child>
</object>
</interface>
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