27 Kasım 2015 Cuma

LibreOffice için Eclipse IDE Desteği

LibreOffice çok büyük bir proje olduğundan içindeki bir kısmı anlamaya çalışırken grepler içinde kaybolmamak işten değil. Burada yardımımıza IDE'ler yetişiyor. IDE'lerin yeteneklerini kullanarak bir sınıfın nerden miras alındığı, bir değişkenin nerede tanımladığı gibi şeyler çok kolaylaşıyor. Kod tamamlama özelliğini de atlamamak lazım tabi.

Ben bir süredir LibreOffice'in Eclipse ile çalışabilmesiyle ilgili bir öneri üzerinde çalışıyordum. Bugün kabul edilen yamamla birlikte bu iş için büyük bir adım attım. Gönderdiğim yamayı buradan incelebilirsiniz:

https://gerrit.libreoffice.org/#/c/20239/

5.2 sürümüne eklenecek olan bu yama LibreOffice içindeki include satırlarının doğru bir şekilde ayrıştırılabilmesini ve doğru bir şeklide derlenebilmesini sağlıyor

LibreOffice'in Eclipse ile kullanımı aşağıdaki gibidir:
  • LibreOffice'in kaynak kodunu burada tarif edildiği gibi derleyin.
  • Ardından aynı dizinde  make eclipsecdt-ide-integration komutunu çalıştırın.
  • Eclipse CDT ile aşağıdaki ekran görüntüsündeki gibi yeni bir proje oluşturun.
  •  Dosya sisteminizdeki LibreOffice modüllerinden birini seçin ve ekran görüntüsündeki ayarlar ile modülü Eclipse'e yükleyin.


  •  Yüklediğiniz modülün üzerine sağ tıklayıp import'u seçtiğinizde resimdeki gibi ayar dosyası seçeneğini seçin.
  • Yüklemiş olduğunuz modülün içindeki eclipsesettingfile.xml dosyasını seçin.
 
Artık projenizin içide altı çizili hiç include satırı kalmamış olacak. Şimdi makro tanımlamalarıyla ilgili kısım üzerinde çalışıyorum. İlerledikçe bu bloğu güncelleyeceğim.

12 Kasım 2015 Perşembe

Open Source Conference in Turkey

        Open Source Conference was organized this year for the first time in Ankara - capital of Turkey -. Conference is going to take 5 days, it's started 9th november and it's going to end 13th november. The conference aims to bring together key people in the public sector, to announce works on open source and free software like Pardus, enGerek, Lider Ahenk and to raise awareness. The Conference is local and unfortunately it hasn't any English websites. I hope they will add soon.

        The first day of the conference i've given a talk about LibreOffice. LibreOffice is one of the most important points for Turkey. LibreOffice is an important step for spreading of free softwares. Because this office suit can run on GNU/Linux, MacOs, and Windows. LibreOffice will take an important role in the migration to free operating systems.

        There was no active work on LibreOffice in Turkey until recently. Now there is a team in my University who works for LibreOffice. We are studying to learn LibreOffice, fixing the bugs and spreading our work and LibreOffice by blog posts and other social media tools. Thanks to Necdet Yücel for advising us in this process and thanks to helpfull LibreOffice development team. 

        You can access my presentation from here. My presentation includes following parts:
  • Libreoffice history
        I've told StarOffice, OpenOffice, Oracles's mistakes, why LibreOffice forked from OpenOffice and The Document Foundation.
  • Why we should use LibreOffice in public?
        In this part i've told principles of free software and why are they important for us.
        LibreOffice Turkish translation rate is 100% and this is the most important necessity if we want to spread LibreOffice in Turkey. (Thanks to Turkish translation team)
        No licence fee. I tried to explain this part very carefully. Because nothing should take precedence over LibreOffice is a free software. LibreOffice needs money to continue too.
        LibreOffice is improved enough to cover the needs and changable according to neccessaries. 
  •  How to support LibreOffice. How to continue LibreOffice project?
        I've told that LibreOffice needs code contributions, translation, documentation and donation -for domains, servers, developers, events etc- 
  • Which countries migrated to LibreOffice?
        I've told the countries using LibreOffice direct or indirect, reasons of unsuccesful and successful migrations.
  • What are we doing for LibreOffice in Turkey
        I've told our (LibreOffice team in University) works . We are 10 people. I explained what should be done to increase this number.

We are planning to participate next years conference as libreoffice developers.

1 Kasım 2015 Pazar

LibreOffice Belge Önizlemesi Geliştirmesi

LibreOffice ile ilgili geliştirme sürecimiz heyecanla devam ediyor. Ben LibreOffice kullanıcı arayüzüyle ilgili bir geliştirme yaptım. Bu süreçte kelime işlemci bileşenini bolca kurcaladım.

Bugzilla kaydı şurada bulunan işte yapılması istenen kelime işlemci ile açılmış ya da hazırlanmış bir belgenin baskı önizleme modunda sayfalar arasında hareket etmeyle ilgiliydi. Çözüm için gönderdiğim 5.1 sürümünde kullanabileceğiniz özelliğin yamasını şuradan inceleyebilirsiniz:

https://gerrit.libreoffice.org/19335


Yamadan Önce


 


Gönderdiğim yamadan önce önizleme modundayken belgenin sayfaları arasında gezinmenin iki yolu vardı. Ya araç çubuğunda bulunan Belge başına git, Belge sonuna git, Öncekine git ve Sonrakine git düğmeleri, ya da farenin tekerleği ile gezinebiliyordunuz. Bu çok sayfalı belgelerde 200. sayfaya gitmek isteyen biri için zor bir yoldur.

Yamadan Sonra 



 


Gönderdiğim yamadan sonra araç çubuğuna eklediğim nümerik alan sayesinde artık 200. sayfaya gitmek isteyen direkt 200 yazarak gidebilecek.

Bu işlerle ilgili çok heyecanla çalışıyoruz. Bu yıl daha çok güzel işler çıkarmayı hedefliyoruz.