Interested in contributing to LibreOffice GSOC 2016

2016-03-09 Thread Aybuke Ozdemir
Hi Everyone,

I'm interested in "Rework of the Tools -> Customization... dialog" project
for GSOC. I read this explanation:
http://user-prompt.com/de/how-to-make-libreoffice-customization-usable/

My accepted patches for LibreOffice until now:
https://gerrit.libreoffice.org/#/q/aybuke

I set up development environment with Glade and read pages[1,2,3]

As a beginning I thought of adding search functionality to Menu -> Add ->
Add Command window. But if you suggest something else, i can work on that
of course.

[1]https://wiki.documentfoundation.org/Development/WidgetLayout
[2]
https://wiki.documentfoundation.org/Development/Create_new_dialog_in_Impress
[3]
http://conference.libreoffice.org/assets/Conference/Aarhus/Slides/bubli-uitutorial.pdf

Best Regards.

-- 
Aybüke Özdemir
https://about.me/aybukeozdemir
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice-commits] core.git: sfx2/source

2016-01-10 Thread Aybuke Ozdemir
 sfx2/source/control/unoctitm.cxx |   30 +-
 1 file changed, 25 insertions(+), 5 deletions(-)

New commits:
commit d61c16966b017abdbebf5ec0c2131de5a91c67f8
Author: Aybuke Ozdemir <aybuke@gmail.com>
Date:   Sat Dec 5 16:19:56 2015 +0200

tdf#95505 Dump usage stats to text file

1de031c94b2ef9c4ae45a8906b250a95d3c47c47

Change-Id: I1de031c94b2ef9c4ae45a8906b250a95d3c47c47
Reviewed-on: https://gerrit.libreoffice.org/20413
Reviewed-by: jan iversen <j...@documentfoundation.org>
Tested-by: jan iversen <j...@documentfoundation.org>
Tested-by: Jenkins <c...@libreoffice.org>

diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index 8645826..1a82906 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -65,6 +65,9 @@
 #include "statcach.hxx"
 #include 
 #include 
+#include 
+#include 
+#include 
 
 #include 
 #include 
@@ -74,6 +77,8 @@
 #include 
 #include 
 
+#define USAGE "file:///~/.config/libreofficedev/4/user/usage.txt"
+
 using namespace ::com::sun::star;
 using namespace ::com::sun::star::uno;
 using namespace ::com::sun::star::util;
@@ -640,13 +645,28 @@ void UsageInfo::save()
 if (!mbIsCollecting)
 return;
 
-// TODO - do a real saving here, not only dump to the screen
-std::cerr << "Usage information:" << std::endl;
-for (UsageMap::const_iterator it = maUsage.begin(); it != maUsage.end(); 
++it)
+const OUString path(USAGE);
+osl::File file(path);
+
+if( file.open(osl_File_OpenFlag_Read | osl_File_OpenFlag_Write | 
osl_File_OpenFlag_Create) == osl::File::E_None )
 {
-std::cerr << it->first << ';' << it->second << std::endl;
+OString jan = "Usage information:\n";
+
+for (UsageMap::const_iterator it = maUsage.begin(); it != 
maUsage.end(); ++it)
+jan += "\n" + it->first.toUtf8() + ";" + 
OString::number(it->second);
+
+jan += "\nUsage information end\n";
+sal_uInt64 written = 0;
+file.write(jan.pData->buffer, jan.getLength(), written);
+file.close();
+}
+
+else{
+std::cerr << "Usage information:" << std::endl;
+for (UsageMap::const_iterator it = maUsage.begin(); it != 
maUsage.end(); ++it)
+std::cerr << it->first << ';' << it->second << std::endl;
+std::cerr << "Usage information end" << std::endl;
 }
-std::cerr << "Usage information end" << std::endl;
 }
 
 class theUsageInfo : public rtl::Static<UsageInfo, theUsageInfo> {};
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-5-1' - svtools/source

2015-12-06 Thread Aybuke Ozdemir
 svtools/source/config/colorcfg.cxx |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 52ac1a717b1869cb7d2ee710f50a15e216ced76c
Author: Aybuke Ozdemir <aybuke@gmail.com>
Date:   Sat Oct 31 19:31:38 2015 +0200

tdf#87933 easier visibility of automatic page breaks

Change-Id: I1d81b740bf67402b7f59b572bbd8a9fbc4a989f2
Reviewed-on: https://gerrit.libreoffice.org/19706
Reviewed-by: Yousuf Philips <philip...@hotmail.com>
Tested-by: Yousuf Philips <philip...@hotmail.com>
Reviewed-by: Adolfo Jayme Barrientos <fit...@ubuntu.com>
Reviewed-by: Julien Nabet <serval2...@yahoo.fr>
(cherry picked from commit 22d4b98da59c9821e72cc1d4f9d94d57b7a12d51)
Reviewed-on: https://gerrit.libreoffice.org/20421
Tested-by: Adolfo Jayme Barrientos <fit...@ubuntu.com>

diff --git a/svtools/source/config/colorcfg.cxx 
b/svtools/source/config/colorcfg.cxx
index 8a1bd58..fcaf46a 100644
--- a/svtools/source/config/colorcfg.cxx
+++ b/svtools/source/config/colorcfg.cxx
@@ -437,10 +437,10 @@ Color ColorConfig::GetDefaultColor(ColorConfigEntry 
eEntry)
 COL_LIGHTGREEN, // HTMLCOMMENT
 COL_LIGHTRED, // HTMLKEYWORD
 COL_GRAY, // HTMLUNKNOWN
-COL_LIGHTGRAY, // CALCGRID
+0xcc, // CALCGRID
 COL_BLUE, //CALCPAGEBREAK
 0x2300dc, //CALCPAGEBREAKMANUAL
-COL_GRAY, //CALCPAGEBREAKAUTOMATIC
+0x66, //CALCPAGEBREAKAUTOMATIC
 COL_LIGHTBLUE, // CALCDETECTIVE
 COL_LIGHTRED, // CALCDETECTIVEERROR
 0xef0fff, // CALCREFERENCE
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: svtools/source

2015-12-06 Thread Aybuke Ozdemir
 svtools/source/config/colorcfg.cxx |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 22d4b98da59c9821e72cc1d4f9d94d57b7a12d51
Author: Aybuke Ozdemir <aybuke@gmail.com>
Date:   Sat Oct 31 19:31:38 2015 +0200

tdf#87933 easier visibility of automatic page breaks

Change-Id: I1d81b740bf67402b7f59b572bbd8a9fbc4a989f2
Reviewed-on: https://gerrit.libreoffice.org/19706
Reviewed-by: Yousuf Philips <philip...@hotmail.com>
Tested-by: Yousuf Philips <philip...@hotmail.com>
Reviewed-by: Adolfo Jayme Barrientos <fit...@ubuntu.com>
Reviewed-by: Julien Nabet <serval2...@yahoo.fr>

diff --git a/svtools/source/config/colorcfg.cxx 
b/svtools/source/config/colorcfg.cxx
index 8a1bd58..fcaf46a 100644
--- a/svtools/source/config/colorcfg.cxx
+++ b/svtools/source/config/colorcfg.cxx
@@ -437,10 +437,10 @@ Color ColorConfig::GetDefaultColor(ColorConfigEntry 
eEntry)
 COL_LIGHTGREEN, // HTMLCOMMENT
 COL_LIGHTRED, // HTMLKEYWORD
 COL_GRAY, // HTMLUNKNOWN
-COL_LIGHTGRAY, // CALCGRID
+0xcc, // CALCGRID
 COL_BLUE, //CALCPAGEBREAK
 0x2300dc, //CALCPAGEBREAKMANUAL
-COL_GRAY, //CALCPAGEBREAKAUTOMATIC
+0x66, //CALCPAGEBREAKAUTOMATIC
 COL_LIGHTBLUE, // CALCDETECTIVE
 COL_LIGHTRED, // CALCDETECTIVEERROR
 0xef0fff, // CALCREFERENCE
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - officecfg/registry svx/source

2015-10-30 Thread Aybuke Ozdemir
 officecfg/registry/schema/org/openoffice/Office/Common.xcs |2 -
 svx/source/gallery2/galctrl.cxx|   20 +++--
 svx/source/tbxctrls/fontworkgallery.cxx|   17 ++-
 3 files changed, 10 insertions(+), 29 deletions(-)

New commits:
commit 813b11a96e4c1243c4d3533eee148c49d8926ecc
Author: Aybuke Ozdemir <aybuke@gmail.com>
Date:   Fri Oct 23 23:12:08 2015 +0300

tdf#88548 fontwork gallery always have transparent/checkered background.

Change-Id: I8995ef12edb64c14788ba3a2c3c1c2ceb3775b11
(cherry picked from commit 9b322ace3b8f316104f7138b082d2ffdb282c816)
Reviewed-on: https://gerrit.libreoffice.org/19642
Reviewed-by: Katarina Behrens <katarina.behr...@cib.de>
Tested-by: Katarina Behrens <katarina.behr...@cib.de>

diff --git a/officecfg/registry/schema/org/openoffice/Office/Common.xcs 
b/officecfg/registry/schema/org/openoffice/Office/Common.xcs
index 3c1f592..ad22cd2 100644
--- a/officecfg/registry/schema/org/openoffice/Office/Common.xcs
+++ b/officecfg/registry/schema/org/openoffice/Office/Common.xcs
@@ -6405,7 +6405,7 @@
   
   Shows previews with shining through checkered background to 
visualize transparency.
  
- true
+ false

 
 
diff --git a/svx/source/gallery2/galctrl.cxx b/svx/source/gallery2/galctrl.cxx
index e05b8ab..f79ca3cf 100644
--- a/svx/source/gallery2/galctrl.cxx
+++ b/svx/source/gallery2/galctrl.cxx
@@ -257,23 +257,13 @@ void GalleryPreview::PreviewMedia( const INetURLObject& 
rURL )
 
 void drawTransparenceBackground(vcl::RenderContext& rOut, const Point& rPos, 
const Size& rSize)
 {
-const StyleSettings& rStyleSettings = 
Application::GetSettings().GetStyleSettings();
 
-if (rStyleSettings.GetPreviewUsesCheckeredBackground())
-{
-// draw checkered background
-static const sal_uInt32 nLen(8);
-static const Color aW(COL_WHITE);
-static const Color aG(0xef, 0xef, 0xef);
+// draw checkered background
+static const sal_uInt32 nLen(8);
+static const Color aW(COL_WHITE);
+static const Color aG(0xef, 0xef, 0xef);
 
-rOut.DrawCheckered(rPos, rSize, nLen, aW, aG);
-}
-else
-{
-rOut.SetLineColor();
-rOut.SetFillColor(rStyleSettings.GetFieldColor());
-rOut.DrawRect(Rectangle(rPos, rSize));
-}
+rOut.DrawCheckered(rPos, rSize, nLen, aW, aG);
 }
 
 GalleryIconView::GalleryIconView( GalleryBrowser2* pParent, GalleryTheme* 
pTheme ) :
diff --git a/svx/source/tbxctrls/fontworkgallery.cxx 
b/svx/source/tbxctrls/fontworkgallery.cxx
index 2cd3fa3..16fd43e 100644
--- a/svx/source/tbxctrls/fontworkgallery.cxx
+++ b/svx/source/tbxctrls/fontworkgallery.cxx
@@ -116,7 +116,6 @@ void FontWorkGalleryDialog::initFavorites(sal_uInt16 
nThemeId)
 
 sal_uInt32 nModelPos;
 FmFormModel *pModel = NULL;
-const StyleSettings& rStyleSettings = 
Application::GetSettings().GetStyleSettings();
 
 for( nModelPos = 0; nModelPos < nFavCount; nModelPos++ )
 {
@@ -134,19 +133,11 @@ void FontWorkGalleryDialog::initFavorites(sal_uInt16 
nThemeId)
 
 pVDev->SetOutputSizePixel(aSize);
 
-if(rStyleSettings.GetPreviewUsesCheckeredBackground())
-{
-static const sal_uInt32 nLen(8);
-static const Color aW(COL_WHITE);
-static const Color aG(0xef, 0xef, 0xef);
+static const sal_uInt32 nLen(8);
+static const Color aW(COL_WHITE);
+static const Color aG(0xef, 0xef, 0xef);
 
-pVDev->DrawCheckered(aNull, aSize, nLen, aW, aG);
-}
-else
-{
-pVDev->SetBackground(rStyleSettings.GetFieldColor());
-pVDev->Erase();
-}
+pVDev->DrawCheckered(aNull, aSize, nLen, aW, aG);
 
 pVDev->DrawBitmapEx(aNull, aThumb);
 maFavoritesHorizontal.push_back(pVDev->GetBitmap(aNull, aSize));
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: officecfg/registry svx/source

2015-10-27 Thread Aybuke Ozdemir
 officecfg/registry/schema/org/openoffice/Office/Common.xcs |2 -
 svx/source/gallery2/galctrl.cxx|   20 +++--
 svx/source/tbxctrls/fontworkgallery.cxx|   17 ++-
 3 files changed, 10 insertions(+), 29 deletions(-)

New commits:
commit 9b322ace3b8f316104f7138b082d2ffdb282c816
Author: Aybuke Ozdemir <aybuke@gmail.com>
Date:   Fri Oct 23 23:12:08 2015 +0300

tdf#88548 fontwork gallery always have transparent/checkered background.

Change-Id: I8995ef12edb64c14788ba3a2c3c1c2ceb3775b11

diff --git a/officecfg/registry/schema/org/openoffice/Office/Common.xcs 
b/officecfg/registry/schema/org/openoffice/Office/Common.xcs
index ac5b634..d693fc7 100644
--- a/officecfg/registry/schema/org/openoffice/Office/Common.xcs
+++ b/officecfg/registry/schema/org/openoffice/Office/Common.xcs
@@ -6359,7 +6359,7 @@
   
   Shows previews with shining through checkered background to 
visualize transparency.
  
- true
+ false

 
 
diff --git a/svx/source/gallery2/galctrl.cxx b/svx/source/gallery2/galctrl.cxx
index 69da8fe..0cf63b8 100644
--- a/svx/source/gallery2/galctrl.cxx
+++ b/svx/source/gallery2/galctrl.cxx
@@ -257,23 +257,13 @@ void GalleryPreview::PreviewMedia( const INetURLObject& 
rURL )
 
 void drawTransparenceBackground(vcl::RenderContext& rOut, const Point& rPos, 
const Size& rSize)
 {
-const StyleSettings& rStyleSettings = 
Application::GetSettings().GetStyleSettings();
 
-if (rStyleSettings.GetPreviewUsesCheckeredBackground())
-{
-// draw checkered background
-static const sal_uInt32 nLen(8);
-static const Color aW(COL_WHITE);
-static const Color aG(0xef, 0xef, 0xef);
+// draw checkered background
+static const sal_uInt32 nLen(8);
+static const Color aW(COL_WHITE);
+static const Color aG(0xef, 0xef, 0xef);
 
-rOut.DrawCheckered(rPos, rSize, nLen, aW, aG);
-}
-else
-{
-rOut.SetLineColor();
-rOut.SetFillColor(rStyleSettings.GetFieldColor());
-rOut.DrawRect(Rectangle(rPos, rSize));
-}
+rOut.DrawCheckered(rPos, rSize, nLen, aW, aG);
 }
 
 GalleryIconView::GalleryIconView( GalleryBrowser2* pParent, GalleryTheme* 
pTheme ) :
diff --git a/svx/source/tbxctrls/fontworkgallery.cxx 
b/svx/source/tbxctrls/fontworkgallery.cxx
index d8fde7f..ac814fa 100644
--- a/svx/source/tbxctrls/fontworkgallery.cxx
+++ b/svx/source/tbxctrls/fontworkgallery.cxx
@@ -115,7 +115,6 @@ void FontWorkGalleryDialog::initFavorites(sal_uInt16 
nThemeId)
 
 sal_uInt32 nModelPos;
 FmFormModel *pModel = NULL;
-const StyleSettings& rStyleSettings = 
Application::GetSettings().GetStyleSettings();
 
 for( nModelPos = 0; nModelPos < nFavCount; nModelPos++ )
 {
@@ -133,19 +132,11 @@ void FontWorkGalleryDialog::initFavorites(sal_uInt16 
nThemeId)
 
 pVDev->SetOutputSizePixel(aSize);
 
-if(rStyleSettings.GetPreviewUsesCheckeredBackground())
-{
-static const sal_uInt32 nLen(8);
-static const Color aW(COL_WHITE);
-static const Color aG(0xef, 0xef, 0xef);
+static const sal_uInt32 nLen(8);
+static const Color aW(COL_WHITE);
+static const Color aG(0xef, 0xef, 0xef);
 
-pVDev->DrawCheckered(aNull, aSize, nLen, aW, aG);
-}
-else
-{
-pVDev->SetBackground(rStyleSettings.GetFieldColor());
-pVDev->Erase();
-}
+pVDev->DrawCheckered(aNull, aSize, nLen, aW, aG);
 
 pVDev->DrawBitmapEx(aNull, aThumb);
 maFavoritesHorizontal.push_back(pVDev->GetBitmap(aNull, aSize));
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: tools/source

2015-10-08 Thread Aybuke Ozdemir
 tools/source/generic/config.cxx |7 +--
 1 file changed, 1 insertion(+), 6 deletions(-)

New commits:
commit bbfc031333aa74fbd4c6362c33405c49c22283f3
Author: Aybuke Ozdemir <aybuke@gmail.com>
Date:   Wed Oct 7 14:48:57 2015 +0300

tdf#57950 Replace chained O(U)StringBuffer::append() with operator+

Change-Id: Id9bc24079d3840277d6fc10197a4f27373f4bd25
Reviewed-on: https://gerrit.libreoffice.org/19225
Reviewed-by: Noel Grandin <noelgran...@gmail.com>
Tested-by: Noel Grandin <noelgran...@gmail.com>

diff --git a/tools/source/generic/config.cxx b/tools/source/generic/config.cxx
index 257721e..f1a638e 100644
--- a/tools/source/generic/config.cxx
+++ b/tools/source/generic/config.cxx
@@ -815,12 +815,7 @@ OString Config::ReadKey(const OString& rKey) const
 OString Config::ReadKey(const OString& rKey, const OString& rDefault) const
 {
 #ifdef DBG_UTIL
-OStringBuffer aTraceStr("Config::ReadKey( ");
-aTraceStr.append(rKey);
-aTraceStr.append(" ) from ");
-aTraceStr.append(GetGroup());
-aTraceStr.append(" in ");
-aTraceStr.append(OUStringToOString(maFileName, RTL_TEXTENCODING_UTF8));
+OString aTraceStr("Config::ReadKey( " + rKey + " ) from " + GetGroup() + " 
in " + OUStringToOString(maFileName, RTL_TEXTENCODING_UTF8));
 OSL_TRACE("%s", aTraceStr.getStr());
 #endif
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits