summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Dominguez <venccsralph@gmail.com>2012-08-08 07:33:02 -0430
committerRafael Dominguez <venccsralph@gmail.com>2012-08-08 10:25:54 -0430
commit444df12235edf280f783ed06a3c4c05e1ea0dd92 (patch)
tree8da1d7913aed7a6972320d8c65b598f150fc06a8
parent107ee398701e543bcf3045a1cda4128e2b3b63c7 (diff)
Store template repositories urls and names in user settings.
Change-Id: I8fea48ede99e3a5568ac248b7dddc8475fae4280
-rw-r--r--officecfg/registry/data/org/openoffice/Office/Common.xcu6
-rw-r--r--officecfg/registry/schema/org/openoffice/Office/Common.xcs10
-rw-r--r--sfx2/source/control/templateonlineview.cxx8
3 files changed, 20 insertions, 4 deletions
diff --git a/officecfg/registry/data/org/openoffice/Office/Common.xcu b/officecfg/registry/data/org/openoffice/Office/Common.xcu
index ad1b88fe5c17..45e8b3551d07 100644
--- a/officecfg/registry/data/org/openoffice/Office/Common.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/Common.xcu
@@ -590,6 +590,12 @@
<value oor:external=
"com.sun.star.configuration.backend.GconfBackend SymbolSet"/>
</prop>
+ <prop oor:name="TemplateRepositoryUrls">
+ <value/>
+ </prop>
+ <prop oor:name="TemplateRepositoryNames">
+ <value/>
+ </prop>
<prop oor:name="FilePickerPlacesUrls">
<value/>
</prop>
diff --git a/officecfg/registry/schema/org/openoffice/Office/Common.xcs b/officecfg/registry/schema/org/openoffice/Office/Common.xcs
index a0d672bc2248..2c27fdfa75a0 100644
--- a/officecfg/registry/schema/org/openoffice/Office/Common.xcs
+++ b/officecfg/registry/schema/org/openoffice/Office/Common.xcs
@@ -6767,6 +6767,16 @@
</info>
<value>true</value>
</prop>
+ <prop oor:name="TemplateRepositoryUrls" oor:type="oor:string-list" oor:nillable="false">
+ <info>
+ <desc>List of template repositories URLs bookmarked in the template manager dialog.</desc>
+ </info>
+ </prop>
+ <prop oor:name="TemplateRepositoryNames" oor:type="oor:string-list" oor:nillable="false">
+ <info>
+ <desc>List of template repositories names bookmarked in the template manager dialog.</desc>
+ </info>
+ </prop>
<prop oor:name="FilePickerPlacesUrls" oor:type="oor:string-list" oor:nillable="false">
<info>
<desc>List of URLs of the places the user bookmarked in the file picker dialog.</desc>
diff --git a/sfx2/source/control/templateonlineview.cxx b/sfx2/source/control/templateonlineview.cxx
index 8ee9fc54aa50..a3428f411473 100644
--- a/sfx2/source/control/templateonlineview.cxx
+++ b/sfx2/source/control/templateonlineview.cxx
@@ -77,10 +77,10 @@ void TemplateOnlineView::Populate()
// Load from user settings
com::sun::star::uno::Sequence< rtl::OUString > aUrls =
- officecfg::Office::Common::Misc::FilePickerPlacesUrls::get(m_context);
+ officecfg::Office::Common::Misc::TemplateRepositoryUrls::get(m_context);
com::sun::star::uno::Sequence< rtl::OUString > aNames =
- officecfg::Office::Common::Misc::FilePickerPlacesNames::get(m_context);
+ officecfg::Office::Common::Misc::TemplateRepositoryNames::get(m_context);
for (sal_Int32 i = 0; i < aUrls.getLength() && i < aNames.getLength(); ++i)
{
@@ -284,8 +284,8 @@ void TemplateOnlineView::syncRepositories() const
aNames[i] = maRepositories[i]->maTitle;
}
- officecfg::Office::Common::Misc::FilePickerPlacesUrls::set(aUrls, batch, pContext);
- officecfg::Office::Common::Misc::FilePickerPlacesNames::set(aNames, batch, pContext);
+ officecfg::Office::Common::Misc::TemplateRepositoryUrls::set(aUrls, batch, pContext);
+ officecfg::Office::Common::Misc::TemplateRepositoryNames::set(aNames, batch, pContext);
batch->commit();
}
}