summaryrefslogtreecommitdiff
path: root/odk/examples/cpp
diff options
context:
space:
mode:
authorAlexander Wilms <f.alexander.wilms@gmail.com>2014-02-25 19:24:31 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-02-26 10:02:49 -0600
commit99e3bd454bf607c5b561e2dc8e0f7a04f2bc28ed (patch)
tree929fae9a49326c5c92763fdd7c6e3f0def229e0a /odk/examples/cpp
parent91ff31b6f7c2fd217518f54396bbca6d4bde98a3 (diff)
Remove visual noise from odk
Change-Id: I5638e2d37827c2d7322b72bf6ce176ac843639f1 Reviewed-on: https://gerrit.libreoffice.org/8285 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'odk/examples/cpp')
-rw-r--r--odk/examples/cpp/DocumentLoader/DocumentLoader.cxx2
-rw-r--r--odk/examples/cpp/counter/counter.cxx4
-rw-r--r--odk/examples/cpp/counter/countermain.cxx2
-rw-r--r--odk/examples/cpp/custompanel/ctp_factory.cxx8
-rw-r--r--odk/examples/cpp/custompanel/ctp_factory.hxx12
-rw-r--r--odk/examples/cpp/custompanel/ctp_panel.cxx20
-rw-r--r--odk/examples/cpp/custompanel/ctp_panel.hxx16
-rw-r--r--odk/examples/cpp/custompanel/ctp_services.cxx12
8 files changed, 38 insertions, 38 deletions
diff --git a/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx b/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx
index 0fae160a15a9..77c3c2bc7eb7 100644
--- a/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx
+++ b/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx
@@ -70,7 +70,7 @@ using namespace com::sun::star::registry;
using ::rtl::OUString;
using ::rtl::OUStringToOString;
-//============================================================================
+
SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
{
OUString sConnectionString("uno:socket,host=localhost,port=2083;urp;StarOffice.ServiceManager");
diff --git a/odk/examples/cpp/counter/counter.cxx b/odk/examples/cpp/counter/counter.cxx
index 9fc6326a466f..227092a58d3f 100644
--- a/odk/examples/cpp/counter/counter.cxx
+++ b/odk/examples/cpp/counter/counter.cxx
@@ -148,9 +148,9 @@ Reference< XInterface > SAL_CALL MyCounterImpl_create(
}
-//#########################################################################
+
//#### EXPORTED ###########################################################
-//#########################################################################
+
/**
* This function is called to get service factories for an implementation.
diff --git a/odk/examples/cpp/counter/countermain.cxx b/odk/examples/cpp/counter/countermain.cxx
index 6cbde3a278f2..2c510d9cc931 100644
--- a/odk/examples/cpp/counter/countermain.cxx
+++ b/odk/examples/cpp/counter/countermain.cxx
@@ -67,7 +67,7 @@ using namespace com::sun::star::lang;
using namespace ::rtl;
-//=======================================================================
+
SAL_IMPLEMENT_MAIN()
{
try {
diff --git a/odk/examples/cpp/custompanel/ctp_factory.cxx b/odk/examples/cpp/custompanel/ctp_factory.cxx
index 7ff959a47586..febde8dbf944 100644
--- a/odk/examples/cpp/custompanel/ctp_factory.cxx
+++ b/odk/examples/cpp/custompanel/ctp_factory.cxx
@@ -48,9 +48,9 @@ namespace sd { namespace colortoolpanel
using ::com::sun::star::container::NoSuchElementException;
using ::com::sun::star::awt::XWindow;
- //==================================================================================================================
+
//= ToolPanelFactory
- //==================================================================================================================
+
ToolPanelFactory::ToolPanelFactory( const Reference< XComponentContext >& i_rContext )
:m_xContext( i_rContext )
@@ -133,8 +133,8 @@ namespace sd { namespace colortoolpanel
return *( new ToolPanelFactory( i_rContext ) );
}
-//......................................................................................................................
+
} } // namespace sd::colortoolpanel
-//......................................................................................................................
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/odk/examples/cpp/custompanel/ctp_factory.hxx b/odk/examples/cpp/custompanel/ctp_factory.hxx
index 2399807b2106..09894068ce39 100644
--- a/odk/examples/cpp/custompanel/ctp_factory.hxx
+++ b/odk/examples/cpp/custompanel/ctp_factory.hxx
@@ -27,14 +27,14 @@
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/basemutex.hxx>
-//......................................................................................................................
+
namespace sd { namespace colortoolpanel
{
-//......................................................................................................................
- //==================================================================================================================
+
+
//= ToolPanelFactory
- //==================================================================================================================
+
typedef ::cppu::WeakImplHelper2 < ::com::sun::star::ui::XUIElementFactory
, ::com::sun::star::lang::XServiceInfo
> ToolPanelFactory_Base;
@@ -65,9 +65,9 @@ namespace sd { namespace colortoolpanel
m_xContext;
};
-//......................................................................................................................
+
} } // namespace sd::colortoolpanel
-//......................................................................................................................
+
#endif // SD_WORKBENCH_CTP_FACTORY_HXX
diff --git a/odk/examples/cpp/custompanel/ctp_panel.cxx b/odk/examples/cpp/custompanel/ctp_panel.cxx
index e486de7e4d79..78b68635470a 100644
--- a/odk/examples/cpp/custompanel/ctp_panel.cxx
+++ b/odk/examples/cpp/custompanel/ctp_panel.cxx
@@ -32,10 +32,10 @@
#include <osl/diagnose.h>
-//......................................................................................................................
+
namespace sd { namespace colortoolpanel
{
-//......................................................................................................................
+
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::XInterface;
@@ -68,9 +68,9 @@ namespace sd { namespace colortoolpanel
namespace PosSize = ::com::sun::star::awt::PosSize;
namespace UIElementType = ::com::sun::star::ui::UIElementType;
- //==================================================================================================================
+
//= helpers
- //==================================================================================================================
+
namespace
{
Reference< XWindow > lcl_createPlainWindow_nothrow( const Reference< XComponentContext >& i_rContext,
@@ -97,9 +97,9 @@ namespace sd { namespace colortoolpanel
return NULL;
}
}
- //==================================================================================================================
+
//= class SingleColorPanel
- //==================================================================================================================
+
SingleColorPanel::SingleColorPanel( const Reference< XComponentContext >& i_rContext, const Reference< XWindow >& i_rParentWindow, const ::sal_Int32 i_nPanelColor )
:SingleColorPanel_Base( m_aMutex )
@@ -195,9 +195,9 @@ namespace sd { namespace colortoolpanel
m_xWindow.clear();
}
- //==================================================================================================================
+
//= PanelUIElement
- //==================================================================================================================
+
PanelUIElement::PanelUIElement( const Reference< XComponentContext >& i_rContext, const Reference< XWindow >& i_rParentWindow,
const OUString& i_rResourceURL, const ::sal_Int32 i_nPanelColor )
@@ -248,8 +248,8 @@ namespace sd { namespace colortoolpanel
xPanelComponent->dispose();
}
-//......................................................................................................................
+
} } // namespace sd::colortoolpanel
-//......................................................................................................................
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/odk/examples/cpp/custompanel/ctp_panel.hxx b/odk/examples/cpp/custompanel/ctp_panel.hxx
index 8ef6aa5fc6e5..1e9566990105 100644
--- a/odk/examples/cpp/custompanel/ctp_panel.hxx
+++ b/odk/examples/cpp/custompanel/ctp_panel.hxx
@@ -31,14 +31,14 @@
#include <cppuhelper/basemutex.hxx>
-//......................................................................................................................
+
namespace sd { namespace colortoolpanel
{
-//......................................................................................................................
- //==================================================================================================================
+
+
//= SingleColorPanel
- //==================================================================================================================
+
typedef ::cppu::WeakComponentImplHelper2 < ::com::sun::star::ui::XToolPanel
, ::com::sun::star::awt::XPaintListener
> SingleColorPanel_Base;
@@ -73,9 +73,9 @@ namespace sd { namespace colortoolpanel
const sal_Int32 m_nPanelColor;
};
- //==================================================================================================================
+
//= PanelUIElement
- //==================================================================================================================
+
typedef ::cppu::WeakComponentImplHelper1 < ::com::sun::star::ui::XUIElement
> PanelUIElement_Base;
class PanelUIElement :public ::cppu::BaseMutex
@@ -107,9 +107,9 @@ namespace sd { namespace colortoolpanel
m_xToolPanel;
};
-//......................................................................................................................
+
} } // namespace sd::colortoolpanel
-//......................................................................................................................
+
#endif // SD_WORKBENCH_CTP_PANEL_HXX
diff --git a/odk/examples/cpp/custompanel/ctp_services.cxx b/odk/examples/cpp/custompanel/ctp_services.cxx
index d67dddd1aa81..4b96e2b14e55 100644
--- a/odk/examples/cpp/custompanel/ctp_services.cxx
+++ b/odk/examples/cpp/custompanel/ctp_services.cxx
@@ -22,15 +22,15 @@
#include <cppuhelper/implementationentry.hxx>
#include <uno/lbnames.h>
-//......................................................................................................................
+
namespace sd { namespace colortoolpanel
{
-//......................................................................................................................
- //==================================================================================================================
+
+
//= descriptors for the services implemented in this component
- //==================================================================================================================
+
static struct ::cppu::ImplementationEntry s_aServiceEntries[] =
{
{
@@ -42,9 +42,9 @@ namespace sd { namespace colortoolpanel
{ 0, 0, 0, 0, 0, 0 }
};
-//......................................................................................................................
+
} } // namespace sd::colortoolpanel
-//......................................................................................................................
+
extern "C"
{