Skip to content

Commit

Permalink
Getting Started
Browse files Browse the repository at this point in the history
  • Loading branch information
KonduruKeerthi committed Jul 26, 2024
1 parent cf8cbbb commit ced96a4
Show file tree
Hide file tree
Showing 455 changed files with 241,872 additions and 52,975 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" />
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2"/>
</startup>
</configuration>
</configuration>
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@
<OutputType>Exe</OutputType>
<RootNamespace>Create_PowerPoint_presentation</RootNamespace>
<AssemblyName>Create-PowerPoint-presentation</AssemblyName>
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand All @@ -33,17 +34,17 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Syncfusion.Compression.Base, Version=23.1460.44.0, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
<HintPath>..\packages\Syncfusion.Compression.Base.23.1.44\lib\net46\Syncfusion.Compression.Base.dll</HintPath>
<Reference Include="Syncfusion.Compression.Base, Version=26.1462.42.0, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
<HintPath>..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll</HintPath>
</Reference>
<Reference Include="Syncfusion.Licensing, Version=23.1460.44.0, Culture=neutral, PublicKeyToken=632609b4d040f6b4, processorArchitecture=MSIL">
<HintPath>..\packages\Syncfusion.Licensing.23.1.44\lib\net46\Syncfusion.Licensing.dll</HintPath>
<Reference Include="Syncfusion.Licensing, Version=26.1462.42.0, Culture=neutral, PublicKeyToken=632609b4d040f6b4, processorArchitecture=MSIL">
<HintPath>..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll</HintPath>
</Reference>
<Reference Include="Syncfusion.OfficeChart.Base, Version=23.1460.44.0, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
<HintPath>..\packages\Syncfusion.OfficeChart.Base.23.1.44\lib\net46\Syncfusion.OfficeChart.Base.dll</HintPath>
<Reference Include="Syncfusion.OfficeChart.Base, Version=26.1462.42.0, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
<HintPath>..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll</HintPath>
</Reference>
<Reference Include="Syncfusion.Presentation.Base, Version=23.1460.44.0, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
<HintPath>..\packages\Syncfusion.Presentation.WinForms.23.1.44\lib\net46\Syncfusion.Presentation.Base.dll</HintPath>
<Reference Include="Syncfusion.Presentation.Base, Version=26.1462.42.0, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
<HintPath>..\packages\Syncfusion.Presentation.WinForms.26.1.42\lib\net462\Syncfusion.Presentation.Base.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Syncfusion.Compression.Base" version="23.1.44" targetFramework="net46" />
<package id="Syncfusion.Licensing" version="23.1.44" targetFramework="net46" />
<package id="Syncfusion.OfficeChart.Base" version="23.1.44" targetFramework="net46" />
<package id="Syncfusion.Presentation.WinForms" version="23.1.44" targetFramework="net46" />
<package id="Syncfusion.Compression.Base" version="26.1.42" targetFramework="net462" />
<package id="Syncfusion.Licensing" version="26.1.42" targetFramework="net462" />
<package id="Syncfusion.OfficeChart.Base" version="26.1.42" targetFramework="net462" />
<package id="Syncfusion.Presentation.WinForms" version="26.1.42" targetFramework="net462" />
</packages>
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0-android;net6.0-ios;net6.0-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows')) and '$(MSBuildRuntimeType)' == 'Full'">$(TargetFrameworks);net6.0-windows10.0.19041</TargetFrameworks>
<TargetFrameworks>net8.0-android;net8.0-ios;net8.0-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows')) and '$(MSBuildRuntimeType)' == 'Full'">$(TargetFrameworks);net8.0-windows10.0.19041</TargetFrameworks>
<OutputType>Exe</OutputType>
<RootNamespace>CreatePowerPoint</RootNamespace>
<UseMaui>true</UseMaui>
Expand All @@ -22,9 +22,9 @@
<!-- Required for C# Hot Reload -->
<UseInterpreter Condition="'$(Configuration)' == 'Debug'">True</UseInterpreter>

<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net6.0-ios'">14.2</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net6.0-maccatalyst'">14.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net6.0-android'">21.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net8.0-ios'">14.2</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net8.0-maccatalyst'">14.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net8.0-android'">21.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$(TargetFramework.Contains('-windows'))">10.0.17763.0</SupportedOSPlatformVersion>
<TargetPlatformMinVersion Condition="$(TargetFramework.Contains('-windows'))">10.0.17763.0</TargetPlatformMinVersion>
</PropertyGroup>
Expand All @@ -49,12 +49,6 @@
<ItemGroup>
<EmbeddedResource Include="Resources\Presentation\Image.png" />
</ItemGroup>

<ItemGroup Condition="$(TargetFramework.Contains('-windows'))">
<!-- Required - WinUI does not yet have buildTransitive for everything -->
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.1.3" />
<PackageReference Include="Microsoft.Graphics.Win2D" Version="1.0.3.1" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Syncfusion.Presentation.NET" Version="*" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31611.283
VisualStudioVersion = 17.10.34928.147
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Read-and-edit-presentation", "Read-and-edit-presentation\Read-and-edit-presentation.csproj", "{2336FE40-99FB-4C5F-BE9B-EAB143FBDBE9}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Read-and-edit-presentation", "Read-and-edit-presentation\Read-and-edit-presentation.csproj", "{2E7A6A34-C69C-4BE5-911A-2425998B1B62}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{2336FE40-99FB-4C5F-BE9B-EAB143FBDBE9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2336FE40-99FB-4C5F-BE9B-EAB143FBDBE9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2336FE40-99FB-4C5F-BE9B-EAB143FBDBE9}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{2336FE40-99FB-4C5F-BE9B-EAB143FBDBE9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2336FE40-99FB-4C5F-BE9B-EAB143FBDBE9}.Release|Any CPU.Build.0 = Release|Any CPU
{2336FE40-99FB-4C5F-BE9B-EAB143FBDBE9}.Release|Any CPU.Deploy.0 = Release|Any CPU
{2E7A6A34-C69C-4BE5-911A-2425998B1B62}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2E7A6A34-C69C-4BE5-911A-2425998B1B62}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2E7A6A34-C69C-4BE5-911A-2425998B1B62}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{2E7A6A34-C69C-4BE5-911A-2425998B1B62}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2E7A6A34-C69C-4BE5-911A-2425998B1B62}.Release|Any CPU.Build.0 = Release|Any CPU
{2E7A6A34-C69C-4BE5-911A-2425998B1B62}.Release|Any CPU.Deploy.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {61F7FB11-1E47-470C-91E2-47F8143E1572}
SolutionGuid = {8E5A62E4-3771-460A-9323-907ACCEAB6C5}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -1,25 +1,14 @@
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
<?xml version = "1.0" encoding = "UTF-8" ?>
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:ReadPowerPoint"
x:Class="ReadPowerPoint.App">
xmlns:local="clr-namespace:Read_and_edit_presentation"
x:Class="Read_and_edit_presentation.App">
<Application.Resources>
<ResourceDictionary>

<Color x:Key="PrimaryColor">#512bdf</Color>
<Color x:Key="SecondaryColor">White</Color>

<Style TargetType="Label">
<Setter Property="TextColor" Value="{DynamicResource PrimaryColor}" />
<Setter Property="FontFamily" Value="OpenSansRegular" />
</Style>

<Style TargetType="Button">
<Setter Property="TextColor" Value="{DynamicResource SecondaryColor}" />
<Setter Property="FontFamily" Value="OpenSansRegular" />
<Setter Property="BackgroundColor" Value="{DynamicResource PrimaryColor}" />
<Setter Property="Padding" Value="14,10" />
</Style>

<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Resources/Styles/Colors.xaml" />
<ResourceDictionary Source="Resources/Styles/Styles.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
namespace ReadPowerPoint;

public partial class App : Application
namespace Read_and_edit_presentation
{
public App()
{
InitializeComponent();
public partial class App : Application
{
public App()
{
InitializeComponent();

MainPage = new MainPage();
}
MainPage = new AppShell();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8" ?>
<Shell
x:Class="Read_and_edit_presentation.AppShell"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:Read_and_edit_presentation"
Shell.FlyoutBehavior="Disabled"
Title="Read_and_edit_presentation">

<ShellContent
Title="Home"
ContentTemplate="{DataTemplate local:MainPage}"
Route="MainPage" />

</Shell>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace Read_and_edit_presentation
{
public partial class AppShell : Shell
{
public AppShell()
{
InitializeComponent();
}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="ReadPowerPoint.MainPage"
BackgroundColor="{DynamicResource SecondaryColor}">
x:Class="Read_and_edit_presentation.MainPage">

<ScrollView>
<Grid RowSpacing="25" RowDefinitions="Auto,Auto,Auto,Auto,*"
Expand All @@ -15,4 +15,5 @@
HorizontalOptions="Center" />
</Grid>
</ScrollView>

</ContentPage>
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
using System;
using System.IO;
using Syncfusion.Presentation;
using System.Reflection;
using Microsoft.Maui.Controls;
using ReadPowerPoint.Services;
using Syncfusion.Presentation;

namespace ReadPowerPoint
namespace Read_and_edit_presentation
{
public partial class MainPage : ContentPage
{
int count = 0;

public MainPage()
{
InitializeComponent();
}

/// <summary>
/// Read and edit a PowerPoint file.
/// </summary>
private void ReadPowerPoint(object sender, EventArgs e)
{
Assembly assembly = typeof(MainPage).GetTypeInfo().Assembly;
//Opens an existing PowerPoint presentation.
using IPresentation pptxDoc = Presentation.Open(assembly.GetManifestResourceStream("ReadAndEditPowerPoint.Resources.Presentation.Sample.pptx"));
using IPresentation pptxDoc = Presentation.Open(assembly.GetManifestResourceStream("Read_and_edit_presentation.Resources.Presentation.Sample.pptx"));

//Gets the first slide from the PowerPoint presentation.
ISlide slide = pptxDoc.Slides[0];
Expand All @@ -42,5 +41,4 @@ private void ReadPowerPoint(object sender, EventArgs e)
}
}


}
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
namespace ReadPowerPoint;
using Microsoft.Extensions.Logging;

public static class MauiProgram
namespace Read_and_edit_presentation
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
});
public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
});

return builder.Build();
}
#if DEBUG
builder.Logging.AddDebug();
#endif

return builder.Build();
}
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="31" />
<application android:allowBackup="true" android:icon="@mipmap/appicon" android:roundIcon="@mipmap/appicon_round" android:supportsRtl="true">
<provider
<application android:allowBackup="true" android:icon="@mipmap/appicon" android:roundIcon="@mipmap/appicon_round" android:supportsRtl="true">
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.provider"
android:exported="false"
Expand All @@ -11,6 +10,7 @@
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
</provider>
</application>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
</application>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
using Android.Content.PM;
using Android.OS;

namespace ReadPowerPoint;

[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize)]
public class MainActivity : MauiAppCompatActivity
namespace Read_and_edit_presentation
{
[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, LaunchMode = LaunchMode.SingleTop, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
public class MainActivity : MauiAppCompatActivity
{
}
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
using Android.App;
using Android.Runtime;

namespace ReadPowerPoint;

[Application]
public class MainApplication : MauiApplication
namespace Read_and_edit_presentation
{
public MainApplication(IntPtr handle, JniHandleOwnership ownership)
: base(handle, ownership)
{
}
[Application]
public class MainApplication : MauiApplication
{
public MainApplication(IntPtr handle, JniHandleOwnership ownership)
: base(handle, ownership)
{
}

protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
using Foundation;

namespace ReadPowerPoint;

[Register("AppDelegate")]
public class AppDelegate : MauiUIApplicationDelegate
namespace Read_and_edit_presentation
{
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
[Register("AppDelegate")]
public class AppDelegate : MauiUIApplicationDelegate
{
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
}
}
Loading

0 comments on commit ced96a4

Please sign in to comment.